@pisell/private-materials 3.0.119 → 3.0.120

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 (35) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +11 -11
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +10 -10
  9. package/es/components/booking/addons/index.d.ts +1 -1
  10. package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
  11. package/es/components/booking/components/TabProduct/productItem/index.js +8 -7
  12. package/es/components/booking/forms/index.d.ts +1 -1
  13. package/es/components/booking/index.d.ts +1 -1
  14. package/es/components/booking/info/header/index.d.ts +2 -2
  15. package/es/components/booking/info/header/index.js +436 -44
  16. package/es/components/booking/info/header/index.less +110 -1
  17. package/es/components/booking/info/service/addService/index.js +3 -1
  18. package/es/components/booking/info/service/editService/index.js +3 -1
  19. package/es/components/booking/locales.d.ts +42 -0
  20. package/es/components/booking/locales.js +54 -6
  21. package/es/components/booking/payments/index.d.ts +1 -1
  22. package/lib/components/booking/addons/index.d.ts +1 -1
  23. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
  24. package/lib/components/booking/components/TabProduct/productItem/index.js +2 -1
  25. package/lib/components/booking/forms/index.d.ts +1 -1
  26. package/lib/components/booking/index.d.ts +1 -1
  27. package/lib/components/booking/info/header/index.d.ts +2 -2
  28. package/lib/components/booking/info/header/index.js +212 -11
  29. package/lib/components/booking/info/header/index.less +110 -1
  30. package/lib/components/booking/info/service/addService/index.js +3 -1
  31. package/lib/components/booking/info/service/editService/index.js +3 -1
  32. package/lib/components/booking/locales.d.ts +42 -0
  33. package/lib/components/booking/locales.js +48 -6
  34. package/lib/components/booking/payments/index.d.ts +1 -1
  35. package/package.json +3 -3
@@ -48,7 +48,7 @@
48
48
  display: flex;
49
49
  align-items: center;
50
50
  gap: 10px;
