@pisell/private-materials 6.4.62 → 6.4.64

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 (239) 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 +2 -2
  6. package/build/lowcode/preview.js +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  14. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
  16. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  17. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  19. package/es/components/appointmentBooking/hooks.js +30 -30
  20. package/es/components/appointmentBooking/locales.d.ts +3 -0
  21. package/es/components/appointmentBooking/locales.js +9 -6
  22. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  23. package/es/components/booking/components/footer/index.js +4 -1
  24. package/es/components/booking/components/footer/utils.js +80 -77
  25. package/es/components/booking/forms/single/index.d.ts +1 -0
  26. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  27. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
  28. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  29. package/es/components/booking/info/main.js +3 -2
  30. package/es/components/booking/info/model.js +5 -0
  31. package/es/components/booking/info/service/Lists.d.ts +0 -1
  32. package/es/components/booking/info2/cartClientCard/index.js +30 -1
  33. package/es/components/booking/info2/index.js +3 -2
  34. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  35. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  36. package/es/components/booking/locales.d.ts +3 -0
  37. package/es/components/booking/locales.js +9 -3
  38. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  39. package/es/components/booking/model.d.ts +4 -0
  40. package/es/components/booking/model.js +3 -0
  41. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  42. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  43. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  44. package/es/components/eftpos/form/index.d.ts +1 -0
  45. package/es/components/eftpos/hooks.d.ts +1 -0
  46. package/es/components/eftpos/index.d.ts +1 -0
  47. package/es/components/eftpos/pos.d.ts +1 -0
  48. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  49. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  50. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  51. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  52. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  53. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  54. package/es/components/eftposPay/hooks.d.ts +1 -1
  55. package/es/components/eftposPay/pay.d.ts +1 -0
  56. package/es/components/eftposPay/store/index.d.ts +2 -2
  57. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  60. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  66. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  67. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  68. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  69. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  70. package/es/components/list/styles/header.less +1 -0
  71. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  72. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  73. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  74. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  75. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  76. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  77. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  78. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  79. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  80. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  81. package/es/components/schedules/resources/index.d.ts +1 -0
  82. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  83. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  84. package/es/components/schedules/schedules/index.d.ts +1 -0
  85. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  86. package/es/components/ticketBooking/components/menuBar/index.js +63 -5
  87. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  88. package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -0
  89. package/es/components/ticketBooking/index.js +1 -0
  90. package/es/index.d.ts +2 -0
  91. package/es/index.js +3 -1
  92. package/es/plus/clientCard/locales.js +3 -3
  93. package/es/plus/clinetSearch/index.js +28 -30
  94. package/es/plus/clinetSearch/locales.d.ts +3 -0
  95. package/es/plus/clinetSearch/locales.js +7 -4
  96. package/es/plus/clinetSearch/types.d.ts +12 -0
  97. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  98. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  99. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  100. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  101. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  102. package/es/plus/contactInfo/index.d.ts +6 -0
  103. package/es/plus/contactInfo/index.js +198 -0
  104. package/es/plus/contactInfo/index.less +621 -0
  105. package/es/plus/contactInfo/locales.d.ts +15 -0
  106. package/es/plus/contactInfo/locales.js +14 -0
  107. package/es/plus/contactInfo/types.d.ts +91 -0
  108. package/es/plus/contactInfo/types.js +1 -0
  109. package/es/plus/contactInfo/utils.d.ts +7 -0
  110. package/es/plus/contactInfo/utils.js +50 -0
  111. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  112. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  113. package/es/plus/contactInfoModal/index.d.ts +40 -0
  114. package/es/plus/contactInfoModal/index.js +154 -0
  115. package/es/plus/contactInfoModal/index.less +19 -0
  116. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  117. package/es/plus/contactInfoModal/locales.js +65 -0
  118. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  119. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  120. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  121. package/es/pro/comprehensiveSearch/locales.js +1 -1
  122. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  123. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  124. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  125. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  126. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
  127. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  128. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  129. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  130. package/lib/components/appointmentBooking/hooks.js +73 -35
  131. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  132. package/lib/components/appointmentBooking/locales.js +6 -3
  133. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  134. package/lib/components/booking/components/footer/index.js +4 -1
  135. package/lib/components/booking/components/footer/utils.js +93 -67
  136. package/lib/components/booking/forms/single/index.d.ts +1 -0
  137. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  138. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
  139. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  140. package/lib/components/booking/info/main.js +5 -4
  141. package/lib/components/booking/info/model.js +5 -0
  142. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  143. package/lib/components/booking/info2/cartClientCard/index.js +25 -0
  144. package/lib/components/booking/info2/index.js +11 -5
  145. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  146. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  147. package/lib/components/booking/locales.d.ts +3 -0
  148. package/lib/components/booking/locales.js +9 -3
  149. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  150. package/lib/components/booking/model.d.ts +4 -0
  151. package/lib/components/booking/model.js +3 -0
  152. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  153. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
  154. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  155. package/lib/components/eftpos/form/index.d.ts +1 -0
  156. package/lib/components/eftpos/hooks.d.ts +1 -0
  157. package/lib/components/eftpos/index.d.ts +1 -0
  158. package/lib/components/eftpos/pos.d.ts +1 -0
  159. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  160. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  161. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  162. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  163. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  164. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  165. package/lib/components/eftposPay/hooks.d.ts +1 -1
  166. package/lib/components/eftposPay/pay.d.ts +1 -0
  167. package/lib/components/eftposPay/store/index.d.ts +2 -2
  168. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  170. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  171. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  172. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  173. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  174. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  175. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  176. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  177. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  178. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  179. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  180. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  181. package/lib/components/list/styles/header.less +1 -0
  182. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  183. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  184. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  185. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  186. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  187. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  188. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  189. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  190. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  191. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  192. package/lib/components/schedules/resources/index.d.ts +1 -0
  193. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  194. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  195. package/lib/components/schedules/schedules/index.d.ts +1 -0
  196. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  197. package/lib/components/ticketBooking/components/menuBar/index.js +21 -2
  198. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  199. package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -0
  200. package/lib/components/ticketBooking/index.js +1 -0
  201. package/lib/index.d.ts +2 -0
  202. package/lib/index.js +6 -0
  203. package/lib/plus/clientCard/locales.js +3 -3
  204. package/lib/plus/clinetSearch/index.js +17 -8
  205. package/lib/plus/clinetSearch/locales.d.ts +3 -0
  206. package/lib/plus/clinetSearch/locales.js +7 -4
  207. package/lib/plus/clinetSearch/types.d.ts +12 -0
  208. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  209. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  210. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  211. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  212. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  213. package/lib/plus/contactInfo/index.d.ts +6 -0
  214. package/lib/plus/contactInfo/index.js +226 -0
  215. package/lib/plus/contactInfo/index.less +621 -0
  216. package/lib/plus/contactInfo/locales.d.ts +15 -0
  217. package/lib/plus/contactInfo/locales.js +38 -0
  218. package/lib/plus/contactInfo/types.d.ts +91 -0
  219. package/lib/plus/contactInfo/types.js +17 -0
  220. package/lib/plus/contactInfo/utils.d.ts +7 -0
  221. package/lib/plus/contactInfo/utils.js +64 -0
  222. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  223. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  224. package/lib/plus/contactInfoModal/index.d.ts +40 -0
  225. package/lib/plus/contactInfoModal/index.js +138 -0
  226. package/lib/plus/contactInfoModal/index.less +19 -0
  227. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  228. package/lib/plus/contactInfoModal/locales.js +89 -0
  229. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
  230. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  231. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  232. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  233. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  234. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  235. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  236. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  237. package/lowcode/contact-info/meta.ts +199 -0
  238. package/lowcode/contact-info-modal/meta.ts +98 -0
  239. package/package.json +5 -3
