@pisell/private-materials 6.3.52 → 6.3.54

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 (196) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  12. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  13. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  14. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  15. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  16. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  17. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  18. package/es/components/booking/info/date/index.d.ts +0 -1
  19. package/es/components/booking/info/notes/index.d.ts +0 -1
  20. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  21. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  22. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  23. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  24. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  25. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  26. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  27. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  28. package/es/components/eftpos/form/index.d.ts +1 -0
  29. package/es/components/eftpos/hooks.d.ts +1 -0
  30. package/es/components/eftposPay/amount.d.ts +0 -1
  31. package/es/components/eftposPay/hooks.d.ts +1 -1
  32. package/es/components/eftposPay/payo/config.d.ts +0 -1
  33. package/es/components/eftposPay/store/index.d.ts +1 -1
  34. package/es/components/eftposPay/tip.d.ts +0 -1
  35. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  36. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  37. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  38. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  39. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  40. package/es/components/index.d.ts +2 -1
  41. package/es/components/index.js +2 -1
  42. package/es/components/login/index.d.ts +0 -1
  43. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  44. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  45. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  46. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  47. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  48. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  49. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  50. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  51. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  52. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  53. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  54. package/es/components/schedules/calendar/index.d.ts +0 -1
  55. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  56. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  57. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  58. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  59. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  60. package/es/components/schedules/products/list/index.d.ts +0 -1
  61. package/es/components/schedules/resources/list/index.d.ts +0 -1
  62. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  63. package/es/components/shoppingCart/index.d.ts +0 -1
  64. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  65. package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
  66. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  67. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  68. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  69. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  70. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  71. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  72. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  73. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  74. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  75. package/es/components/systemSettings/registry/components/index.js +4 -0
  76. package/es/components/systemSettings/registry/index.d.ts +5 -0
  77. package/es/components/systemSettings/registry/index.js +1059 -0
  78. package/es/components/systemSettings/registry/index.less +410 -0
  79. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  80. package/es/components/systemSettings/registry/locales.js +300 -0
  81. package/es/components/systemSettings/registry/services.d.ts +77 -0
  82. package/es/components/systemSettings/registry/services.js +472 -0
  83. package/es/components/systemSettings/registry/types.d.ts +126 -0
  84. package/es/components/systemSettings/registry/types.js +1 -0
  85. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  86. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  87. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  88. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  89. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  90. package/es/hooks/usePaymentLogger.d.ts +0 -1
  91. package/es/index.d.ts +1 -0
  92. package/es/index.js +1 -0
  93. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  94. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  95. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  96. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  97. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  98. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  99. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  100. package/es/plus/walletPassGallery/serve.js +2 -0
  101. package/es/pro/Login2.0/AuthModal.js +12 -4
  102. package/es/pro/Login2.0/index.less +3 -3
  103. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  104. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  105. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  106. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  107. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  108. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  109. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  110. package/lib/components/booking/info/date/index.d.ts +0 -1
  111. package/lib/components/booking/info/notes/index.d.ts +0 -1
  112. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  113. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  114. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  115. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  116. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  117. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  118. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  119. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  120. package/lib/components/eftpos/form/index.d.ts +1 -0
  121. package/lib/components/eftpos/hooks.d.ts +1 -0
  122. package/lib/components/eftposPay/amount.d.ts +0 -1
  123. package/lib/components/eftposPay/hooks.d.ts +1 -1
  124. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  125. package/lib/components/eftposPay/store/index.d.ts +1 -1
  126. package/lib/components/eftposPay/tip.d.ts +0 -1
  127. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  128. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  129. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  130. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  131. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  132. package/lib/components/index.d.ts +2 -1
  133. package/lib/components/index.js +3 -0
  134. package/lib/components/login/index.d.ts +0 -1
  135. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  136. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  137. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  138. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  139. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  140. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  141. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  142. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  143. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  144. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  145. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  146. package/lib/components/schedules/calendar/index.d.ts +0 -1
  147. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  148. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  149. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  150. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  151. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  152. package/lib/components/schedules/products/list/index.d.ts +0 -1
  153. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  154. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  155. package/lib/components/shoppingCart/index.d.ts +0 -1
  156. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  157. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  158. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  159. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  160. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  161. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  162. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  163. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  164. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  165. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  166. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  167. package/lib/components/systemSettings/registry/components/index.js +48 -0
  168. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  169. package/lib/components/systemSettings/registry/index.js +529 -0
  170. package/lib/components/systemSettings/registry/index.less +410 -0
  171. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  172. package/lib/components/systemSettings/registry/locales.js +324 -0
  173. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  174. package/lib/components/systemSettings/registry/services.js +290 -0
  175. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  176. package/lib/components/systemSettings/registry/types.js +17 -0
  177. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  178. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  179. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  180. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  181. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  182. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  183. package/lib/index.d.ts +1 -0
  184. package/lib/index.js +3 -0
  185. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  186. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  187. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  188. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  189. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  190. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  191. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  192. package/lib/plus/walletPassGallery/serve.js +2 -0
  193. package/lib/pro/Login2.0/AuthModal.js +15 -7
  194. package/lib/pro/Login2.0/index.less +3 -3
  195. package/lowcode/settings-registry/meta.ts +29 -0
  196. package/package.json +3 -3
