@pisell/materials 1.0.967 → 1.0.968

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 (94) 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 +7 -7
  6. package/build/lowcode/preview.js +144 -160
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +30 -39
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +30 -39
  11. package/es/components/PisellProcedure/PisellProcedure.js +345 -0
  12. package/es/components/PisellProcedure/PisellProcedure.less +376 -0
  13. package/es/components/PisellProcedure/components/ProcedureAction.js +93 -0
  14. package/es/components/PisellProcedure/components/ProcedureContent.js +47 -0
  15. package/es/components/PisellProcedure/components/ProcedureHeader.js +86 -0
  16. package/es/components/PisellProcedure/components/ProcedureSummary.js +99 -0
  17. package/es/components/PisellProcedure/hooks/useResponsive.js +56 -0
  18. package/es/components/PisellProcedure/index.js +8 -0
  19. package/es/components/PisellProcedure/types.js +1 -0
  20. package/es/components/PisellSteps/PisellSteps.js +200 -0
  21. package/es/components/PisellSteps/PisellSteps.less +457 -0
  22. package/es/components/PisellSteps/index.js +5 -0
  23. package/es/components/PisellSteps/types.js +1 -0
  24. package/es/components/Template/[ComponentName].js +1 -0
  25. package/es/components/Template/[ComponentName].less +1 -0
  26. package/es/components/Template/index.js +1 -0
  27. package/es/components/Template/types.js +0 -0
  28. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -2
  29. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
  30. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +25 -10
  31. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  32. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  33. package/es/components/pisellWalletPassCard/index.js +4 -3
  34. package/es/components/walletCard/index.js +5 -4
  35. package/es/index.js +2 -0
  36. package/lib/components/PisellProcedure/PisellProcedure.js +264 -0
  37. package/lib/components/PisellProcedure/PisellProcedure.less +376 -0
  38. package/lib/components/PisellProcedure/components/ProcedureAction.js +86 -0
  39. package/lib/components/PisellProcedure/components/ProcedureContent.js +60 -0
  40. package/lib/components/PisellProcedure/components/ProcedureHeader.js +115 -0
  41. package/lib/components/PisellProcedure/components/ProcedureSummary.js +96 -0
  42. package/lib/components/PisellProcedure/hooks/useResponsive.js +63 -0
  43. package/lib/components/PisellProcedure/index.js +42 -0
  44. package/lib/components/PisellProcedure/types.js +17 -0
  45. package/lib/components/PisellSteps/PisellSteps.js +169 -0
  46. package/lib/components/PisellSteps/PisellSteps.less +457 -0
  47. package/lib/components/PisellSteps/index.js +41 -0
  48. package/lib/components/PisellSteps/types.js +17 -0
  49. package/lib/components/Template/[ComponentName].js +0 -0
  50. package/lib/components/Template/[ComponentName].less +1 -0
  51. package/lib/components/Template/index.js +0 -0
  52. package/lib/components/Template/types.js +0 -0
  53. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +3 -1
  54. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
  55. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +7 -1
  56. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  57. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  58. package/lib/components/pisellWalletPassCard/index.js +4 -3
  59. package/lib/components/walletCard/index.js +5 -4
  60. package/lib/index.js +6 -0
  61. package/lowcode/data-source-form/meta.ts +18 -1
  62. package/lowcode/pisell-procedure/meta.ts +483 -0
  63. package/lowcode/pisell-procedure/snippets.ts +230 -0
  64. package/lowcode/pisell-steps/meta.ts +307 -0
  65. package/lowcode/pisell-steps/snippets.ts +160 -0
  66. package/package.json +3 -3
  67. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
  68. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  69. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
  70. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
  71. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
  72. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
  73. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  74. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  75. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
  76. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
  77. package/es/components/filter/types.d.ts +0 -46
  78. package/es/components/pisellCamera/index.d.ts +0 -4
  79. package/es/components/table/Actions/index.d.ts +0 -17
  80. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
  81. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
  82. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
  83. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
  84. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
  85. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
  86. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
  87. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  88. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  89. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
  90. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
  91. package/lib/components/filter/types.d.ts +0 -46
  92. package/lib/components/pisellCamera/index.d.ts +0 -4
  93. package/lib/components/table/Actions/index.d.ts +0 -17
  94. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
