@pisell/private-materials 3.4.76 → 3.4.77

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 (164) 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 +7 -7
  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 +10 -10
  11. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  12. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  13. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  14. package/es/components/booking/utils.d.ts +2 -2
  15. package/es/components/eftpos/hooks.d.ts +0 -1
  16. package/es/components/eftposPay/amount.d.ts +1 -1
  17. package/es/components/eftposPay/device.d.ts +1 -1
  18. package/es/components/eftposPay/hooks.d.ts +2 -2
  19. package/es/components/eftposPay/store/index.d.ts +5 -5
  20. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  21. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  22. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  23. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  24. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  25. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  26. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  27. package/es/hooks/useTranslationOriginal.js +10 -0
  28. package/es/index.d.ts +3 -0
  29. package/es/index.js +3 -0
  30. package/es/plus/clientCard/index.d.ts +7 -0
  31. package/es/plus/clientCard/index.js +462 -0
  32. package/es/plus/clientCard/index.less +515 -0
  33. package/es/plus/clientCard/line/index.d.ts +9 -0
  34. package/es/plus/clientCard/line/index.js +157 -0
  35. package/es/plus/clientCard/line/index.less +142 -0
  36. package/es/plus/clientCard/locales.d.ts +18 -0
  37. package/es/plus/clientCard/locales.js +17 -0
  38. package/es/plus/clientCard/types.d.ts +135 -0
  39. package/es/plus/clientCard/types.js +1 -0
  40. package/es/plus/clientCard/utils.d.ts +8 -0
  41. package/es/plus/clientCard/utils.js +59 -0
  42. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  43. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  44. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  45. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  46. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  47. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  48. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  49. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  50. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  51. package/es/plus/clinetSearch/Add/index.js +213 -0
  52. package/es/plus/clinetSearch/Add/index.less +30 -0
  53. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  54. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  55. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  56. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  57. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  58. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  59. package/es/plus/clinetSearch/index.d.ts +18 -0
  60. package/es/plus/clinetSearch/index.js +234 -0
  61. package/es/plus/clinetSearch/index.less +95 -0
  62. package/es/plus/clinetSearch/locales.d.ts +108 -0
  63. package/es/plus/clinetSearch/locales.js +107 -0
  64. package/es/plus/clinetSearch/serve.d.ts +1 -0
  65. package/es/plus/clinetSearch/serve.js +31 -0
  66. package/es/plus/clinetSearch/types.d.ts +70 -0
  67. package/es/plus/clinetSearch/types.js +1 -0
  68. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  69. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
  70. package/es/plus/walletPassGallery/components/passDetail/index.js +104 -39
  71. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
  72. package/es/plus/walletPassGallery/components/timelineSection/index.js +19 -2
  73. package/es/plus/walletPassGallery/index.d.ts +4 -0
  74. package/es/plus/walletPassGallery/index.js +121 -42
  75. package/es/plus/walletPassGallery/serve.d.ts +3 -1
  76. package/es/plus/walletPassGallery/serve.js +13 -13
  77. package/es/pro/Selector/Selector.d.ts +1 -1
  78. package/es/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  79. package/es/pro/pisellPhoneKeyboard/index.js +210 -0
  80. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  81. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  82. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  83. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  84. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  85. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  86. package/lib/components/booking/utils.d.ts +2 -2
  87. package/lib/components/eftpos/hooks.d.ts +0 -1
  88. package/lib/components/eftposPay/amount.d.ts +1 -1
  89. package/lib/components/eftposPay/device.d.ts +1 -1
  90. package/lib/components/eftposPay/hooks.d.ts +2 -2
  91. package/lib/components/eftposPay/store/index.d.ts +5 -5
  92. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  93. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  94. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  95. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  96. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  97. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  98. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  99. package/lib/hooks/useTranslationOriginal.js +42 -0
  100. package/lib/index.d.ts +3 -0
  101. package/lib/index.js +9 -0
  102. package/lib/plus/clientCard/index.d.ts +7 -0
  103. package/lib/plus/clientCard/index.js +457 -0
  104. package/lib/plus/clientCard/index.less +515 -0
  105. package/lib/plus/clientCard/line/index.d.ts +9 -0
  106. package/lib/plus/clientCard/line/index.js +153 -0
  107. package/lib/plus/clientCard/line/index.less +142 -0
  108. package/lib/plus/clientCard/locales.d.ts +18 -0
  109. package/lib/plus/clientCard/locales.js +41 -0
  110. package/lib/plus/clientCard/types.d.ts +135 -0
  111. package/lib/plus/clientCard/types.js +17 -0
  112. package/lib/plus/clientCard/utils.d.ts +8 -0
  113. package/lib/plus/clientCard/utils.js +75 -0
  114. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  115. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  116. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  117. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  118. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  119. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  120. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  121. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  122. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  123. package/lib/plus/clinetSearch/Add/index.js +244 -0
  124. package/lib/plus/clinetSearch/Add/index.less +30 -0
  125. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  126. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  127. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  128. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  129. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  130. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  131. package/lib/plus/clinetSearch/index.d.ts +18 -0
  132. package/lib/plus/clinetSearch/index.js +237 -0
  133. package/lib/plus/clinetSearch/index.less +95 -0
  134. package/lib/plus/clinetSearch/locales.d.ts +108 -0
  135. package/lib/plus/clinetSearch/locales.js +131 -0
  136. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  137. package/lib/plus/clinetSearch/serve.js +33 -0
  138. package/lib/plus/clinetSearch/types.d.ts +70 -0
  139. package/lib/plus/clinetSearch/types.js +17 -0
  140. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  141. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
  142. package/lib/plus/walletPassGallery/components/passDetail/index.js +57 -5
  143. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
  144. package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
  145. package/lib/plus/walletPassGallery/index.d.ts +4 -0
  146. package/lib/plus/walletPassGallery/index.js +141 -42
  147. package/lib/plus/walletPassGallery/serve.d.ts +3 -1
  148. package/lib/plus/walletPassGallery/serve.js +2 -2
  149. package/lib/pro/Selector/Selector.d.ts +1 -1
  150. package/lib/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  151. package/lib/pro/pisellPhoneKeyboard/index.js +219 -0
  152. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  153. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  154. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  155. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  156. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  157. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  158. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  159. package/lowcode/client-card/meta.ts +343 -0
  160. package/lowcode/client-search/meta.ts +316 -0
  161. package/lowcode/eco-cup-list/meta.ts +1 -1
  162. package/lowcode/eco-customer-list/meta.ts +1 -1
  163. package/lowcode/wallet-pass-gallery/meta.ts +66 -1
  164. package/package.json +2 -2