@@ -0,0 +1,284 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ /**
3
+ * 类型验证工具函数
4
+ * 用于验证默认值是否符合指定的字段类型
5
+ */
6
+
7
+ /**
8
+ * 验证字符串类型
9
+ */
10
+ var validateString = function validateString(value) {
11
+ if (value === null || value === undefined || value === '') {
12
+ return {
13
+ isValid: true
14
+ };
15
+ }
16
+ if (typeof value === 'string') {
17
+ return {
18
+ isValid: true
19
+ };
20
+ }
21
+ return {
22
+ isValid: false,
23
+ error: '默认值必须是字符串类型'
24
+ };
25
+ };
26
+
27
+ /**
28
+ * 验证整数类型
29
+ */
30
+ var validateInteger = function validateInteger(value) {
31
+ if (value === null || value === undefined || value === '') {
32
+ return {
33
+ isValid: true
34
+ };
35
+ }
36
+
37
+ // 如果是数字,检查是否为整数
38
+ if (typeof value === 'number') {
39
+ if (!Number.isInteger(value)) {
40
+ return {
41
+ isValid: false,
42
+ error: '默认值必须是整数'
43
+ };
44
+ }
45
+ return {
46
+ isValid: true
47
+ };
48
+ }
49
+
50
+ // 如果是字符串,尝试转换
51
+ if (typeof value === 'string') {
52
+ var trimmed = value.trim();
53
+ if (trimmed === '') {
54
+ return {
55
+ isValid: true
56
+ };
57
+ }
58
+ var num = Number(trimmed);
59
+ if (isNaN(num) || !Number.isInteger(num)) {
60
+ return {
61
+ isValid: false,
62
+ error: '默认值必须是有效的整数'
63
+ };
64
+ }
65
+ return {
66
+ isValid: true
67
+ };
68
+ }
69
+ return {
70
+ isValid: false,
71
+ error: '默认值必须是有效的整数'
72
+ };
73
+ };
74
+
75
+ /**
76
+ * 验证浮点数类型
77
+ */
78
+ var validateFloat = function validateFloat(value) {
79
+ if (value === null || value === undefined || value === '') {
80
+ return {
81
+ isValid: true
82
+ };
83
+ }
84
+
85
+ // 如果是数字,检查是否有效
86
+ if (typeof value === 'number') {
87
+ if (!isFinite(value)) {
88
+ return {
89
+ isValid: false,
90
+ error: '默认值必须是有效的数字'
91
+ };
92
+ }
93
+ return {
94
+ isValid: true
95
+ };
96
+ }
97
+
98
+ // 如果是字符串,尝试转换
99
+ if (typeof value === 'string') {
100
+ var trimmed = value.trim();
101
+ if (trimmed === '') {
102
+ return {
103
+ isValid: true
104
+ };
105
+ }
106
+ var num = Number(trimmed);
107
+ if (isNaN(num) || !isFinite(num)) {
108
+ return {
109
+ isValid: false,
110
+ error: '默认值必须是有效的数字'
111
+ };
112
+ }
113
+ return {
114
+ isValid: true
115
+ };
116
+ }
117
+ return {
118
+ isValid: false,
119
+ error: '默认值必须是有效的数字'
120
+ };
121
+ };
122
+
123
+ /**
124
+ * 验证布尔类型
125
+ */
126
+ var validateBoolean = function validateBoolean(value) {
127
+ if (value === null || value === undefined || value === '') {
128
+ return {
129
+ isValid: true
130
+ };
131
+ }
132
+
133
+ // 如果是字符串,只接受 'true' 或 'false'
134
+ if (typeof value === 'string') {
135
+ var trimmed = value.trim().toLowerCase();
136
+ if (trimmed === '') {
137
+ return {
138
+ isValid: true
139
+ };
140
+ }
141
+ if (trimmed !== 'true' && trimmed !== 'false') {
142
+ return {
143
+ isValid: false,
144
+ error: '默认值必须是 true 或 false'
145
+ };
146
+ }
147
+ return {
148
+ isValid: true
149
+ };
150
+ }
151
+
152
+ // 如果是布尔类型
153
+ if (typeof value === 'boolean') {
154
+ return {
155
+ isValid: true
156
+ };
157
+ }
158
+ return {
159
+ isValid: false,
160
+ error: '默认值必须是 true 或 false'
161
+ };
162
+ };
163
+
164
+ /**
165
+ * 验证数组类型(JSON对象/数组)
166
+ */
167
+ var validateArray = function validateArray(value) {
168
+ if (value === null || value === undefined || value === '') {
169
+ return {
170
+ isValid: true
171
+ };
172
+ }
173
+
174
+ // 如果是字符串,尝试解析为JSON
175
+ if (typeof value === 'string') {
176
+ var trimmed = value.trim();
177
+ if (trimmed === '') {
178
+ return {
179
+ isValid: true
180
+ };
181
+ }
182
+ try {
183
+ var parsed = JSON.parse(trimmed);
184
+ // 检查解析后的值是否为对象或数组
185
+ if (_typeof(parsed) !== 'object' || parsed === null) {
186
+ return {
187
+ isValid: false,
188
+ error: '默认值必须是有效的JSON对象或数组'
189
+ };
190
+ }
191
+ return {
192
+ isValid: true
193
+ };
194
+ } catch (error) {
195
+ return {
196
+ isValid: false,
197
+ error: '默认值必须是有效的JSON对象或数组'
198
+ };
199
+ }
200
+ }
201
+
202
+ // 如果是对象或数组
203
+ if (_typeof(value) === 'object' && value !== null) {
204
+ return {
205
+ isValid: true
206
+ };
207
+ }
208
+ return {
209
+ isValid: false,
210
+ error: '默认值必须是有效的JSON对象或数组'
211
+ };
212
+ };
213
+
214
+ /**
215
+ * 根据字段类型验证默认值
216
+ */
217
+ export var validateDefaultValue = function validateDefaultValue(fieldType, defaultValue) {
218
+ if (!fieldType) {
219
+ return {
220
+ isValid: false,
221
+ error: '字段类型不能为空'
222
+ };
223
+ }
224
+ switch (fieldType.toLowerCase()) {
225
+ case 'string':
226
+ return validateString(defaultValue);
227
+ case 'integer':
228
+ return validateInteger(defaultValue);
229
+ case 'float':
230
+ return validateFloat(defaultValue);
231
+ case 'boolean':
232
+ return validateBoolean(defaultValue);
233
+ case 'array':
234
+ return validateArray(defaultValue);
235
+ default:
236
+ return {
237
+ isValid: false,
238
+ error: "\u4E0D\u652F\u6301\u7684\u5B57\u6BB5\u7C7B\u578B: ".concat(fieldType)
239
+ };
240
+ }
241
+ };
242
+
243
+ /**
244
+ * 解析默认值为对应的类型
245
+ */
246
+ export var parseDefaultValue = function parseDefaultValue(fieldType, defaultValue) {
247
+ if (defaultValue === null || defaultValue === undefined || defaultValue === '') {
248
+ return null;
249
+ }
250
+ switch (fieldType.toLowerCase()) {
251
+ case 'string':
252
+ return String(defaultValue);
253
+ case 'integer':
254
+ if (typeof defaultValue === 'string') {
255
+ var trimmed = defaultValue.trim();
256
+ if (trimmed === '') return null;
257
+ return parseInt(trimmed, 10);
258
+ }
259
+ return defaultValue;
260
+ case 'float':
261
+ if (typeof defaultValue === 'string') {
262
+ var _trimmed = defaultValue.trim();
263
+ if (_trimmed === '') return null;
264
+ return parseFloat(_trimmed);
265
+ }
266
+ return defaultValue;
267
+ case 'boolean':
268
+ if (typeof defaultValue === 'string') {
269
+ var _trimmed2 = defaultValue.trim().toLowerCase();
270
+ if (_trimmed2 === '') return null;
271
+ return _trimmed2 === 'true';
272
+ }
273
+ return Boolean(defaultValue);
274
+ case 'array':
275
+ if (typeof defaultValue === 'string') {
276
+ var _trimmed3 = defaultValue.trim();
277
+ if (_trimmed3 === '') return null;
278
+ return JSON.parse(_trimmed3);
279
+ }
280
+ return defaultValue;
281
+ default:
282
+ return defaultValue;
283
+ }
284
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 验证器工具函数
3
+ */
4
+ /**
5
+ * 创建带前缀的应用标识符验证器
6
+ * 用于验证设置项的键格式
7
+ */
8
+ export declare const createPrefixedAppIdentifierValidator: (sectionCode: string) => (_: any, value: string) => Promise<void>;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * 验证器工具函数
3
+ */
4
+
5
+ /**
6
+ * 创建带前缀的应用标识符验证器
7
+ * 用于验证设置项的键格式
8
+ */
9
+ export var createPrefixedAppIdentifierValidator = function createPrefixedAppIdentifierValidator(sectionCode) {
10
+ return function (_, value) {
11
+ if (!value) {
12
+ return Promise.resolve();
13
+ }
14
+
15
+ // 检查是否以section code开头
16
+ var expectedPrefix = "".concat(sectionCode, ".");
17
+ if (!value.startsWith(expectedPrefix)) {
18
+ return Promise.reject(new Error("\u952E\u5FC5\u987B\u4EE5 \"".concat(expectedPrefix, "\" \u5F00\u5934")));
19
+ }
20
+
21
+ // 检查剩余部分的格式
22
+ var remainingPart = value.substring(expectedPrefix.length);
23
+ if (!remainingPart) {
24
+ return Promise.reject(new Error('键不能只包含前缀'));
25
+ }
26
+
27
+ // 验证格式:只能包含小写字母、数字、点、下划线
28
+ var validPattern = /^[a-z0-9._]+$/;
29
+ if (!validPattern.test(remainingPart)) {
30
+ return Promise.reject(new Error('键只能包含小写字母、数字、点、下划线'));
31
+ }
32
+
33
+ // 不能以点或下划线开头或结尾
34
+ if (remainingPart.startsWith('.') || remainingPart.startsWith('_') || remainingPart.endsWith('.') || remainingPart.endsWith('_')) {
35
+ return Promise.reject(new Error('键不能以点或下划线开头或结尾'));
36
+ }
37
+
38
+ // 不能包含连续的点或下划线
39
+ if (remainingPart.includes('..') || remainingPart.includes('__') || remainingPart.includes('._') || remainingPart.includes('_.')) {
40
+ return Promise.reject(new Error('键不能包含连续的点或下划线'));
41
+ }
42
+ return Promise.resolve();
43
+ };
44
+ };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from '../serve';
3
2
  /**
4
3
  * 钱包卡片Hook的参数
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LogData {
3
2
  key: string;
4
3
  value: any;
package/es/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { default as TaxSelect } from './components/taxSelect';
22
22
  export { default as EftposPay } from './components/eftposPay';
23
23
  export { default as ToCPay } from './components/pay/toC';
24
24
  export { default as Eftpos } from './components/eftpos';
25
+ export { default as Wallet } from './components/wallet';
25
26
  export { default as WalletList } from './components/walletList';
26
27
  export { default as BookingDashboard } from './components/booking/dashboard';
27
28
  export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
package/es/index.js CHANGED
@@ -26,6 +26,7 @@ export { default as TaxSelect } from "./components/taxSelect";
26
26
  export { default as EftposPay } from "./components/eftposPay";
27
27
  export { default as ToCPay } from "./components/pay/toC";
28
28
  export { default as Eftpos } from "./components/eftpos";
29
+ export { default as Wallet } from "./components/wallet";
29
30
  export { default as WalletList } from "./components/walletList";
30
31
  export { default as BookingDashboard } from "./components/booking/dashboard";
31
32
  export { default as PisellSelectCustomerModal } from "./components/pisellSelectCustomerModal";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SCOProps } from '../types';
3
2
  import '../index.less';
4
3
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormInstance } from 'antd';
3
2
  import { SRProps } from '../types';
4
3
  import '../index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormInstance } from 'antd';
3
2
  import { SRProps } from '../types';
4
3
  import '../index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRProps } from '../types';
3
2
  import '../index.less';
4
3
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRProps } from '../types';
3
2
  import '../index.less';
4
3
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SRStepStatus } from '../types';
3
2
  import '../index.less';
4
3
  declare const VerifyError: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VerifyingEmailLink: (props: {
4
3
  onVerifyLink: () => Promise<void>;
@@ -220,6 +220,8 @@ export var getDetailApi = /*#__PURE__*/function () {
220
220
  order_behavior_count_customer: 1,
221
221
  // 客户订单行为次数
222
222
  order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
223
+ }, {
224
+ isOriginHost: true
223
225
  });