@@ -66,7 +66,7 @@ var ClientSearch = (0, import_react.forwardRef)(
66
66
  (_a2 = addClientRef.current) == null ? void 0 : _a2.reset();
67
67
  };
68
68
  const renderListHeader = () => {
69
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "client-search-list-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 110 } }, import_utils.locales.getText("pisell2.text.client-search.name")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 110 } }, import_utils.locales.getText("pisell2.text.client-search.register-time")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 120 } }, import_utils.locales.getText("pisell2.text.client-search.phone")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 135 } }, import_utils.locales.getText("pisell2.text.client-search.email")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 120 } }, import_utils.locales.getText("pisell2.text.client-search.membership")));
69
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "client-search-list-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 180 } }, import_utils.locales.getText("pisell2.text.client-search.name")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 110 } }, import_utils.locales.getText("pisell2.text.client-search.register-time")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 125 } }, import_utils.locales.getText("pisell2.text.client-search.membership")), /* @__PURE__ */ import_react.default.createElement("div", { className: "header-item", style: { width: 180 } }, import_utils.locales.getText("pisell2.text.client-search.contact-info")));
70
70
  };
71
71
  const renderResults = (searchResults) => {
72
72
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, (searchResults == null ? void 0 : searchResults.length) ? renderListHeader() : null, /* @__PURE__ */ import_react.default.createElement(
@@ -111,7 +111,7 @@ var ClientSearch = (0, import_react.forwardRef)(
111
111
  {
112
112
  dataSource: searchResults,
113
113
  renderItem: (item, index) => {
114
- var _a2, _b2;
114
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h;
115
115
  const membershipText = (_b2 = (_a2 = item.latest_wallet_detail) == null ? void 0 : _a2.wallet) == null ? void 0 : _b2.name;
116
116
  return /* @__PURE__ */ import_react.default.createElement(
117
117
  import_antd.List.Item,
@@ -126,10 +126,7 @@ var ClientSearch = (0, import_react.forwardRef)(
126
126
  onClick: () => onRowClick == null ? void 0 : onRowClick(item, index || 0),
127
127
  style: { cursor: "pointer" }
128
128
  },
129
- /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 110 } }, /* @__PURE__ */ import_react.default.createElement(import_clientName.default, { dataSource: item })),
130
- /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 110 } }, (0, import_dayjs.default)(item.created_at).format("YYYY-MM-DD") || "-"),
131
- /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 120 } }, item.phone || "-"),
132
- /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 135 } }, /* @__PURE__ */ import_react.default.createElement(
129
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 180 } }, /* @__PURE__ */ import_react.default.createElement(import_clientName.default, { dataSource: item }), /* @__PURE__ */ import_react.default.createElement("div", null, item.phone || "-"), /* @__PURE__ */ import_react.default.createElement(
133
130
  "div",
134
131
  {
135
132
  style: {
@@ -140,7 +137,8 @@ var ClientSearch = (0, import_react.forwardRef)(
140
137
  },
141
138
  item.email || "-"
142
139
  )),
143
- /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 120 } }, membershipText && (translationOriginal == null ? void 0 : translationOriginal(membershipText)) ? /* @__PURE__ */ import_react.default.createElement(
140
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 110 } }, (0, import_dayjs.default)(item.created_at).format("YYYY-MM-DD") || "-"),
141
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 125 } }, membershipText && (translationOriginal == null ? void 0 : translationOriginal(membershipText)) ? /* @__PURE__ */ import_react.default.createElement(
144
142
  import_antd.Tag,
145
143
  {
146
144
  color: "gold",
@@ -156,7 +154,18 @@ var ClientSearch = (0, import_react.forwardRef)(
156
154
  }
157
155
  },
158
156
  translationOriginal == null ? void 0 : translationOriginal(membershipText)
159
- ) : "-")
157
+ ) : "-"),
158
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "item-cell", style: { width: 180 } }, /* @__PURE__ */ import_react.default.createElement(import_clientName.default, { dataSource: (_c2 = item == null ? void 0 : item.contacts_info) == null ? void 0 : _c2.value }), ((_f = (_e = (_d = item == null ? void 0 : item.contacts_info) == null ? void 0 : _d.value) == null ? void 0 : _e.phone) == null ? void 0 : _f.phone) || "-", /* @__PURE__ */ import_react.default.createElement(
159
+ "div",
160
+ {
161
+ style: {
162
+ overflow: "hidden",
163
+ textOverflow: "ellipsis",
164
+ whiteSpace: "nowrap"
165
+ }
166
+ },
167
+ ((_h = (_g = item == null ? void 0 : item.contacts_info) == null ? void 0 : _g.value) == null ? void 0 : _h.email) || "-"
168
+ ))
160
169
  )