51
- color: var(--Base-White, #FFF);
51
+ color: var(--Base-White, #FFF) !important;
52
52
  font-size: 18px;
53
53
  font-style: normal;
54
54
  font-weight: 400;
@@ -57,10 +57,119 @@
57
57
  padding: 4px 12px;
58
58
  border-radius: 24px;
59
59
 
60
+ span {
61
+ color: var(--Base-White, #FFF) !important;
62
+ }
60
63
 
61
64
  .booking-header-right-status-icon {
62
65
  font-size: 20px;
63
66
  }
64
67
  }
65
68
  }
69
+ }
70
+
71
+ .go-payments-modal-wrap {
72
+ padding: 0;
73
+ }
74
+
75
+ .go-payments-modal-content {
76
+ margin: 0 -24px;
77
+
78
+ .go-payments-modal-content-title {
79
+ color: var(--Gray-900, #101828);
80
+ font-size: 24px;
81
+ font-style: normal;
82
+ font-weight: 600;
83
+ line-height: 32px;
84
+ padding: 0 24px;
85
+ }
86
+
87
+ .go-payments-modal-content-desc {
88
+ color: var(--Gray-900, #101828);
89
+ font-size: 16px;
90
+ font-style: normal;
91
+ font-weight: 500;
92
+ line-height: 24px;
93
+ padding: 0 24px;
94
+ margin-top: 4px;
95
+ }
96
+
97
+ .cancelled-modal-content-title {
98
+ color: var(--Gray-900, #101828);
99
+ font-size: 24px;
100
+ font-style: normal;
101
+ font-weight: 600;
102
+ line-height: 32px;
103
+ padding: 0 24px;
104
+ }
105
+
106
+ .cancelled-modal-content-desc {
107
+ margin-top: 4px;
108
+ color: #101828;
109
+ font-size: 16px;
110
+ font-style: normal;
111
+ font-weight: 500;
112
+ line-height: 24px;
113
+ padding: 0 24px;
114
+
115
+ &.cancelled-modal-content-desc-red {
116
+ color: var(--Error-600, #D92D20);
117
+ }
118
+ }
119
+
120
+ .cancelled-modal-content-list-wrap {
121
+ padding: 0 24px;
122
+
123
+ .cancelled-modal-content-list-title {
124
+ color: var(--Gray-900, #101828);
125
+ font-size: 16px;
126
+ font-style: normal;
127
+ font-weight: 500;
128
+ line-height: 24px;
129
+ margin-top: 4px;
130
+ }
131
+
132
+ .cancelled-modal-content-ul {
133
+ margin-top: 4px;
134
+
135
+ .cancelled-modal-content-li {
136
+ color: var(--Gray-900, #101828);
137
+ font-size: 16px;
138
+ font-style: normal;
139
+ font-weight: 500;
140
+ line-height: 24px;
141
+ }
142
+
143
+ }
144
+
145
+ }
146
+
147
+ .go-payments-footer {
148
+ display: flex;
149
+ align-items: center;
150
+ gap: 12px;
151
+ border-top: 1px solid var(--Gray-200, #EAECF0);
152
+ margin-top: 16px;
153
+ padding: 24px 24px 4px;
154
+ width: 100%;
155
+
156
+ .go-payments-footer-btn {
157
+ flex: 1;
158
+ font-size: 16px;
159
+ font-style: normal;
160
+ font-weight: 600;
161
+ }
162
+
163
+ &.go-payments-footer-column {
164
+ flex-direction: column;
165
+ gap: 12px;
166
+
167
+ .go-payments-footer-btn {
168
+ width: 100%;
169
+ }
170
+ }
171
+
172
+
173
+ }
174
+
66
175
  }
@@ -251,7 +251,9 @@ var Info = ({ onEdit }) => {
251
251
  return;
252
252
  }
253
253
  if (state.modalOpen && !state.bookingId && state.renderType !== "eventBooking" && ((_g = (_f = state.service) == null ? void 0 : _f.value) == null ? void 0 : _g.length) === 0) {
254
- handleSelectService();
254
+ setTimeout(() => {
255
+ handleSelectService();
256
+ }, 10);
255
257
  }
256
258
  }, [state.modalOpen, state.bookingId, (_b = state.service) == null ? void 0 : _b.value]);
257
259
  const showAddButton = (0, import_react.useMemo)(() => {
@@ -343,7 +343,9 @@ var Info = (_, ref) => {
343
343
  setResourceLoading(false);
344
344
  };
345
345
  (0, import_react.useEffect)(() => {
346
- getResourcesData();
346
+ setTimeout(() => {
347
+ getResourcesData();
348
+ }, 20);
347
349
  }, [state.date.value]);
348
350
  const handleEdit = (e) => {
349
351
  const item = state.service.cacheItem;
@@ -172,6 +172,20 @@ declare const _default: {
172
172
  list: any[];
173
173
  }) => string;
174
174
  'page.event.booking.text.duplicate-enrollment-confirm': string;
175
+ 'page.booking.text.unconfirmed-payements': string;
176
+ 'page.booking.text.unconfirmed-payements.msg': string;
177
+ 'page.booking.text.go-to-payments': string;
178
+ 'page.booking.text.cancel-only': string;
179
+ 'page.booking.text.refund': string;
180
+ 'page.booking.text.confirm': string;
181
+ 'page.booking.text.go-back': string;
182
+ 'page.booking.text.cancel-booking': string;
183
+ 'page.booking.text.cancel-booking.msg': string;
184
+ 'page.booking.text.disabled-tickets': string;
185
+ 'page.booking.text.paid.msg': (x: string) => string;
186
+ 'page.booking.text.please-choose-an-option': string;
187
+ 'page.booking.text.please-choose-an-option-1': string;
188
+ 'page.booking.text.please-choose-an-option-2': string;
175
189
  };
176
190
  'zh-CN': {
177
191
  'pisell2.text.refunded-amount': string;
@@ -346,6 +360,20 @@ declare const _default: {
346
360
  list: any[];
347
361
  }) => string;
348
362
  'page.event.booking.text.duplicate-enrollment-confirm': string;
363
+ 'page.booking.text.unconfirmed-payements': string;
364
+ 'page.booking.text.unconfirmed-payements.msg': string;
365
+ 'page.booking.text.go-to-payments': string;
366
+ 'page.booking.text.cancel-only': string;
367
+ 'page.booking.text.refund': string;
368
+ 'page.booking.text.confirm': string;
369
+ 'page.booking.text.go-back': string;
370
+ 'page.booking.text.cancel-booking': string;
371
+ 'page.booking.text.cancel-booking.msg': string;
372
+ 'page.booking.text.disabled-tickets': string;
373
+ 'page.booking.text.paid.msg': (x: string) => string;
374
+ 'page.booking.text.please-choose-an-option': string;
375
+ 'page.booking.text.please-choose-an-option-1': string;
376
+ 'page.booking.text.please-choose-an-option-2': string;
349
377
  };
350
378
  'zh-HK': {
351
379
  'pisell2.text.refunded-amount': string;
@@ -520,6 +548,20 @@ declare const _default: {
520
548
  list: any[];
521
549
  }) => string;
522
550
  'page.event.booking.text.duplicate-enrollment-confirm': string;
551
+ 'page.booking.text.unconfirmed-payements': string;
552
+ 'page.booking.text.unconfirmed-payements.msg': string;
553
+ 'page.booking.text.go-to-payments': string;
554
+ 'page.booking.text.cancel-only': string;
555
+ 'page.booking.text.refund': string;
556
+ 'page.booking.text.confirm': string;
557
+ 'page.booking.text.go-back': string;
558
+ 'page.booking.text.cancel-booking': string;
559
+ 'page.booking.text.cancel-booking.msg': string;
560
+ 'page.booking.text.disabled-tickets': string;
561
+ 'page.booking.text.paid.msg': (x: string) => string;
562
+ 'page.booking.text.please-choose-an-option': string;
563
+ 'page.booking.text.please-choose-an-option-1': string;
564
+ 'page.booking.text.please-choose-an-option-2': string;
523
565
  };
524
566
  };
525
567
  export default _default;
@@ -92,7 +92,7 @@ var locales_default = {
92
92
  "pisell2.text.status.confirmed": "Confirmed",
93
93
  "pisell2.text.status.arrived": "Arrived",
94
94
  "pisell2.text.status.started": "Started",
95
- "pisell2.text.status.cancelled": "Cancelled",
95
+ "pisell2.text.status.cancelled": "Cancel",
96
96
  "pisell2.text.status.no_show": "No show",
97
97
  "pisell2.text.status.completed": "Completed",
98
98
  "pisell2.text.status.booking_id": "Booking ID",
@@ -226,7 +226,21 @@ var locales_default = {
226
226
  });
227
227
  return `${customerName || ""} has already enrolled in the ${title} ${listStr.join(",")}, Are you sure you want to enroll again?`;
228
228
  },
229
- "page.event.booking.text.duplicate-enrollment-confirm": "Confirm"
229
+ "page.event.booking.text.duplicate-enrollment-confirm": "Confirm",
230
+ "page.booking.text.unconfirmed-payements": "Unconfirmed payements",
231
+ "page.booking.text.unconfirmed-payements.msg": "There are unconfirmed payments, please confirm or void the payments first.",
232
+ "page.booking.text.go-to-payments": "Go to payments",
233
+ "page.booking.text.cancel-only": "Cancel only",
234
+ "page.booking.text.refund": "Refund",
235
+ "page.booking.text.confirm": "Confirm",
236
+ "page.booking.text.go-back": "Go back",
237
+ "page.booking.text.cancel-booking": "Cancel Booking",
238
+ "page.booking.text.cancel-booking.msg": "The action is irreversible. Please proceed with caution. ",
239
+ "page.booking.text.disabled-tickets": "All tickets will be disabled.",
240
+ "page.booking.text.paid.msg": (x) => `The related order is ${x === "paid" ? "paid" : "partially paid"}.`,
241
+ "page.booking.text.please-choose-an-option": "Please choose an option:",
242
+ "page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
243
+ "page.booking.text.please-choose-an-option-2": "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)"
230
244
  },
231
245
  "zh-CN": {
232
246
  "pisell2.text.refunded-amount": "已退金额",
@@ -294,7 +308,7 @@ var locales_default = {
294
308
  "pisell2.text.status.confirmed": "已确认",
295
309
  "pisell2.text.status.arrived": "已到达",
296
310
  "pisell2.text.status.started": "已开始",
297
- "pisell2.text.status.cancelled": "已取消",
311
+ "pisell2.text.status.cancelled": "取消",
298
312
  "pisell2.text.status.no_show": "失约",
299
313
  "pisell2.text.status.completed": "已完成",
300
314
  "pisell2.text.status.booking_id": "预约 ID",
@@ -425,7 +439,21 @@ var locales_default = {
425
439
  });
426
440
  return `${customerName || ""}已报名${title} ${listStr.join(",")}, 确定要再次报名吗?`;
427
441
  },
428
- "page.event.booking.text.duplicate-enrollment-confirm": "确认"
442
+ "page.event.booking.text.duplicate-enrollment-confirm": "确认",
443
+ "page.booking.text.unconfirmed-payements": "未确认的付款",
444
+ "page.booking.text.unconfirmed-payements.msg": "存在未确认的付款,请先确认收款或作废。",
445
+ "page.booking.text.go-to-payments": "前往收款界面",
446
+ "page.booking.text.cancel-only": "仅取消",
447
+ "page.booking.text.refund": "退款",
448
+ "page.booking.text.confirm": "确认",
449
+ "page.booking.text.go-back": "返回",
450
+ "page.booking.text.cancel-booking": "取消预约",
451
+ "page.booking.text.cancel-booking.msg": "该操作不可撤销,请谨慎操作。",
452
+ "page.booking.text.disabled-tickets": "所有票单将被禁用。",
453
+ "page.booking.text.paid.msg": (x) => `关联订单${x === "paid" ? "已支付" : "部分支付"}。`,
454
+ "page.booking.text.please-choose-an-option": "请选择:",
455
+ "page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
456
+ "page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)"
429
457
  },