@@ -0,0 +1,95 @@
1
+ .client-search-table {
2
+ .pisell-lowcode-table-tbody > tr {
3
+ cursor: pointer;
4
+
5
+ &:hover {
6
+ background-color: #f5f5f5;
7
+ }
8
+ }
9
+
10
+ .pisell-lowcode-table-thead > tr > th {
11
+ background-color: #fafafa;
12
+ font-weight: 600;
13
+ }
14
+ }
15
+
16
+ // List样式
17
+ .client-search-list-header {
18
+ display: flex;
19
+ background-color: #fafafa;
20
+ border-bottom: 1px solid #d9d9d9;
21
+ padding: 12px 16px;
22
+ font-weight: 600;
23
+
24
+ .header-item {
25
+ flex-shrink: 0;
26
+ padding-right: 16px;
27
+ color: rgba(0, 0, 0, 0.85);
28
+ font-size: 14px;
29
+ word-break: keep-all;
30
+ overflow: hidden;
31
+ word-wrap: normal;
32
+ text-overflow: ellipsis;
33
+ }
34
+ }
35
+
36
+ .client-search-list-item {
37
+ cursor: pointer;
38
+ border-bottom: 1px solid #f0f0f0;
39
+ padding: 0 !important;
40
+
41
+ &:hover {
42
+ background-color: #f5f5f5;
43
+ }
44
+
45
+ &:last-child {
46
+ border-bottom: none;
47
+ }
48
+
49
+ .list-item-content {
50
+ display: flex;
51
+ width: 100%;
52
+ padding: 12px 16px;
53
+
54
+ .item-cell {
55
+ flex-shrink: 0;
56
+ padding-right: 16px;
57
+ color: rgba(0, 0, 0, 0.85);
58
+ font-size: 14px;
59
+ display: flex;
60
+ align-items: center;
61
+ overflow: hidden;
62
+ display: inline-block;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ }
66
+ }
67
+
68
+ // 添加点击事件处理
69
+ .ant-list-item-meta {
70
+ pointer-events: none;
71
+ }
72
+ }
73
+
74
+ .client-search-form {
75
+ padding: 16px 0;
76
+
77
+ .ant-form-item {
78
+ margin-bottom: 16px;
79
+ }
80
+
81
+ .ant-input {
82
+ height: 40px;
83
+ }
84
+ }
85
+
86
+ .comprehensive-search {
87
+ .comprehensive-search__results-container {
88
+ .client-search-table {
89
+ .pisell-lowcode-table {
90
+ border: 1px solid #d9d9d9;
91
+ border-radius: 6px;
92
+ }
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,108 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.leave-empty-for-walk-in': string;
4
+ 'pisell2.text.date-year-text': string;
5
+ 'pisell2.text.date-month-text': string;
6
+ 'pisell2.text.date-day-text': string;
7
+ 'pisell2.text.gender': string;
8
+ 'pisell2.text.gender.male': string;
9
+ 'pisell2.text.gender.female': string;
10
+ 'pisell2.text.birthday': string;
11
+ 'pisell2.text.phone': string;
12
+ 'pisell2.text.email': string;
13
+ 'pisell2.text.lastname': string;
14
+ 'pisell2.text.firstname': string;
15
+ 'pisell2.text.email-error-message': string;
16
+ 'pisell2.text.notes': string;
17
+ 'pisell2.text.save': string;
18
+ 'pisell2.text.save-and-select': string;
19
+ 'pisell2.text.no-results-found': string;
20
+ 'pisell2.text.create-new-client': string;
21
+ 'pisell2.text.result-found': string;
22
+ 'pisell2.text.personnel-list': string;
23
+ 'pisell2.text.load-more': string;
24
+ 'pisell2.text.add-client.confirm': string;
25
+ 'pisell2.text.search-customer-by-phone-number': string;
26
+ 'pisell2.text.create': string;
27
+ 'pisell2.text.loading': string;
28
+ 'pisell2.text.no-more-data': string;
29
+ 'pisell2.text.client-search.name': string;
30
+ 'pisell2.text.client-search.register-time': string;
31
+ 'pisell2.text.client-search.phone': string;
32
+ 'pisell2.text.client-search.email': string;
33
+ 'pisell2.text.client-search.membership': string;
34
+ 'pisell2.text.client-search.contact-info': string;
35
+ 'pisell2.text.client-search.holder': string;
36
+ };
37
+ 'zh-CN': {
38
+ 'pisell2.text.leave-empty-for-walk-in': string;
39
+ 'pisell2.text.date-year-text': string;
40
+ 'pisell2.text.date-month-text': string;
41
+ 'pisell2.text.date-day-text': string;
42
+ 'pisell2.text.gender': string;
43
+ 'pisell2.text.gender.male': string;
44
+ 'pisell2.text.gender.female': string;
45
+ 'pisell2.text.birthday': string;
46
+ 'pisell2.text.phone': string;
47
+ 'pisell2.text.email': string;
48
+ 'pisell2.text.lastname': string;
49
+ 'pisell2.text.firstname': string;
50
+ 'pisell2.text.email-error-message': string;
51
+ 'pisell2.text.notes': string;
52
+ 'pisell2.text.save': string;
53
+ 'pisell2.text.save-and-select': string;
54
+ 'pisell2.text.no-results-found': string;
55
+ 'pisell2.text.create-new-client': string;
56
+ 'pisell2.text.result-found': string;
57
+ 'pisell2.text.personnel-list': string;
58
+ 'pisell2.text.add-client.confirm': string;
59
+ 'pisell2.text.load-more': string;
60
+ 'pisell2.text.search-customer-by-phone-number': string;
61
+ 'pisell2.text.create': string;
62
+ 'pisell2.text.loading': string;
63
+ 'pisell2.text.no-more-data': string;
64
+ 'pisell2.text.client-search.name': string;
65
+ 'pisell2.text.client-search.register-time': string;
66
+ 'pisell2.text.client-search.phone': string;
67
+ 'pisell2.text.client-search.email': string;
68
+ 'pisell2.text.client-search.membership': string;
69
+ 'pisell2.text.client-search.contact-info': string;
70
+ 'pisell2.text.client-search.holder': string;
71
+ };
72
+ 'zh-HK': {
73
+ 'pisell2.text.leave-empty-for-walk-in': string;
74
+ 'pisell2.text.date-year-text': string;
75
+ 'pisell2.text.date-month-text': string;
76
+ 'pisell2.text.date-day-text': string;
77
+ 'pisell2.text.gender': string;
78
+ 'pisell2.text.gender.male': string;
79
+ 'pisell2.text.gender.female': string;
80
+ 'pisell2.text.birthday': string;
81
+ 'pisell2.text.phone': string;
82
+ 'pisell2.text.email': string;
83
+ 'pisell2.text.lastname': string;
84
+ 'pisell2.text.firstname': string;
85
+ 'pisell2.text.email-error-message': string;
86
+ 'pisell2.text.notes': string;
87
+ 'pisell2.text.save': string;
88
+ 'pisell2.text.save-and-select': string;
89
+ 'pisell2.text.no-results-found': string;
90
+ 'pisell2.text.create-new-client': string;
91
+ 'pisell2.text.result-found': string;
92
+ 'pisell2.text.personnel-list': string;
93
+ 'pisell2.text.add-client.confirm': string;
94
+ 'pisell2.text.load-more': string;
95
+ 'pisell2.text.search-customer-by-phone-number': string;
96
+ 'pisell2.text.create': string;
97
+ 'pisell2.text.loading': string;
98
+ 'pisell2.text.no-more-data': string;
99
+ 'pisell2.text.client-search.name': string;
100
+ 'pisell2.text.client-search.register-time': string;
101
+ 'pisell2.text.client-search.phone': string;
102
+ 'pisell2.text.client-search.email': string;
103
+ 'pisell2.text.client-search.membership': string;
104
+ 'pisell2.text.client-search.contact-info': string;
105
+ 'pisell2.text.client-search.holder': string;
106
+ };
107
+ };
108
+ export default _default;
@@ -0,0 +1,131 @@
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/clinetSearch/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.leave-empty-for-walk-in": "Leave empty for Walk-In",
28
+ "pisell2.text.date-year-text": "YYYY",
29
+ "pisell2.text.date-month-text": "MM",
30
+ "pisell2.text.date-day-text": "DD",
31
+ "pisell2.text.gender": "Gender",
32
+ "pisell2.text.gender.male": "Male",
33
+ "pisell2.text.gender.female": "Female",
34
+ "pisell2.text.birthday": "Birthday",
35
+ "pisell2.text.phone": "Phone Number",
36
+ "pisell2.text.email": "Email",
37
+ "pisell2.text.lastname": "Last Name",
38
+ "pisell2.text.firstname": "First Name",
39
+ "pisell2.text.email-error-message": "Email format error",
40
+ "pisell2.text.notes": "Note",
41
+ "pisell2.text.save": "Save",
42
+ "pisell2.text.save-and-select": "Save and select",
43
+ "pisell2.text.no-results-found": "No results found.",
44
+ "pisell2.text.create-new-client": "Create new customer",
45
+ "pisell2.text.result-found": "Result found",
46
+ "pisell2.text.personnel-list": "Personnel list",
47
+ "pisell2.text.load-more": "Load more",
48
+ "pisell2.text.add-client.confirm": "Fill in at least one name, phone number and email address",
49
+ "pisell2.text.search-customer-by-phone-number": "Search by phone number",
50
+ "pisell2.text.create": "Create",
51
+ "pisell2.text.loading": "Loading",
52
+ "pisell2.text.no-more-data": "No More Data",
53
+ "pisell2.text.client-search.name": "Name",
54
+ "pisell2.text.client-search.register-time": "Registration Time",
55
+ "pisell2.text.client-search.phone": "Phone Number",
56
+ "pisell2.text.client-search.email": "Email Address",
57
+ "pisell2.text.client-search.membership": "Membership",
58
+ "pisell2.text.client-search.contact-info": "Contact info",
59
+ "pisell2.text.client-search.holder": "Holder"
60
+ },
61
+ "zh-CN": {
62
+ "pisell2.text.leave-empty-for-walk-in": "如未注册游客则留空",
63
+ "pisell2.text.date-year-text": "年",
64
+ "pisell2.text.date-month-text": "月",
65
+ "pisell2.text.date-day-text": "日",
66
+ "pisell2.text.gender": "性别",
67
+ "pisell2.text.gender.male": "男",
68
+ "pisell2.text.gender.female": "女",
69
+ "pisell2.text.birthday": "生日",
70
+ "pisell2.text.phone": "电话号码",
71
+ "pisell2.text.email": "电子邮箱",
72
+ "pisell2.text.lastname": "姓",
73
+ "pisell2.text.firstname": "名",
74
+ "pisell2.text.email-error-message": "电子邮件格式错误",
75
+ "pisell2.text.notes": "备注",
76
+ "pisell2.text.save": "保存",
77
+ "pisell2.text.save-and-select": "保存并选中",
78
+ "pisell2.text.no-results-found": "没有搜索到结果",
79
+ "pisell2.text.create-new-client": "创建新客户",
80
+ "pisell2.text.result-found": "搜索结果",
81
+ "pisell2.text.personnel-list": "客户列表",
82
+ "pisell2.text.add-client.confirm": "姓名,电话,邮箱至少填一个",
83
+ "pisell2.text.load-more": "加载更多",
84
+ "pisell2.text.search-customer-by-phone-number": "输入手机号搜索客户",
85
+ "pisell2.text.create": "创建",
86
+ "pisell2.text.loading": "加载中",
87
+ "pisell2.text.no-more-data": "没有更多数据了",
88
+ "pisell2.text.client-search.name": "姓名",
89
+ "pisell2.text.client-search.register-time": "注册时间",
90
+ "pisell2.text.client-search.phone": "电话号码",
91
+ "pisell2.text.client-search.email": "邮箱",
92
+ "pisell2.text.client-search.membership": "会员",
93
+ "pisell2.text.client-search.contact-info": "联系信息",
94
+ "pisell2.text.client-search.holder": "持有人"
95
+ },
96
+ "zh-HK": {
97
+ "pisell2.text.leave-empty-for-walk-in": "如未註冊遊客則留空",
98
+ "pisell2.text.date-year-text": "年",
99
+ "pisell2.text.date-month-text": "月",
100
+ "pisell2.text.date-day-text": "日",
101
+ "pisell2.text.gender": "性别",
102
+ "pisell2.text.gender.male": "男",
103
+ "pisell2.text.gender.female": "女",
104
+ "pisell2.text.birthday": "生日",
105
+ "pisell2.text.phone": "電話號碼",
106
+ "pisell2.text.email": "電子郵箱",
107
+ "pisell2.text.lastname": "姓",
108
+ "pisell2.text.firstname": "名",
109
+ "pisell2.text.email-error-message": "電子郵件格式錯誤",
110
+ "pisell2.text.notes": "備註",
111
+ "pisell2.text.save": "保存",
112
+ "pisell2.text.save-and-select": "保存並選中",
113
+ "pisell2.text.no-results-found": "沒有搜索到客戶",
114
+ "pisell2.text.create-new-client": "創建新客戶",
115
+ "pisell2.text.result-found": "搜索結果",
116
+ "pisell2.text.personnel-list": "客戶列表",
117
+ "pisell2.text.add-client.confirm": "姓名,電話,郵箱至少填一個",
118
+ "pisell2.text.load-more": "加載更多",
119
+ "pisell2.text.search-customer-by-phone-number": "輸入手機號搜索客戶",
120
+ "pisell2.text.create": "創建",
121
+ "pisell2.text.loading": "載入中",
122
+ "pisell2.text.no-more-data": "沒有更多資料了",
123
+ "pisell2.text.client-search.name": "姓名",
124
+ "pisell2.text.client-search.register-time": "註冊時間",
125
+ "pisell2.text.client-search.phone": "電話號碼",
126
+ "pisell2.text.client-search.email": "電郵地址",
127
+ "pisell2.text.client-search.membership": "會員",
128
+ "pisell2.text.client-search.contact-info": "聯繫信息",
129
+ "pisell2.text.client-search.holder": "持有人"
130
+ }
131
+ };
@@ -0,0 +1 @@
1
+ export declare const addCustomer: (params: any) => Promise<any>;
@@ -0,0 +1,33 @@
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/clinetSearch/serve.ts
20
+ var serve_exports = {};
21
+ __export(serve_exports, {
22
+ addCustomer: () => addCustomer
23
+ });
24
+ module.exports = __toCommonJS(serve_exports);
25
+ var import_utils = require("../../utils");
26
+ var addCustomer = async (params) => {
27
+ const res = await import_utils.request.getRequest().post(`/shop/customer`, params, { abort: true, fullResult: true });
28
+ return res == null ? void 0 : res.data;
29
+ };
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ addCustomer
33
+ });
@@ -0,0 +1,70 @@
1
+ /// <reference types="react" />
2
+ export interface FormRecord {
3
+ form_id: number;
4
+ id: number;
5
+ main_field: string;
6
+ data?: {
7
+ [key: string]: any;
8
+ };
9
+ }
10
+ export interface ClientData {
11
+ id: number;
12
+ display_name: string;
13
+ created_at: string;
14
+ phone: string;
15
+ email: string;
16
+ channel: string;
17
+ country_calling_code: string;
18
+ nickname: string;
19
+ shop_id: number;
20
+ updated_at: string;
21
+ contacts_info: {
22
+ value: {
23
+ first_name?: string;
24
+ last_name?: string;
25
+ phone?: {
26
+ phone?: string;
27
+ country_calling_code?: string;
28
+ country_code?: string;
29
+ };
30
+ email?: string;
31
+ };
32
+ };
33
+ form_record: FormRecord[];
34
+ }
35
+ export interface ClientSearchProps {
36
+ dataSource?: any;
37
+ isShowScanner?: boolean;
38
+ isShowCamera?: boolean;
39
+ isShowNFC?: boolean;
40
+ isShowNewButton?: boolean;
41
+ newButtonAlign?: 'left' | 'center' | 'right';
42
+ newButtonText?: string;
43
+ renderType?: 'modal' | 'drawer' | 'portal' | '';
44
+ containerProps?: Record<string, any>;
45
+ isShowSearch?: boolean;
46
+ isShowSearchCamera?: boolean;
47
+ searchIcon?: string;
48
+ placeholder?: string;
49
+ isShowSearchButton?: boolean;
50
+ resultSort?: 'asc' | 'desc' | 'custom';
51
+ sortBy?: string;
52
+ style?: React.CSSProperties;
53
+ onChange?: (value: string) => void;
54
+ onSearch?: (value: string) => void;
55
+ onAdd?: () => void;
56
+ onDataChange?: (data: any) => void;
57
+ onRowClick?: (record: ClientData, index: number) => void;
58
+ }
59
+ export interface ClientFormData {
60
+ display_name: string;
61
+ phone?: string;
62
+ email?: string;
63
+ nickname?: string;
64
+ }
65
+ export interface ClientSearchState {
66
+ modalVisible: boolean;
67
+ loading: boolean;
68
+ searchResults: ClientData[];
69
+ searchValue: string;
70
+ }
@@ -0,0 +1,17 @@
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/clinetSearch/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
3
3
  value?: string;