@@ -0,0 +1,457 @@
1
+ // PisellSteps 步骤条组件样式
2
+ // 基于 Ant Design Steps 进行样式增强和主题定制
3
+
4
+ // ==================== CSS 变量定义 ====================
5
+ .pisell-steps {
6
+ // 尺寸相关
7
+ --pisell-step-icon-size: 32px;
8
+ --pisell-step-icon-size-small: 24px;
9
+ --pisell-step-title-font-size: 16px;
10
+ --pisell-step-title-font-size-small: 14px;
11
+ --pisell-step-description-font-size: 14px;
12
+ --pisell-step-description-font-size-small: 12px;
13
+ --pisell-step-title-line-height: 24px;
14
+ --pisell-step-title-line-height-small: 20px;
15
+ --pisell-step-description-line-height: 22px;
16
+ --pisell-step-description-line-height-small: 18px;
17
+
18
+ // 状态颜色(根据设计图的 Pisell 主题色)
19
+ --pisell-step-finish-color: #7f56d9; // Primary/600
20
+ --pisell-step-finish-bg: #f4ebff; // Primary/100
21
+ --pisell-step-process-color: #7f56d9; // Primary/600
22
+ --pisell-step-process-bg: #7f56d9; // Primary/600
23
+ --pisell-step-wait-color: rgba(0, 0, 0, 0.45);
24
+ --pisell-step-wait-bg: rgba(0, 0, 0, 0.06);
25
+ --pisell-step-wait-border: rgba(0, 0, 0, 0.25);
26
+ --pisell-step-error-color: #ff4d4f;
27
+ --pisell-step-error-bg: #fff;
28
+
29
+ // 文本颜色
30
+ --pisell-step-text-color: rgba(0, 0, 0, 0.88);
31
+ --pisell-step-text-color-secondary: rgba(0, 0, 0, 0.45);
32
+
33
+ // 间距
34
+ --pisell-step-margin: 16px;
35
+ --pisell-step-margin-xs: 8px;
36
+ --pisell-step-padding-xs: 4px;
37
+ --pisell-step-padding-sm: 12px;
38
+
39
+ // 圆点尺寸
40
+ --pisell-step-dot-size: 8px;
41
+ --pisell-step-dot-size-small: 6px;
42
+ --pisell-step-dot-size-active: 10px;
43
+ --pisell-step-dot-size-active-small: 8px;
44
+
45
+ // 连接器
46
+ --pisell-step-connector-color-finish: var(--pisell-step-finish-color);
47
+ --pisell-step-connector-color-wait: rgba(0, 0, 0, 0.25);
48
+
49
+ // 基础样式
50
+ width: 100%;
51
+
52
+ // ==================== 完成状态样式 ====================
53
+ :global {
54
+ .ant-steps-item-finish {
55
+ .ant-steps-item-icon {
56
+ background-color: var(--pisell-step-finish-bg);
57
+ border-color: var(--pisell-step-finish-color);
58
+
59
+ .ant-steps-icon {
60
+ color: var(--pisell-step-finish-color);
61
+ }
62
+ }
63
+
64
+ .ant-steps-item-title {
65
+ color: var(--pisell-step-text-color);
66
+ font-size: var(--pisell-step-title-font-size);
67
+ line-height: var(--pisell-step-title-line-height);
68
+ }
69
+
70
+ .ant-steps-item-description {
71
+ color: var(--pisell-step-text-color-secondary);
72
+ font-size: var(--pisell-step-description-font-size);
73
+ line-height: var(--pisell-step-description-line-height);
74
+ }
75
+
76
+ >.ant-steps-item-container>.ant-steps-item-tail::after {
77
+ background-color: var(--pisell-step-connector-color-finish);
78
+ }
79
+ }
80
+
81
+ // ==================== 进行中状态样式 ====================
82
+ .ant-steps-item-process {
83
+ .ant-steps-item-icon {
84
+ background-color: var(--pisell-step-process-bg);
85
+ border-color: var(--pisell-step-process-color);
86
+
87
+ .ant-steps-icon {
88
+ color: #ffffff;
89
+ font-weight: 500;
90
+ }
91
+ }
92
+
93
+ .ant-steps-item-title {
94
+ color: var(--pisell-step-text-color);
95
+ font-size: var(--pisell-step-title-font-size);
96
+ line-height: var(--pisell-step-title-line-height);
97
+ font-weight: 500;
98
+ }
99
+
100
+ .ant-steps-item-description {
101
+ color: var(--pisell-step-text-color);
102
+ font-size: var(--pisell-step-description-font-size);
103
+ line-height: var(--pisell-step-description-line-height);
104
+ }
105
+ }
106
+
107
+ // ==================== 等待状态样式 ====================
108
+ .ant-steps-item-wait {
109
+ .ant-steps-item-icon {
110
+ background-color: var(--pisell-step-wait-bg);
111
+ border-color: var(--pisell-step-wait-border);
112
+
113
+ .ant-steps-icon {
114
+ color: var(--pisell-step-wait-color);
115
+ }
116
+ }
117
+
118
+ .ant-steps-item-title {
119
+ color: var(--pisell-step-wait-color);
120
+ font-size: var(--pisell-step-title-font-size);
121
+ line-height: var(--pisell-step-title-line-height);
122
+ }
123
+
124
+ .ant-steps-item-description {
125
+ color: var(--pisell-step-wait-color);
126
+ font-size: var(--pisell-step-description-font-size);
127
+ line-height: var(--pisell-step-description-line-height);
128
+ }
129
+
130
+ >.ant-steps-item-container>.ant-steps-item-tail::after {
131
+ background-color: var(--pisell-step-connector-color-wait);
132
+ }
133
+ }
134
+
135
+ // ==================== 错误状态样式 ====================
136
+ .ant-steps-item-error {
137
+ .ant-steps-item-icon {
138
+ background-color: var(--pisell-step-error-bg);
139
+ border-color: var(--pisell-step-error-color);
140
+
141
+ .ant-steps-icon {
142
+ color: var(--pisell-step-error-color);
143
+ }
144
+ }
145
+
146
+ .ant-steps-item-title {
147
+ color: var(--pisell-step-error-color);
148
+ }
149
+
150
+ .ant-steps-item-description {
151
+ color: var(--pisell-step-error-color);
152
+ }
153
+
154
+ >.ant-steps-item-container>.ant-steps-item-tail::after {
155
+ background-color: var(--pisell-step-error-color);
156
+ }
157
+ }
158
+ }
159
+ }
160
+
161
+ // ==================== 小尺寸样式 ====================
162
+ .pisell-steps-small {
163
+ :global {
164
+ .ant-steps-item-icon {
165
+ width: var(--pisell-step-icon-size-small);
166
+ height: var(--pisell-step-icon-size-small);
167
+ line-height: var(--pisell-step-icon-size-small);
168
+ font-size: 12px;
169
+ }
170
+
171
+ .ant-steps-item-title {
172
+ font-size: var(--pisell-step-title-font-size-small) !important;
173
+ line-height: var(--pisell-step-title-line-height-small) !important;
174
+ }
175
+
176
+ .ant-steps-item-description {
177
+ font-size: var(--pisell-step-description-font-size-small) !important;
178
+ line-height: var(--pisell-step-description-line-height-small) !important;
179
+ }
180
+ }
181
+ }
182
+
183
+ // ==================== 圆点样式 ====================
184
+ .pisell-steps-dot {
185
+ :global {
186
+ .ant-steps-item-icon {
187
+ width: var(--pisell-step-dot-size);
188
+ height: var(--pisell-step-dot-size);
189
+ border: none;
190
+
191
+ .ant-steps-icon-dot {
192
+ width: var(--pisell-step-dot-size);
193
+ height: var(--pisell-step-dot-size);
194
+ }
195
+ }
196
+
197
+ // 进行中的圆点稍大
198
+ .ant-steps-item-process .ant-steps-item-icon {
199
+ width: var(--pisell-step-dot-size-active);
200
+ height: var(--pisell-step-dot-size-active);
201
+
202
+ .ant-steps-icon-dot {
203
+ width: var(--pisell-step-dot-size-active);
204
+ height: var(--pisell-step-dot-size-active);
205
+ }
206
+ }
207
+
208
+ // 圆点样式下的文本居中
209
+ .ant-steps-item-content {
210
+ text-align: center;
211
+ }
212
+ }
213
+
214
+ // 小尺寸圆点
215
+ &.pisell-steps-small {
216
+ :global {
217
+ .ant-steps-item-icon {
218
+ width: var(--pisell-step-dot-size-small);
219
+ height: var(--pisell-step-dot-size-small);
220
+
221
+ .ant-steps-icon-dot {
222
+ width: var(--pisell-step-dot-size-small);
223
+ height: var(--pisell-step-dot-size-small);
224
+ }
225
+ }
226
+
227
+ .ant-steps-item-process .ant-steps-item-icon {
228
+ width: var(--pisell-step-dot-size-active-small);
229
+ height: var(--pisell-step-dot-size-active-small);
230
+
231
+ .ant-steps-icon-dot {
232
+ width: var(--pisell-step-dot-size-active-small);
233
+ height: var(--pisell-step-dot-size-active-small);
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+
240
+ // ==================== 隐藏连接器 ====================
241
+ .pisell-steps-no-connector {
242
+ :global {
243
+ .ant-steps-item-tail {
244
+ display: none !important;
245
+ }
246
+ }
247
+ }
248
+
249
+ // ==================== 响应式样式 ====================
250
+ .pisell-steps-responsive {
251
+ &.pisell-steps-horizontal {
252
+ @media (max-width: 768px) {
253
+ overflow-x: auto;
254
+ overflow-y: hidden;
255
+
256
+ :global {
257
+ .ant-steps-item {
258
+ flex-shrink: 0;
259
+ min-width: 120px;
260
+ }
261
+ }
262
+ }
263
+
264
+ @media (max-width: 480px) {
265
+ :global {
266
+ .ant-steps-item {
267
+ min-width: 100px;
268
+ }
269
+
270
+ .ant-steps-item-title {
271
+ font-size: 14px !important;
272
+ }
273
+
274
+ .ant-steps-item-description {
275
+ font-size: 12px !important;
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+
282
+ // ==================== 竖向标签布局 ====================
283
+ .pisell-steps-label-vertical {
284
+ :global {
285
+ .ant-steps-item-content {
286
+ display: flex;
287
+ flex-direction: column;
288
+ align-items: center;
289
+ text-align: center;
290
+
291
+ .ant-steps-item-title {
292
+ padding-top: var(--pisell-step-margin-xs);
293
+ }
294
+ }
295
+ }
296
+ }
297
+
298
+ // ==================== 图标底部对齐 ====================
299
+ .pisell-steps-icon-bottom {
300
+ &.pisell-steps-vertical {
301
+ :global {
302
+ .ant-steps-item-icon {
303
+ order: 2;
304
+ }
305
+
306
+ .ant-steps-item-content {
307
+ order: 1;
308
+ }
309
+ }
310
+ }
311
+ }
312
+
313
+ // ==================== 导航类型样式 ====================
314
+ .pisell-steps-navigation {
315
+ :global {
316
+ .ant-steps-item {
317
+ padding-left: 0;
318
+ overflow: visible;
319
+
320
+ &::before {
321
+ display: none;
322
+ }
323
+
324
+ .ant-steps-item-container {
325
+ padding: var(--pisell-step-padding-xs) var(--pisell-step-margin);
326
+ background-color: #fafafa;
327
+ border-radius: 4px;
328
+ transition: all 0.3s ease;
329
+
330
+ &:hover {
331
+ background-color: #f0f0f0;
332
+ }
333
+ }
334
+
335
+ &.ant-steps-item-active .ant-steps-item-container {
336
+ background-color: var(--pisell-step-finish-bg);
337
+ box-shadow: 0 2px 4px rgba(127, 86, 217, 0.1);
338
+ }
339
+
340
+ &.ant-steps-item-finish .ant-steps-item-container:hover {
341
+ background-color: var(--pisell-step-finish-bg);
342
+ }
343
+ }
344
+ }
345
+ }
346
+
347
+ // ==================== 行内类型样式 ====================
348
+ .pisell-steps-inline {
349
+ :global {
350
+ .ant-steps {
351
+ display: inline-flex;
352
+ }
353
+
354
+ .ant-steps-item {
355
+ display: inline-flex;
356
+ padding-inline-start: 0;
357
+
358
+ .ant-steps-item-icon {
359
+ margin-right: var(--pisell-step-margin-xs);
360
+ }
361
+
362
+ .ant-steps-item-content {
363
+ display: inline-block;
364
+ }
365
+ }
366
+ }
367
+ }
368
+
369
+ // ==================== 可点击步骤样式 ====================
370
+ .pisell-steps {
371
+ :global {
372
+
373
+ // 已完成的步骤可点击
374
+ .ant-steps-item-finish:not(.ant-steps-item-disabled) {
375
+ cursor: pointer;
376
+
377
+ .ant-steps-item-container {
378
+ transition: all 0.3s ease;
379
+ }
380
+
381
+ &:hover {
382
+ .ant-steps-item-icon {
383
+ border-color: var(--pisell-step-process-color);
384
+ box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.1);
385
+ }
386
+
387
+ .ant-steps-item-title {
388
+ color: var(--pisell-step-process-color);
389
+ }
390
+ }
391
+
392
+ // 激活状态
393
+ &:active {
394
+ .ant-steps-item-icon {
395
+ transform: scale(0.95);
396
+ }
397
+ }
398
+ }
399
+
400
+ // 添加可点击样式类
401
+ .pisell-steps-item-clickable {
402
+ cursor: pointer;
403
+ }
404
+
405
+ // 禁用状态
406
+ .ant-steps-item-disabled {
407
+ cursor: not-allowed;
408
+ opacity: 0.5;
409
+
410
+ .ant-steps-item-container {
411
+ pointer-events: none;
412
+ }
413
+
414
+ &:hover {
415
+
416
+ .ant-steps-item-icon,
417
+ .ant-steps-item-title {
418
+ border-color: inherit;
419
+ color: inherit;
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
425
+
426
+ // ==================== 动画效果 ====================
427
+ .pisell-steps {
428
+ :global {
429
+ .ant-steps-item {
430
+ transition: all 0.3s ease;
431
+ }
432
+
433
+ .ant-steps-item-icon {
434
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
435
+ }
436
+
437
+ .ant-steps-item-title,
438
+ .ant-steps-item-description {
439
+ transition: color 0.3s ease;
440
+ }
441
+
442
+ .ant-steps-item-tail::after {
443
+ transition: background-color 0.3s ease;
444
+ }
445
+ }
446
+ }
447
+
448
+ // ==================== 打印样式优化 ====================
449
+ @media print {
450
+ .pisell-steps {
451
+ :global {
452
+ .ant-steps-item-icon {
453
+ box-shadow: none !important;
454
+ }
455
+ }
456
+ }
457
+ }
@@ -0,0 +1,41 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/PisellSteps/index.tsx
30
+ var PisellSteps_exports = {};
31
+ __export(PisellSteps_exports, {
32
+ PisellSteps: () => import_PisellSteps2.default,
33
+ default: () => import_PisellSteps.default
34
+ });
35
+ module.exports = __toCommonJS(PisellSteps_exports);
36
+ var import_PisellSteps = __toESM(require("./PisellSteps"));
37
+ var import_PisellSteps2 = __toESM(require("./PisellSteps"));
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ PisellSteps
41
+ });
@@ -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/components/PisellSteps/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
File without changes
@@ -0,0 +1 @@
1
+ // 这里是组件的样式
File without changes
File without changes
@@ -65,6 +65,7 @@ var BaseForm = (0, import_react.forwardRef)(
65
65
  formatSubmitValues,
66
66
  formatInitialValues,
67
67
  customSubmit,
68
+ beforeSubmit,
68
69
  leaveConfirmConfig,
69
70
  ...others
70
71
  } = props;
@@ -182,7 +183,8 @@ var BaseForm = (0, import_react.forwardRef)(
182
183
  onDataSourceFinish,
183
184
  formatSubmitValues,
184
185
  formatInitialValues,
185
- customSubmit
186
+ customSubmit,
187
+ beforeSubmit
186
188
  },
187
189
  /* @__PURE__ */ import_react.default.createElement(
188
190
  import_form.default,
@@ -44,7 +44,8 @@ var FormSettingProvider = (props) => {
44
44
  onDataSourceFinish,
45
45
  formatSubmitValues,
46
46
  formatInitialValues,
47
- customSubmit
47
+ customSubmit,
48
+ beforeSubmit
48
49
  } = props;
49
50
  const value = import_react.default.useMemo(() => {
50
51
  return {
@@ -55,9 +56,10 @@ var FormSettingProvider = (props) => {
55
56
  onDataSourceFinish,
56
57
  formatSubmitValues,
57
58
  formatInitialValues,
58
- customSubmit
59
+ customSubmit,
60
+ beforeSubmit
59
61
  };
60
- }, [renderMode, groupInfoPosition, currentValue, size]);
62
+ }, [renderMode, groupInfoPosition, currentValue, size, beforeSubmit]);
61
63
  return /* @__PURE__ */ import_react.default.createElement(
62
64
  import_FormSettingContext.default.Provider,
63
65
  {
@@ -60,7 +60,7 @@ var SubmitButton = (props) => {
60
60
  const [loading, setLoading] = (0, import_react.useState)(false);
61
61
  const [api, contextHolder] = import_antd.notification.useNotification();
62
62
  const form = import_antd.Form.useFormInstance();
63
- const { renderMode, onDataSourceFinish, formatSubmitValues, customSubmit } = (0, import_useFormSetting.default)();
63
+ const { renderMode, onDataSourceFinish, formatSubmitValues, customSubmit, beforeSubmit } = (0, import_useFormSetting.default)();
64
64
  const { setVisible, refreshTableData } = (0, import_useCtxActions.default)();
65
65
  const { create, update, dataSource } = (0, import_useDataSource.default)();
66
66
  const isDisabled = status === "disabled";
@@ -132,6 +132,12 @@ var SubmitButton = (props) => {
132
132
  }
133
133
  const filteredValues = (0, import_utils.filterSystemFields)(allValues);
134
134
  const formattedValues = formatSubmitValues ? formatSubmitValues(filteredValues) : filteredValues;
135
+ if (beforeSubmit) {
136
+ const canSubmit = await beforeSubmit(formattedValues);
137
+ if (!canSubmit) {
138
+ return;
139
+ }
140
+ }
135
141
  const result = await onSubmit(formattedValues);
136
142
  if (onDataSourceFinish) {
137
143
  onDataSourceFinish(formattedValues, result, form);
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "saas" | "xzero";
22
+ rootDomain: "custom" | "xzero" | "saas";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -59,13 +59,7 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
- } & {
65
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
- onChange: (value: string) => void;
68
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
69
63
  JSON: import("react").FC<any>;
70
64
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
65
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -78,14 +72,18 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
72
  Subdomain: import("react").FC<import("antd").InputProps & {
79
73
  onChange: (value: string) => void;
80
74
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
81
- rootDomain: "custom" | "saas" | "xzero";
75
+ rootDomain: "custom" | "xzero" | "saas";
82
76
  customDomain?: string | undefined;
83
77
  value?: string | undefined;
84
78
  tenantId: string;
85
79
  name?: string | undefined;
86
80
  fieldKey?: string | undefined;
87
81
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
82
+ }) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
83
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
84
+ } & {
85
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
86
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
89
87
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
88
  } & {
91
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +95,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
95
  extraParams?: Record<string, any> | undefined;
98
96
  } & {
99
97
  dataSource?: any;
100
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
98
+ }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
+ onChange: (value: string) => void;
100
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -360,13 +360,14 @@ var PisellWalletPassCard = (props) => {
360
360
  }
361
361
  };
362
362
  const _showHolderName = (0, import_react.useMemo)(() => {
363
- return holderType === "custom" && showHolderName;
363
+ return holderType === "form" && showHolderName;
364
364
  }, [holderType, showHolderName]);
365
365
  const holderName = (0, import_react.useMemo)(() => {
366
- if (holderType === "custom" && !(holder == null ? void 0 : holder.id)) {
366
+ var _a;
367
+ if (holderType === "form" && !(holder == null ? void 0 : holder.holder_id)) {
367
368
  return "--";
368
369
  }
369
- return (holder == null ? void 0 : holder.name) || "";
370
+ return ((_a = holder == null ? void 0 : holder.detail) == null ? void 0 : _a.main_field) || "";
370
371
  }, [holderType, holder]);
371
372
  const renderNameInfo = () => {
372
373
  const shouldShowStoreName = typeof showStoreName === "function" ? showStoreName(props) : showStoreName;