@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
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductCardConfig } from '../../type';
3
2
  import './index.less';
4
3
  declare const CardWrapper: (props: ProductCardConfig) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductCardConfig } from '../../type';
2
3
  import './index.less';
3
4
  declare const Price: ({ props }: {
@@ -24,15 +24,15 @@ __export(locales_exports, {
24
24
  module.exports = __toCommonJS(locales_exports);
25
25
  var locales_default = {
26
26
  en: {
27
- "pisell2.comprehensive-search.placeholder": "WalletPass Code / Name / Mobile / Email",
27
+ "pisell2.comprehensive-search.placeholder": "WalletPass Code / Name / Mobile / Email / Contact info",
28
28
  "pisell2.text.search": "Search"
29
29
  },
30
30
  "zh-CN": {
31
- "pisell2.comprehensive-search.placeholder": "钱包码 / 姓名 / 电话 / 电子邮箱",
31
+ "pisell2.comprehensive-search.placeholder": "钱包码 / 姓名 / 电话 / 电子邮箱 / 联系信息",
32
32
  "pisell2.text.search": "搜索"
33
33
  },
34
34
  "zh-HK": {
35
- "pisell2.comprehensive-search.placeholder": "錢包碼 / 姓名 / 電話 / 電子郵箱",
35
+ "pisell2.comprehensive-search.placeholder": "錢包碼 / 姓名 / 電話 / 電子郵箱 / 聯繫信息",
36
36
  "pisell2.text.search": "搜索"
37
37
  }
38
38
  };
@@ -24,7 +24,7 @@ __export(locales_exports, {
24
24
  module.exports = __toCommonJS(locales_exports);
25
25
  var locales_default = {
26
26
  en: {
27
- "pisell2.text.new-client": "New Client",
27
+ "pisell2.text.new-client": "New Customer",
28
28
  "pisell2.comprehensive-search.empty": "No Data"
29
29
  },
30
30
  "zh-CN": {
@@ -0,0 +1,68 @@
1
+ export default [
2
+ {
3
+ title: '宽度',
4
+ name: 'style.width',
5
+ setter: ['NumberSetter', 'StringSetter'],
6
+ },
7
+ {
8
+ title: '高度',
9
+ name: 'style.height',
10
+ setter: ['NumberSetter', 'StringSetter'],
11
+ },
12
+ {
13
+ title: '显示边框',
14
+ name: 'style.borderStyle',
15
+ setter: {
16
+ componentName: 'RadioGroupSetter',
17
+ props: {
18
+ options: [
19
+ {
20
+ label: '显示边框',
21
+ value: 'solid',
22
+ },
23
+ {
24
+ label: '无边框',
25
+ value: 'none',
26
+ },
27
+ ],
28
+ },
29
+ initialValue: 'solid',
30
+ },
31
+ },
32
+ {
33
+ title: '边框粗细',
34
+ name: 'style.borderWidth',
35
+ setter: ['NumberSetter', 'StringSetter'],
36
+ defaultValue: 1,
37
+ },
38
+ {
39
+ title: '边框颜色',
40
+ name: 'style.borderColor',
41
+ setter: ['ColorSetter'],
42
+ defaultValue: '#D0D5DD',
43
+ },
44
+ {
45
+ title: '圆角',
46
+ name: 'style.borderRadius',
47
+ setter: ['NumberSetter', 'StringSetter'],
48
+ defaultValue: 8,
49
+ },
50
+ {
51
+ title: '内边距',
52
+ name: 'style.padding',
53
+ setter: ['NumberSetter', 'StringSetter'],
54
+ defaultValue: 8,
55
+ },
56
+ {
57
+ title: { label: '左右间距', tip: '头像与内容之间间距' },
58
+ name: 'horizontalGap',
59
+ setter: ['NumberSetter', 'StringSetter'],
60
+ defaultValue: 8,
61
+ },
62
+ {
63
+ title: { label: '字段', tip: '字段上下间距' },
64
+ name: 'verticalGap',
65
+ setter: ['NumberSetter', 'StringSetter'],
66
+ defaultValue: 4,
67
+ },
68
+ ];
@@ -0,0 +1,33 @@
1
+ export default [
2
+ {
3
+ type: 'group',
4
+ display: 'plain',
5
+ title: '姓名样式',
6
+ items: [
7
+ {
8
+ title: '文本大小',
9
+ name: 'nameStyle.fontSize',
10
+ setter: ['NumberSetter', 'StringSetter'],
11
+ defaultValue: 14,
12
+ },
13
+ {
14
+ title: '文本粗细',
15
+ name: 'nameStyle.fontWeight',
16
+ setter: ['NumberSetter', 'StringSetter'],
17
+ defaultValue: 600,
18
+ },
19
+ {
20
+ title: '文本颜色',
21
+ name: 'nameStyle.color',
22
+ setter: ['ColorSetter'],
23
+ defaultValue: '#101828',
24
+ },
25
+ {
26
+ title: '文本下划线',
27
+ name: 'nameStyle.textDecoration',
28
+ setter: ['StringSetter'],
29
+ defaultvalu: 'unset',
30
+ },
31
+ ],
32
+ },
33
+ ];
@@ -0,0 +1,103 @@
1
+ import { AntdIconSetter } from '@pisell/materials/lowcode/_setters';
2
+ export default [
3
+ // {
4
+ // name: 'avatar.icon',
5
+ // title: { label: '头像图标', tip: 'icon | 设置头像的自定义图标' },
6
+ // setter: AntdIconSetter,
7
+ // },
8
+ {
9
+ name: 'avatar.shape',
10
+ title: { label: '头像形状', tip: 'shape | 指定头像的形状' },
11
+ setter: {
12
+ componentName: 'RadioGroupSetter',
13
+ props: {
14
+ options: ['circle', 'square'],
15
+ },
16
+ initialValue: 'circle',
17
+ },
18
+ },
19
+ {
20
+ name: 'avatar.borderRadius',
21
+ title: { label: '圆角度数', tip: 'borderRadius | 方形头像的圆角大小' },
22
+ setter: ['NumberSetter', 'StringSetter'],
23
+ defaultValue: 4,
24
+ condition: (target: any) => {
25
+ const shape = target.getProps().getPropValue('avatar.shape');
26
+ return shape === 'square';
27
+ },
28
+ },
29
+ {
30
+ name: 'avatar.size',
31
+ title: { label: '尺寸', tip: 'size | 设置头像的大小' },
32
+ setter: [
33
+ {
34
+ componentName: 'SelectSetter',
35
+ props: {
36
+ options: [
37
+ {
38
+ label: 'xs',
39
+ value: 'xs',
40
+ },
41
+ {
42
+ label: 'sm',
43
+ value: 'sm',
44
+ },
45
+ {
46
+ label: 'md',
47
+ value: 'md',
48
+ },
49
+ {
50
+ label: 'lg',
51
+ value: 'lg',
52
+ },
53
+ {
54
+ label: 'xl',
55
+ value: 'xl',
56
+ },
57
+ {
58
+ label: 'xxl',
59
+ value: 'xxl',
60
+ },
61
+ ],
62
+ },
63
+ },
64
+ 'NumberSetter',
65
+ 'StringSetter',
66
+ ],
67
+ defaultValue: 'md',
68
+ },
69
+ {
70
+ name: 'avatar.useTextAvatar',
71
+ title: {
72
+ label: '使用文本头像',
73
+ tip: 'useTextAvatar | 是否使用文本作为头像',
74
+ },
75
+ setter: 'BoolSetter',
76
+ defaultValue: false,
77
+ },
78
+ {
79
+ name: 'avatar.children',
80
+ title: { label: '文本内容', tip: 'children | 文本头像的内容' },
81
+ setter: 'StringSetter',
82
+ condition: {
83
+ type: 'JSFunction',
84
+ value: "target => target.getProps().getPropValue('avatar.useTextAvatar')",
85
+ },
86
+ },
87
+ // {
88
+ // title: '头像状态',
89
+ // name: 'avatar.isShowStatus',
90
+ // condition: (target: any) => target.getProps().getPropValue('isShowAvatar'),
91
+ // setter: 'BoolSetter',
92
+ // defaultValue: false,
93
+ // },
94
+ // {
95
+ // title: '状态颜色',
96
+ // name: 'avatar.statusColor',
97
+ // condition: (target: any) =>
98
+ // target.getProps().getPropValue('isShowAvatar') &&
99
+ // target.getProps().getPropValue('avatar.isShowStatus'),
100
+ // setter: 'ColorSetter',
101
+ // defaultValue: '#17B26A',
102
+ // },
103
+ ];
@@ -0,0 +1,33 @@
1
+ export default [
2
+ {
3
+ type: 'group',
4
+ display: 'plain',
5
+ title: '文本样式',
6
+ items: [
7
+ {
8
+ title: '文本大小',
9
+ name: 'textStyle.fontSize',
10
+ setter: ['NumberSetter', 'StringSetter'],
11
+ defaultValue: 14,
12
+ },
13
+ {
14
+ title: '文本粗细',
15
+ name: 'textStyle.fontWeight',
16
+ setter: ['NumberSetter', 'StringSetter'],
17
+ defaultValue: 400,
18
+ },
19
+ {
20
+ title: '文本颜色',
21
+ name: 'textStyle.color',
22
+ setter: ['ColorSetter'],
23
+ defaultValue: '#667085',
24
+ },
25
+ {
26
+ title: '文本下划线',
27
+ name: 'textStyle.textDecoration',
28
+ setter: ['StringSetter'],
29
+ defaultvalu: 'unset',
30
+ },
31
+ ],
32
+ },
33
+ ];
@@ -0,0 +1,199 @@
1
+ import pisellAvatarProps from './fragments/pisellAvatar';
2
+ import cardStyleProps from './fragments/cardStyle';
3
+ import nameStyleProps from './fragments/nameStyle';
4
+ import textStyleProps from './fragments/textStyle';
5
+ import { AntdIconSetter } from '@pisell/materials/lowcode/_setters';
6
+
7
+ const ContactInfoMeta = {
8
+ componentName: 'ContactInfo',
9
+ title: '联系信息',
10
+ docUrl: '',
11
+ screenshot: '',
12
+ devMode: 'proCode',
13
+ npm: {
14
+ package: '@pisell/private-materials',
15
+ version: '1.0.0',
16
+ exportName: 'ContactInfo',
17
+ main: 'src/index.ts',
18
+ destructuring: true,
19
+ subName: '',
20
+ },
21
+ configure: {
22
+ props: [
23
+ {
24
+ title: {
25
+ label: {
26
+ type: 'i18n',
27
+ 'en-US': 'dataSource',
28
+ 'zh-CN': '数据源',
29
+ },
30
+ },
31
+ name: 'dataSource',
32
+ setter: {
33
+ componentName: 'JsonSetter',
34
+ },
35
+ },
36
+ {
37
+ title: {
38
+ label: {
39
+ type: 'i18n',
40
+ 'en-US': 'placeholder',
41
+ 'zh-CN': '占位提示',
42
+ },
43
+ },
44
+ name: 'placeholder',
45
+ setter: 'PisellI18nSetter',
46
+ },
47
+ {
48
+ title: '是否开启删除',
49
+ name: 'isShowDelete',
50
+ setter: 'BoolSetter',
51
+ defaultValue: false,
52
+ },
53
+ {
54
+ title: '展示方向',
55
+ name: 'direction',
56
+ setter: {
57
+ componentName: 'RadioGroupSetter',
58
+ props: {
59
+ options: [
60
+ {
61
+ label: '水平',
62
+ value: 'horizontal',
63
+ },
64
+ {
65
+ label: '垂直',
66
+ value: 'vertical',
67
+ },
68
+ ],
69
+ },
70
+ initialValue: 'horizontal',
71
+ },
72
+ },
73
+ {
74
+ title: '卡片样式',
75
+ type: 'group',
76
+ extraProps: {
77
+ display: 'accordion',
78
+ defaultCollapsed: true,
79
+ },
80
+ items: cardStyleProps,
81
+ },
82
+ {
83
+ title: '头像',
84
+ type: 'group',
85
+ display: 'block',
86
+ items: [
87
+ {
88
+ title: '显示头像',
89
+ name: 'isShowAvatar',
90
+ setter: 'BoolSetter',
91
+ defaultValue: true,
92
+ },
93
+ {
94
+ type: 'group',
95
+ condition: (target: any) =>
96
+ target.getProps().getPropValue('isShowAvatar'),
97
+ items: [...pisellAvatarProps],
98
+ },
99
+ ],
100
+ },
101
+ {
102
+ title: '姓名',
103
+ type: 'group',
104
+ display: 'block',
105
+ items: [
106
+ {
107
+ title: '姓名默认文案',
108
+ name: 'defaultName',
109
+ setter: 'StringSetter',
110
+ },
111
+ ...nameStyleProps,
112
+ ],
113
+ },
114
+ {
115
+ title: '文本样式',
116
+ type: 'group',
117
+ display: 'block',
118
+ items: [...textStyleProps],
119
+ },
120
+ {
121
+ title: '操作按钮',
122
+ type: 'group',
123
+ display: 'block',
124
+ items: [
125
+ {
126
+ name: 'button.addButtonIcon',
127
+ title: {
128
+ label: '添加按钮的图标',
129
+ tip: 'icon | 设置添加的自定义图标',
130
+ },
131
+ setter: AntdIconSetter,
132
+ },
133
+ {
134
+ name: 'button.editButtonIcon',
135
+ title: {
136
+ label: '修改按钮的图标',
137
+ tip: 'icon | 设置修改的自定义图标',
138
+ },
139
+ setter: AntdIconSetter,
140
+ },
141
+ ],
142
+ },
143
+ {
144
+ type: 'group',
145
+ display: 'block',
146
+ title: '字段展示',
147
+ items: [
148
+ {
149
+ title: '显示电话号',
150
+ name: 'isShowPhone',
151
+ setter: 'BoolSetter',
152
+ defaultValue: true,
153
+ },
154
+ {
155
+ title: '显示邮箱',
156
+ name: 'isShowEmail',
157
+ setter: 'BoolSetter',
158
+ defaultValue: true,
159
+ },
160
+ ],
161
+ },
162
+ ],
163
+ supports: {
164
+ events: [
165
+ {
166
+ name: 'onSave',
167
+ description: '保存联系信息点击事件',
168
+ },
169
+ {
170
+ name: 'onDelete',
171
+ description: '删除联系信息点击事件',
172
+ },
173
+ {
174
+ name: 'onCancel',
175
+ description: '取消点击事件',
176
+ },
177
+ ],
178
+ style: true,
179
+ },
180
+ },
181
+ };
182
+
183
+ const snippets = [
184
+ {
185
+ title: '联系信息',
186
+ screenshot: '',
187
+ schema: {
188
+ componentName: 'ContactInfo',
189
+ props: {
190
+ direction: 'horizontal',
191
+ },
192
+ },
193
+ },
194
+ ];
195
+
196
+ export default {
197
+ ...ContactInfoMeta,
198
+ snippets,
199
+ };
@@ -0,0 +1,98 @@
1
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
+
3
+ const ContactInfoModalMeta: ComponentMetadata = {
4
+ componentName: 'ContactInfoModal',
5
+ title: '联系信息弹窗',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ package: '@pisell/private-materials',
11
+ version: '1.0.0',
12
+ exportName: 'ContactInfoModal',
13
+ main: 'src/index.ts',
14
+ destructuring: true,
15
+ subName: '',
16
+ },
17
+ configure: {
18
+ props: [
19
+ {
20
+ title: {
21
+ label: {
22
+ type: 'i18n',
23
+ 'en-US': 'open',
24
+ 'zh-CN': '打开',
25
+ },
26
+ },
27
+ name: 'open',
28
+ setter: ['BoolSetter', 'VariableSetter'],
29
+ },
30
+ {
31
+ title: {
32
+ label: {
33
+ type: 'i18n',
34
+ 'en-US': 'dataSource',
35
+ 'zh-CN': '数据源',
36
+ },
37
+ },
38
+ name: 'dataSource',
39
+ setter: ['JsonSetter', 'VariableSetter'],
40
+ },
41
+ {
42
+ title: {
43
+ label: {
44
+ type: 'i18n',
45
+ 'en-US': 'isShowDelete',
46
+ 'zh-CN': '是否展示删除按钮',
47
+ },
48
+ },
49
+ name: 'isShowDelete',
50
+ setter: ['BoolSetter', 'VariableSetter'],
51
+ },
52
+ {
53
+ title: {
54
+ label: {
55
+ type: 'i18n',
56
+ 'en-US': 'config',
57
+ 'zh-CN': '配置项',
58
+ },
59
+ },
60
+ name: 'config',
61
+ setter: ['JsonSetter', 'VariableSetter'],
62
+ },
63
+ ],
64
+ supports: {
65
+ events: [
66
+ {
67
+ name: 'onSave',
68
+ description: '保存联系信息点击事件',
69
+ },
70
+ {
71
+ name: 'onDelete',
72
+ description: '删除联系信息点击事件',
73
+ },
74
+ {
75
+ name: 'onCancel',
76
+ description: '取消点击事件',
77
+ },
78
+ ],
79
+ style: true,
80
+ },
81
+ component: {},
82
+ },
83
+ };
84
+ const snippets: Snippet[] = [
85
+ {
86
+ title: 'ContactInfoModal',
87
+ screenshot: '',
88
+ schema: {
89
+ componentName: 'ContactInfoModal',
90
+ props: {},
91
+ },
92
+ },
93
+ ];
94
+
95
+ export default {
96
+ ...ContactInfoModalMeta,
97
+ snippets,
98
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.4.62",
3
+ "version": "6.4.64",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",
@@ -68,7 +68,9 @@
68
68
  "rc-virtual-list": "^3.11.3",
69
69
  "react-infinite-scroll-component": "^6.1.0",
70
70
  "react-resizable": "^3.0.5",
71
- "styled-components": "^6.0.0-rc.3"
71
+ "styled-components": "^6.0.0-rc.3",
72
+ "@react-spring/web": "^9.6.1",
73
+ "@use-gesture/react": "^10.3.1"
72
74
  },
73
75
  "peerDependencies": {
74
76
  "react": "^18.0.0",
@@ -77,4 +79,4 @@
77
79
  "componentConfig": {
78
80
  "materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
79
81
  }
80
- }
82
+ }