224
226
  case 2:
225
227
  _yield$request$getReq6 = _context6.sent;
@@ -84,7 +84,7 @@ var AuthModal = function AuthModal() {
84
84
 
85
85
  // 转换配置为 Login2 所需的格式
86
86
  var login2Config = useMemo(function () {
87
- var _config$auth, _authMethods$email, _authMethods$phone, _authMethods$google, _authMethods$facebook, _authMethods$apple, _authMethods$guest, _config$page, _config$page2, _config$page3, _config$page4, _config$page5, _config$page6, _config$page7;
87
+ var _config$auth, _authMethods$email, _authMethods$phone, _authMethods$google, _authMethods$facebook, _authMethods$apple, _authMethods$guest, _config$page, _config$page2, _config$page3, _config$page4, _config$page5, _config$page6, _config$logoSize, _config$logoSize2, _config$page7;
88
88
  if (!localesInitialized) {
89
89
  return {
90
90
  loginMethods: [],
@@ -302,7 +302,11 @@ var AuthModal = function AuthModal() {
302
302
  show: config !== null && config !== void 0 && config.logo ? true : false,
303
303
  url: config === null || config === void 0 ? void 0 : config.logo,
304
304
  // 直接从 config.logo 读取
305
- position: 'center'
305
+ position: 'center',
306
+ size: {
307
+ width: (config === null || config === void 0 || (_config$logoSize = config.logoSize) === null || _config$logoSize === void 0 ? void 0 : _config$logoSize.width) || 48,
308
+ height: (config === null || config === void 0 || (_config$logoSize2 = config.logoSize) === null || _config$logoSize2 === void 0 ? void 0 : _config$logoSize2.height) || 48
309
+ }
306
310
  } : undefined,
307
311
  themeColor: (config === null || config === void 0 || (_config$page7 = config.page) === null || _config$page7 === void 0 || (_config$page7 = _config$page7.login) === null || _config$page7 === void 0 || (_config$page7 = _config$page7.ui) === null || _config$page7 === void 0 ? void 0 : _config$page7.themeColor) || '#7F56D9',
308
312
  formLabels: {
@@ -325,7 +329,7 @@ var AuthModal = function AuthModal() {
325
329
 
326
330
  // 转换配置为 Register2 所需的格式
327
331
  var register2Config = useMemo(function () {
328
- var _config$auth2, _authMethods$email2, _authMethods$phone2, _authMethods$google2, _authMethods$facebook2, _authMethods$apple2, _config$page8, _config$page9, _config$page10, _config$auth3;
332
+ var _config$auth2, _authMethods$email2, _authMethods$phone2, _authMethods$google2, _authMethods$facebook2, _authMethods$apple2, _config$page8, _config$page9, _config$logoSize3, _config$logoSize4, _config$page10, _config$auth3;
329
333
  if (!localesInitialized) {
330
334
  return {
331
335
  registrationMethods: [],
@@ -471,7 +475,11 @@ var AuthModal = function AuthModal() {
471
475
  show: config.logo ? true : false,
472
476
  url: config.logo,
473
477
  // 直接从 config.logo 读取
474
- position: 'center'
478
+ position: 'center',
479
+ size: {
480
+ width: (config === null || config === void 0 || (_config$logoSize3 = config.logoSize) === null || _config$logoSize3 === void 0 ? void 0 : _config$logoSize3.width) || 48,
481
+ height: (config === null || config === void 0 || (_config$logoSize4 = config.logoSize) === null || _config$logoSize4 === void 0 ? void 0 : _config$logoSize4.height) || 48
482
+ }
475
483
  } : undefined,
476
484
  themeColor: ((_config$page10 = config.page) === null || _config$page10 === void 0 || (_config$page10 = _config$page10.register) === null || _config$page10 === void 0 || (_config$page10 = _config$page10.ui) === null || _config$page10 === void 0 ? void 0 : _config$page10.themeColor) || '#7F56D9',
477
485
  passwordRules: transformPasswordRules((_config$auth3 = config.auth) === null || _config$auth3 === void 0 ? void 0 : _config$auth3.password),
@@ -326,12 +326,12 @@
326
326
  .login2-submit-button {
327
327
  height: 44px;
328
328
  border-radius: 8px;
329
- border: 1px solid var(--theme-color, #7f56d9);
330
- background: var(--theme-color, #7f56d9);
329
+ border: 1px solid var(---custom-button-bg-color, var(--theme-color, #7f56d9));
330
+ background: var(---custom-button-bg-color, var(--theme-color, #7f56d9));
331
331
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
332
332
  font-size: 16px;
333
333
  font-weight: 600;
334
- color: #ffffff;
334
+ color: var(--custom-button-text-color, #ffffff);
335
335
 
336
336
  &:hover:not(:disabled) {
337
337
  background: #6941c6;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 空状态
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
4
3
  export default FooterMenus;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ContactInfoMode: () => JSX.Element;
3
2
  export default ContactInfoMode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 按钮操作区
4
3
  * @description: 仅包含签名
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;