161
170
  );
162
171
  }
@@ -31,6 +31,7 @@ declare const _default: {
31
31
  'pisell2.text.client-search.phone': string;
32
32
  'pisell2.text.client-search.email': string;
33
33
  'pisell2.text.client-search.membership': string;
34
+ 'pisell2.text.client-search.contact-info': string;
34
35
  };
35
36
  'zh-CN': {
36
37
  'pisell2.text.leave-empty-for-walk-in': string;
@@ -64,6 +65,7 @@ declare const _default: {
64
65
  'pisell2.text.client-search.phone': string;
65
66
  'pisell2.text.client-search.email': string;
66
67
  'pisell2.text.client-search.membership': string;
68
+ 'pisell2.text.client-search.contact-info': string;
67
69
  };
68
70
  'zh-HK': {
69
71
  'pisell2.text.leave-empty-for-walk-in': string;
@@ -97,6 +99,7 @@ declare const _default: {
97
99
  'pisell2.text.client-search.phone': string;
98
100
  'pisell2.text.client-search.email': string;
99
101
  'pisell2.text.client-search.membership': string;
102
+ 'pisell2.text.client-search.contact-info': string;
100
103
  };
101
104
  };
102
105
  export default _default;
@@ -41,7 +41,7 @@ var locales_default = {
41
41
  "pisell2.text.save": "Save",
42
42
  "pisell2.text.save-and-select": "Save and select",
43
43
  "pisell2.text.no-results-found": "No results found.",
44
- "pisell2.text.create-new-client": "Create new client",
44
+ "pisell2.text.create-new-client": "Create new customer",
45
45
  "pisell2.text.result-found": "Result found",
46
46
  "pisell2.text.personnel-list": "Personnel list",
47
47
  "pisell2.text.load-more": "Load more",
@@ -54,7 +54,8 @@ var locales_default = {
54
54
  "pisell2.text.client-search.register-time": "Registration Time",
55
55
  "pisell2.text.client-search.phone": "Phone Number",
56
56
  "pisell2.text.client-search.email": "Email Address",
57
- "pisell2.text.client-search.membership": "Membership"
57
+ "pisell2.text.client-search.membership": "Membership",
58
+ "pisell2.text.client-search.contact-info": "Contact info"
58
59
  },
59
60
  "zh-CN": {
60
61
  "pisell2.text.leave-empty-for-walk-in": "如未注册游客则留空",
@@ -87,7 +88,8 @@ var locales_default = {
87
88
  "pisell2.text.client-search.register-time": "注册时间",
88
89
  "pisell2.text.client-search.phone": "电话号码",
89
90
  "pisell2.text.client-search.email": "邮箱",
90
- "pisell2.text.client-search.membership": "会员"
91
+ "pisell2.text.client-search.membership": "会员",
92
+ "pisell2.text.client-search.contact-info": "联系信息"
91
93
  },
92
94
  "zh-HK": {
93
95
  "pisell2.text.leave-empty-for-walk-in": "如未註冊遊客則留空",
@@ -120,6 +122,7 @@ var locales_default = {
120
122
  "pisell2.text.client-search.register-time": "註冊時間",
121
123
  "pisell2.text.client-search.phone": "電話號碼",
122
124
  "pisell2.text.client-search.email": "電郵地址",
123
- "pisell2.text.client-search.membership": "會員"
125
+ "pisell2.text.client-search.membership": "會員",
126
+ "pisell2.text.client-search.contact-info": "聯繫信息"
124
127
  }
125
128
  };
@@ -10,6 +10,18 @@ export interface ClientData {
10
10
  nickname: string;
11
11
  shop_id: number;
12
12
  updated_at: string;
13
+ contacts_info: {
14
+ value: {
15
+ first_name?: string;
16
+ last_name?: string;
17
+ phone?: {
18
+ phone?: string;
19
+ country_calling_code?: string;
20
+ country_code?: string;
21
+ };
22
+ email?: string;
23
+ };
24
+ };
13
25
  }
14
26
  export interface ClientSearchProps {
15
27
  dataSource?: any;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { AvatarConfig } from '../../types';
3
+ import '../../index.less';
4
+ interface AvatarProps {
5
+ config?: AvatarConfig;
6
+ name: string;
7
+ cover?: string;
8
+ }
9
+ declare const Avatar: React.FC<AvatarProps>;
10
+ export default Avatar;
@@ -0,0 +1,56 @@
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/contactInfo/components/Avatar/index.tsx
30
+ var Avatar_exports = {};
31
+ __export(Avatar_exports, {
32
+ default: () => Avatar_default
33
+ });
34
+ module.exports = __toCommonJS(Avatar_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_utils = require("../../utils");
38
+ var import__ = require("../../index");
39
+ var import__2 = require("../../index.less");
40
+ var Avatar = (props) => {
41
+ const { config, name, cover } = props;
42
+ const { useTextAvatar, children } = config || {};
43
+ if (useTextAvatar) {
44
+ const text = children || (0, import_utils.getAvatarText)(name);
45
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__avatar-wrapper` }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellAvatar, { className: `${import__.PREFIX}__avatar`, ...config || {} }, text));
46
+ }
47
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__avatar-wrapper` }, /* @__PURE__ */ import_react.default.createElement(
48
+ import_materials.PisellAvatar,
49
+ {
50
+ className: `${import__.PREFIX}__avatar`,
51
+ ...config || {},
52
+ src: cover || ""
53
+ }
54
+ ));
55
+ };
56
+ var Avatar_default = Avatar;
@@ -0,0 +1,46 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ declare type NativeProps<S extends string = never> = {
4
+ className?: string;
5
+ style?: React.CSSProperties & Partial<Record<S, string>>;
6
+ };
7
+ declare type PropagationEvent = 'click';
8
+ import './index.less';
9
+ declare type SideType = 'left' | 'right';
10
+ export declare type SwipeActionRef = {
11
+ close: () => void;
12
+ show: (side?: SideType) => void;
13
+ };
14
+ declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
+ export declare type Action = {
16
+ key: string | number;
17
+ text: ReactNode;
18
+ color?: ActionColor | string;
19
+ onClick?: (e: React.MouseEvent) => void;
20
+ style?: React.CSSProperties;
21
+ };
22
+ export declare type SwipeActionProps = {
23
+ rightActions?: Action[];
24
+ leftActions?: Action[];
25
+ onAction?: (action: Action, e: React.MouseEvent) => void;
26
+ closeOnTouchOutside?: boolean;
27
+ closeOnAction?: boolean;
28
+ children: ReactNode;
29
+ stopPropagation?: PropagationEvent[];
30
+ onActionsReveal?: (side: SideType) => void;
31
+ onClose?: () => void;
32
+ escapeDom?: string;
33
+ } & NativeProps<'--background'>;
34
+ export declare const SwipeAction: React.ForwardRefExoticComponent<{
35
+ rightActions?: Action[] | undefined;
36
+ leftActions?: Action[] | undefined;
37
+ onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
38
+ closeOnTouchOutside?: boolean | undefined;
39
+ closeOnAction?: boolean | undefined;
40
+ children: ReactNode;
41
+ stopPropagation?: "click"[] | undefined;
42
+ onActionsReveal?: ((side: SideType) => void) | undefined;
43
+ onClose?: (() => void) | undefined;
44
+ escapeDom?: string | undefined;
45
+ } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
46
+ export {};
@@ -0,0 +1,373 @@
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/contactInfo/components/SwipeAction/index.tsx
30
+ var SwipeAction_exports = {};
31
+ __export(SwipeAction_exports, {
32
+ SwipeAction: () => SwipeAction
33
+ });
34
+ module.exports = __toCommonJS(SwipeAction_exports);
35
+ var import_web = require("@react-spring/web");
36
+ var import_use_gesture_react = require("@use-gesture/react/dist/use-gesture-react.cjs");
37
+ var import_react = __toESM(require("react"));
38
+ var import_index = require("./index.less");
39
+ function withNativeProps(props, element) {
40
+ const p = {
41
+ ...element.props
42
+ };
43
+ if (props.className) {
44
+ p.className = props.className + (element.props.className ? ` ${element.props.className}` : "");
45
+ }
46
+ if (props.style) {
47
+ p.style = {
48
+ ...props.style,
49
+ ...element.props.style
50
+ };
51
+ }
52
+ return import_react.default.cloneElement(element, p);
53
+ }
54
+ function nearest(arr, target) {
55
+ return arr.reduce((prev, curr) => {
56
+ return Math.abs(curr - target) < Math.abs(prev - target) ? curr : prev;
57
+ });
58
+ }
59
+ function mergeProps(a, b) {
60
+ return {
61
+ ...a,
62
+ ...b
63
+ };
64
+ }
65
+ function withStopPropagation(events, element) {
66
+ if (!events.includes("click")) {
67
+ return element;
68
+ }
69
+ const onClick = (e) => {
70
+ var _a, _b;
71
+ e.stopPropagation();
72
+ (_b = (_a = element.props).onClick) == null ? void 0 : _b.call(_a, e);
73
+ };
74
+ return import_react.default.cloneElement(element, {
75
+ ...element.props,
76
+ onClick
77
+ });
78
+ }
79
+ var Button = ({
80
+ children,
81
+ className,
82
+ style,
83
+ onClick
84
+ }) => {
85
+ return /* @__PURE__ */ import_react.default.createElement(
86
+ "button",
87
+ {
88
+ className,
89
+ style: {
90
+ border: "none",
91
+ background: (style == null ? void 0 : style["--background-color"]) || "transparent",
92
+ ...style
93
+ },
94
+ onClick
95
+ },
96
+ children
97
+ );
98
+ };
99
+ var classPrefix = `pisell-custom-swipe-action`;
100
+ var defaultProps = {
101
+ rightActions: [],
102
+ leftActions: [],
103
+ closeOnTouchOutside: true,
104
+ closeOnAction: true,
105
+ stopPropagation: []
106
+ };
107
+ var SwipeAction = (0, import_react.forwardRef)(
108
+ (p, ref) => {
109
+ const props = mergeProps(defaultProps, p);
110
+ const rootRef = (0, import_react.useRef)(null);
111
+ const leftRef = (0, import_react.useRef)(null);
112
+ const rightRef = (0, import_react.useRef)(null);
113
+ const [containerHeight, setContainerHeight] = (0, import_react.useState)(0);
114
+ function getWidth(ref2) {
115
+ const element = ref2.current;
116
+ if (!element) return 0;
117
+ return element.offsetWidth;
118
+ }
119
+ function getHeight(ref2) {
120
+ const element = ref2.current;
121
+ if (!element) return 0;
122
+ return element.offsetHeight;
123
+ }
124
+ function getLeftWidth() {
125
+ return getWidth(leftRef);
126
+ }
127
+ function getRightWidth() {
128
+ return getWidth(rightRef);
129
+ }
130
+ function getRootHeight() {
131
+ return getHeight(rootRef);
132
+ }
133
+ const [{ x }, api] = (0, import_web.useSpring)(
134
+ () => ({
135
+ x: 0,
136
+ config: { tension: 200, friction: 30 }
137
+ }),
138
+ []
139
+ );
140
+ const draggingRef = (0, import_react.useRef)(false);
141
+ const dragCancelRef = (0, import_react.useRef)(null);
142
+ function forceCancelDrag() {
143
+ var _a;
144
+ (_a = dragCancelRef.current) == null ? void 0 : _a.call(dragCancelRef);
145
+ draggingRef.current = false;
146
+ }
147
+ const bind = (0, import_use_gesture_react.useDrag)(
148
+ (state) => {
149
+ var _a;
150
+ dragCancelRef.current = state.cancel;
151
+ if (!state.intentional) return;
152
+ if (state.down) {
153
+ draggingRef.current = true;
154
+ }
155
+ if (!draggingRef.current) return;
156
+ const [offsetX] = state.offset;
157
+ if (state.last) {
158
+ const leftWidth = getLeftWidth();
159
+ const rightWidth = getRightWidth();
160
+ let position = offsetX + state.velocity[0] * state.direction[0] * 50;
161
+ if (offsetX > 0) {
162
+ position = Math.max(0, position);
163
+ } else if (offsetX < 0) {
164
+ position = Math.min(0, position);
165
+ } else {
166
+ position = 0;
167
+ }
168
+ const targetX = nearest([-rightWidth, 0, leftWidth], position);
169
+ api.start({
170
+ x: targetX
171
+ });
172
+ if (targetX !== 0) {
173
+ (_a = p.onActionsReveal) == null ? void 0 : _a.call(p, targetX > 0 ? "left" : "right");
174
+ }
175
+ window.setTimeout(() => {
176
+ draggingRef.current = false;
177
+ });
178
+ } else {
179
+ api.start({
180
+ x: offsetX,
181
+ immediate: true
182
+ });
183
+ }
184
+ },
185
+ {
186
+ from: () => [x.get(), 0],
187
+ bounds: () => {
188
+ const leftWidth = getLeftWidth();
189
+ const rightWidth = getRightWidth();
190
+ return {
191
+ left: -rightWidth,
192
+ right: leftWidth
193
+ };
194
+ },
195
+ axis: "x",
196
+ preventScroll: true,
197
+ pointer: { touch: true },
198
+ triggerAllEvents: true
199
+ }
200
+ );
201
+ const close = () => {
202
+ var _a;
203
+ api.start({
204
+ x: 0
205
+ });
206
+ forceCancelDrag();
207
+ (_a = props.onClose) == null ? void 0 : _a.call(props);
208
+ };
209
+ (0, import_react.useImperativeHandle)(ref, () => ({
210
+ show: (side = "right") => {
211
+ var _a;
212
+ if (side === "right") {
213
+ api.start({
214
+ x: -getRightWidth()
215
+ });
216
+ } else if (side === "left") {
217
+ api.start({
218
+ x: getLeftWidth()
219
+ });
220
+ }
221
+ (_a = p.onActionsReveal) == null ? void 0 : _a.call(p, side);
222
+ },
223
+ close
224
+ }));
225
+ (0, import_react.useEffect)(() => {
226
+ const updateHeight = () => {
227
+ const height = getRootHeight();
228
+ setContainerHeight(height);
229
+ };
230
+ updateHeight();
231
+ const resizeObserver = new ResizeObserver(updateHeight);
232
+ if (rootRef.current) {
233
+ resizeObserver.observe(rootRef.current);
234
+ }
235
+ return () => {
236
+ resizeObserver.disconnect();
237
+ };
238
+ }, []);
239
+ (0, import_react.useEffect)(() => {
240
+ if (!props.closeOnTouchOutside) return;
241
+ function handle(e) {
242
+ if (e.target && props.escapeDom) {
243
+ const container = document.querySelector(props.escapeDom);
244
+ if (container == null ? void 0 : container.contains(e.target)) return;
245
+ }
246
+ if (x.get() === 0) {
247
+ return;
248
+ }
249
+ const root = rootRef.current;
250
+ if (root && !root.contains(e.target)) {
251
+ close();
252
+ }
253
+ }
254
+ if ("ontouchstart" in window) {
255
+ document.addEventListener("touchstart", handle);
256
+ } else {
257
+ document.addEventListener("mousedown", handle);
258
+ }
259
+ return () => {
260
+ document.removeEventListener("touchstart", handle);
261
+ document.removeEventListener("mousedown", handle);
262
+ };
263
+ }, [props.closeOnTouchOutside, props.escapeDom]);
264
+ const getRightContainerClass = () => {
265
+ const baseClass = `${classPrefix}-actions ${classPrefix}-actions-right`;
266
+ if (containerHeight > 180) {
267
+ return `${baseClass} ${classPrefix}-height-large`;
268
+ } else if (containerHeight > 120) {
269
+ return `${baseClass} ${classPrefix}-height-medium`;
270
+ }
271
+ return `${baseClass} ${classPrefix}-height-small`;
272
+ };
273
+ const getRightActionButtonClass = () => {
274
+ if (containerHeight > 180) {
275
+ return `${classPrefix}-action-height-large`;
276
+ } else if (containerHeight > 120) {
277
+ return `${classPrefix}-action-height-medium`;
278
+ }
279
+ return `${classPrefix}-action-height-small`;
280
+ };
281
+ function renderAction(action, isRightAction = false) {
282
+ const color = action.color ?? "light";
283
+ const _style = action.style || {};
284
+ const buttonClass = isRightAction ? `${classPrefix}-action-button ${getRightActionButtonClass()}` : `${classPrefix}-action-button`;
285
+ return /* @__PURE__ */ import_react.default.createElement(
286
+ Button,
287
+ {
288
+ key: action.key,
289
+ className: buttonClass,
290
+ style: {
291
+ "--background-color": colorRecord[color] ?? color,
292
+ ..._style
293
+ },
294
+ onClick: (e) => {
295
+ var _a, _b;
296
+ if (props.closeOnAction) {
297
+ close();
298
+ }
299
+ (_a = action.onClick) == null ? void 0 : _a.call(action, e);
300
+ (_b = props.onAction) == null ? void 0 : _b.call(props, action, e);
301
+ }
302
+ },
303
+ action.text
304
+ );
305
+ }
306
+ return withNativeProps(
307
+ props,
308
+ /* @__PURE__ */ import_react.default.createElement(
309
+ "div",
310
+ {
311
+ className: classPrefix,
312
+ ...bind(),
313
+ ref: rootRef,
314
+ onClickCapture: (e) => {
315
+ if (draggingRef.current) {
316
+ e.stopPropagation();
317
+ e.preventDefault();
318
+ }
319
+ }
320
+ },
321
+ /* @__PURE__ */ import_react.default.createElement(import_web.animated.div, { className: `${classPrefix}-track`, style: { x } }, withStopPropagation(
322
+ props.stopPropagation,
323
+ /* @__PURE__ */ import_react.default.createElement(
324
+ "div",
325
+ {
326
+ className: `${classPrefix}-actions ${classPrefix}-actions-left`,
327
+ ref: leftRef
328
+ },
329
+ props.leftActions.map((action) => renderAction(action, false))
330
+ )
331
+ ), /* @__PURE__ */ import_react.default.createElement(
332
+ "div",
333
+ {
334
+ className: `${classPrefix}-content`,
335
+ onClickCapture: (e) => {
336
+ if (x.goal !== 0) {
337
+ e.preventDefault();
338
+ e.stopPropagation();
339
+ close();
340
+ }
341
+ }
342
+ },
343
+ /* @__PURE__ */ import_react.default.createElement(
344
+ import_web.animated.div,
345
+ {
346
+ style: {
347
+ pointerEvents: x.to(
348
+ (v) => v !== 0 && x.goal !== 0 ? "none" : "auto"
349
+ )
350
+ }
351
+ },
352
+ props.children
353
+ )
354
+ ), withStopPropagation(
355
+ props.stopPropagation,
356
+ /* @__PURE__ */ import_react.default.createElement("div", { className: getRightContainerClass(), ref: rightRef }, props.rightActions.map((action) => renderAction(action, true)))
357
+ ))
358
+ )
359
+ );
360
+ }
361
+ );
362
+ var colorRecord = {
363
+ light: "#ccc",
364
+ weak: "#999",
365
+ primary: "#1677ff",
366
+ success: "#00b578",
367
+ warning: "#ff8f1f",
368
+ danger: "#ff3141"
369
+ };
370
+ // Annotate the CommonJS export names for ESM import in node:
371
+ 0 && (module.exports = {
372
+ SwipeAction
373
+ });