430
458
  "zh-HK": {
431
459
  "pisell2.text.refunded-amount": "已退金額",
@@ -491,7 +519,7 @@ var locales_default = {
491
519
  "pisell2.text.status.confirmed": "已确認",
492
520
  "pisell2.text.status.arrived": "已到達",
493
521
  "pisell2.text.status.started": "已開始",
494
- "pisell2.text.status.cancelled": "已取消",
522
+ "pisell2.text.status.cancelled": "取消",
495
523
  "pisell2.text.status.no_show": "失約",
496
524
  "pisell2.text.status.completed": "已完成",
497
525
  "pisell2.text.status.booking_id": "預約 ID",
@@ -624,6 +652,20 @@ var locales_default = {
624
652
  });
625
653
  return `${customerName || ""}已報名${title} ${listStr.join(",")}, 確定要再次報名嗎?`;
626
654
  },
627
- "page.event.booking.text.duplicate-enrollment-confirm": "確認"
655
+ "page.event.booking.text.duplicate-enrollment-confirm": "確認",
656
+ "page.booking.text.unconfirmed-payements": "未確認的付款",
657
+ "page.booking.text.unconfirmed-payements.msg": "存在未確認的付款,請先確認收款或作廢。",
658
+ "page.booking.text.go-to-payments": "前往收款界面",
659
+ "page.booking.text.cancel-only": "僅取消",
660
+ "page.booking.text.refund": "退款",
661
+ "page.booking.text.confirm": "確認",
662
+ "page.booking.text.go-back": "返回",
663
+ "page.booking.text.cancel-booking": "取消預約",
664
+ "page.booking.text.cancel-booking.msg": "該操作不可撤銷,請謹慎操作。",
665
+ "page.booking.text.disabled-tickets": "所有票單將被禁用。",
666
+ "page.booking.text.paid.msg": (x) => `關聯訂單${x === "paid" ? "已支付" : "部分支付"}。`,
667
+ "page.booking.text.please-choose-an-option": "請選擇:",
668
+ "page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
669
+ "page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)"
628
670
  }
629
671
  };
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Payments: (props: any) => JSX.Element;
8
+ declare const Payments: any;
9
9
  export default Payments;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.119",
3
+ "version": "3.0.120",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/icon": "0.0.11",
63
- "@pisell/date-picker": "1.0.97",
63
+ "@pisell/materials": "3.0.38",
64
64
  "@pisell/utils": "1.0.28",
65
- "@pisell/materials": "3.0.38"
65
+ "@pisell/date-picker": "1.0.97"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",