4
4
  onChange?: (val: string) => void;
5
5
  }
6
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
6
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
7
7
  declare const ImageUpload: React.FC<ImageUploadProps>;
8
8
  export default ImageUpload;
@@ -5,6 +5,8 @@ interface PassDetailProps {
5
5
  platform?: 'pc' | 'h5';
6
6
  buttonGroupList?: any[][];
7
7
  showTimeLine?: boolean;
8
+ onDetailRefresh?: (passId: number | string, patch: any) => void;
9
+ onListRefresh?: () => void;
8
10
  }
9
11
  declare const PassDetail: (props: PassDetailProps) => React.JSX.Element | null;
10
12
  export default PassDetail;
@@ -55,15 +55,22 @@ var { Text } = import_antd.Typography;
55
55
  var PassDetail = (props) => {
56
56
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
57
57
  const { symbol = "$" } = (0, import_materials.usePisellConfig)();
58
- const { dataSource, platform = "pc", showTimeLine = true } = props;
58
+ const {
59
+ dataSource,
60
+ platform = "pc",
61
+ showTimeLine = true,
62
+ onDetailRefresh,
63
+ onListRefresh
64
+ } = props;
59
65
  const [activeKey, setActiveKey] = (0, import_react.useState)("detail");
60
66
  const [rechargeOpen, setRechargeOpen] = (0, import_react.useState)(false);
61
67
  const containerRef = (0, import_react.useRef)(null);
62
68
  const isIndicatorVisibleRef = (0, import_react.useRef)(false);
63
69
  const context = (0, import_useEngineContext.default)();
64
- const { store } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || { store: {} };
70
+ const { store, isTerminal, interaction, isApp } = (_a = context.appHelper) == null ? void 0 : _a.utils;
65
71
  const { apiPrefix } = ((_b = context.appHelper) == null ? void 0 : _b.constants) || { apiPrefix: "/h5" };
66
72
  const timezone = ((_g = (_f = (_e = (_d = (_c = store == null ? void 0 : store.getState) == null ? void 0 : _c.call(store)) == null ? void 0 : _d.global) == null ? void 0 : _e.symbol) == null ? void 0 : _f.shop) == null ? void 0 : _g.timezone) || "Asia/Shanghai";
73
+ const isTerminalEnv = (typeof isTerminal === "function" ? isTerminal() : !!isTerminal) || (isApp == null ? void 0 : isApp());
67
74
  import_utils.locales.init(import_locales.default, ((_i = (_h = context == null ? void 0 : context.engine) == null ? void 0 : _h.props) == null ? void 0 : _i.locale) || "en");
68
75
  if ((_k = (_j = context.appHelper) == null ? void 0 : _j.utils) == null ? void 0 : _k.request) {
69
76
  import_utils4.request.setRequest((_m = (_l = context.appHelper) == null ? void 0 : _l.utils) == null ? void 0 : _m.request);
@@ -96,6 +103,31 @@ var PassDetail = (props) => {
96
103
  refreshDeps: [id, customer_id]
97
104
  }
98
105
  );
106
+ (0, import_react.useEffect)(() => {
107
+ var _a2, _b2;
108
+ (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.mountFunction) == null ? void 0 : _b2.call(
109
+ _a2,
110
+ "customer",
111
+ "recharge",
112
+ async (strVal) => {
113
+ var _a3;
114
+ if (!strVal) {
115
+ return onListRefresh == null ? void 0 : onListRefresh();
116
+ }
117
+ try {
118
+ const latest = await ((_a3 = _getDetail.refreshAsync) == null ? void 0 : _a3.call(_getDetail));
119
+ const patch = {
120
+ balance: (latest == null ? void 0 : latest.balance) !== void 0 ? latest.balance : balance ?? void 0,
121
+ expire_date: (latest == null ? void 0 : latest.expire_date) !== void 0 ? latest.expire_date : expire_date ?? void 0,
122
+ unified_available_status: latest == null ? void 0 : latest.unified_available_status
123
+ };
124
+ onDetailRefresh == null ? void 0 : onDetailRefresh(id, patch);
125
+ } catch (err) {
126
+ console.error(err);
127
+ }
128
+ }
129
+ );
130
+ }, [id]);
99
131
  const scheduleList = (0, import_react.useMemo)(() => {
100
132
  return (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [];
101
133
  }, [custom_schedule_snapshot]);
@@ -200,6 +232,24 @@ var PassDetail = (props) => {
200
232
  setActiveKey(_key);
201
233
  }
202
234
  }, []);
235
+ const handleRechargeClick = (0, import_react.useCallback)(() => {
236
+ var _a2, _b2;
237
+ if (isTerminalEnv) {
238
+ const productId = (product == null ? void 0 : product.id) || (dataSource == null ? void 0 : dataSource.product_id) || "";
239
+ (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
240
+ module: "customer",
241
+ key: "recharge",
242
+ data: {
243
+ product_id: String(productId || ""),
244
+ card_id: String(id || ""),
245
+ card_code: String(code || ""),
246
+ customer_id: String(customer_id || "")
247
+ }
248
+ });
249
+ return;
250
+ }
251
+ setRechargeOpen(true);
252
+ }, [isTerminalEnv, id, code, customer_id, product, dataSource]);
203
253
  if (!dataSource) {
204
254
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, null);
205
255
  }
@@ -246,7 +296,9 @@ var PassDetail = (props) => {
246
296
  code,
247
297
  tag,
248
298
  timezone,
249
- apiPrefix
299
+ apiPrefix,
300
+ isTerminalEnv,
301
+ interaction
250
302
  }
251
303
  );
252
304
  };
@@ -299,7 +351,7 @@ var PassDetail = (props) => {
299
351
  {
300
352
  type: "primary",
301
353
  size: "large",
302
- onClick: () => setRechargeOpen(true)
354
+ onClick: handleRechargeClick
303
355
  },
304
356
  import_utils.locales.getText("wallet-pass-gallery.recharge")
305
357
  ), /* @__PURE__ */ import_react.default.createElement(
@@ -328,7 +380,7 @@ var PassDetail = (props) => {
328
380
  {
329
381
  appleWalletUrl: (_o = _getDetail.data) == null ? void 0 : _o.apple_wallet_url,
330
382
  googleWalletUrl: (_p = _getDetail.data) == null ? void 0 : _p.google_wallet_url,
331
- onRechargeClick: ((_q = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _q.hide_recharge) === 0 ? () => setRechargeOpen(true) : void 0,
383
+ onRechargeClick: ((_q = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _q.hide_recharge) === 0 ? handleRechargeClick : void 0,
332
384
  platform
333
385
  }
334
386
  ) : null, /* @__PURE__ */ import_react.default.createElement(
@@ -5,6 +5,8 @@ interface TimelineSectionProps {
5
5
  tag: string;
6
6
  timezone: string;
7
7
  apiPrefix?: '/shop' | '/h5';
8
+ isTerminalEnv?: boolean;
9
+ interaction?: any;
8
10
  }
9
11
  declare const TimelineSection: (props: TimelineSectionProps) => React.JSX.Element;
10
12
  export default TimelineSection;
@@ -45,7 +45,7 @@ import_dayjs.default.extend(import_timezone.default);
45
45
  import_dayjs.default.extend(import_utc.default);
46
46
  var stateTimeUnix = 1723255863;
47
47
  var TimelineSection = (props) => {
48
- const { code, tag, timezone, apiPrefix } = props;
48
+ const { code, tag, timezone, apiPrefix, isTerminalEnv, interaction } = props;
49
49
  const { symbol = "$" } = (0, import_materials.usePisellConfig)();
50
50
  const [isShowtimeLineDetail, setIsShowtimeLineDetail] = import_react.default.useState(false);
51
51
  const [isSpending, setIsSpending] = import_react.default.useState(true);
@@ -205,7 +205,22 @@ var TimelineSection = (props) => {
205
205
  label: import_utils.locales.getText("wallet-pass-gallery.viewOrder"),
206
206
  value: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_code) ? `#${timeLineDetail == null ? void 0 : timeLineDetail.resource_code}` : (timeLineDetail == null ? void 0 : timeLineDetail.transaction_id) ? `#${timeLineDetail == null ? void 0 : timeLineDetail.transaction_id}` : "",
207
207
  isLink: !!(timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id)),
208
- link: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id) ? apiPrefix === "/shop" ? `/admin/order/orders/detail?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}` : `/order/details?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}` : void 0
208
+ onClick: () => {
209
+ var _a, _b;
210
+ if (isTerminalEnv) {
211
+ return (_b = (_a = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a.postMessageToApp) == null ? void 0 : _b.call(_a, {
212
+ module: "booking",
213
+ key: "view_order",
214
+ data: {
215
+ order_id: timeLineDetail == null ? void 0 : timeLineDetail.resource_id
216
+ },
217
+ origin: "/booking"
218
+ });
219
+ }
220
+ const link = apiPrefix === "/shop" ? `/admin/order/orders/detail?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}` : `/order/details?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}`;
221
+ location.replace(link);
222
+ },
223
+ link: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id) ? true : void 0
209
224
  }
210
225
  ],
211
226
  labelColor: "#101828",
@@ -1,6 +1,10 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  export interface WalletPassGalleryProps {
4
+ hideTitle: boolean;
5
+ hideAddButton: boolean;
6
+ customer?: any;
7
+ platform?: 'pc' | 'h5';
4
8
  [key: string]: any;
5
9
  }
6
10
  declare const WalletPassGallery: (props: WalletPassGalleryProps) => React.JSX.Element;