@pisell/private-materials 3.0.209 → 3.0.210
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -14
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/Sales/Cart/index.d.ts +8 -5
- package/es/components/Sales/Cart/index.js +158 -37
- package/es/components/Sales/Cart/serve.d.ts +1 -0
- package/es/components/Sales/Cart/serve.js +5 -0
- package/es/components/Sales/Cart/types.d.ts +19 -0
- package/es/components/Sales/Cart/types.js +1 -0
- package/es/components/Sales/Checkout/index.js +3 -0
- package/es/components/booking/info/pet/index.js +3 -3
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +153 -37
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +35 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/es/components/eventBooking/components/Provider/Event/index.js +8 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +12 -35
- package/es/components/eventBooking/components/Provider/Resource/index.js +22 -11
- package/es/components/eventBooking/components/Provider/SelectHolderModal.js +4 -1
- package/es/components/eventBooking/components/bookingDetailModal/index.js +55 -9
- package/es/components/eventBooking/components/progressBar/index.js +18 -2
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +8 -0
- package/es/components/eventBooking/index.js +1 -15
- package/es/components/eventBooking/locales.d.ts +33 -3
- package/es/components/eventBooking/locales.js +42 -6
- package/es/components/shoppingCart/components/Cart/Product.js +2 -2
- package/lib/components/Sales/Cart/index.d.ts +8 -5
- package/lib/components/Sales/Cart/index.js +97 -13
- package/lib/components/Sales/Cart/serve.d.ts +1 -0
- package/lib/components/Sales/Cart/serve.js +5 -0
- package/lib/components/Sales/Cart/types.d.ts +19 -0
- package/lib/components/Sales/Cart/types.js +17 -0
- package/lib/components/Sales/Checkout/index.js +1 -0
- package/lib/components/booking/info/pet/index.js +3 -3
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +62 -14
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +4 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +61 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/lib/components/eventBooking/components/Provider/Event/index.js +20 -11
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +11 -26
- package/lib/components/eventBooking/components/Provider/Resource/index.js +12 -7
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +2 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +21 -5
- package/lib/components/eventBooking/components/progressBar/index.js +8 -4
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +8 -0
- package/lib/components/eventBooking/index.js +0 -8
- package/lib/components/eventBooking/locales.d.ts +33 -3
- package/lib/components/eventBooking/locales.js +36 -6
- package/lib/components/shoppingCart/components/Cart/Product.js +2 -2
- package/package.json +4 -4
|
@@ -38,7 +38,7 @@ var locales_default = {
|
|
|
38
38
|
"pisell2.event.close.exit": "Exit",
|
|
39
39
|
"pisell2.event.step": (step) => `Step ${step}`,
|
|
40
40
|
"pisell2.event.select.category": "Select category",
|
|
41
|
-
"pisell2.event.select.campus":
|
|
41
|
+
"pisell2.event.select.campus": (val) => `Please choose ${val || "resource"}`,
|
|
42
42
|
"pisell2.event.select.event": "Select event",
|
|
43
43
|
"pisell2.event.cart": "Cart",
|
|
44
44
|
"pisell2.event.total": "Total",
|
|
@@ -81,7 +81,17 @@ var locales_default = {
|
|
|
81
81
|
"pisell2.event.create.form": "Create form",
|
|
82
82
|
"pisell2.event.empty.event": "No event",
|
|
83
83
|
"pisell2.event.error.holder": "You need to create a holder first",
|
|
84
|
-
"pisell2.event.price.from": "From "
|
|
84
|
+
"pisell2.event.price.from": "From ",
|
|
85
|
+
"pisell2.event.empty.holder.title": "Empty holders found",
|
|
86
|
+
"pisell2.event.empty.holder.tip": "The following holders have no services added:",
|
|
87
|
+
"pisell2.event.empty.holder.continue.tip": "You can still proceed, but please check if you want to add any services.",
|
|
88
|
+
"pisell2.event.empty.holder.go.back": "Go back",
|
|
89
|
+
"pisell2.event.empty.holder.continue.anyway": "Continue anyway",
|
|
90
|
+
"pisell2.event.event.full.title": "Event full",
|
|
91
|
+
"pisell2.event.event.full.tip": "Sorry, this event has reached its maximum capacity. Please select another event.",
|
|
92
|
+
"pisell2.event.event.full.ok": "Ok",
|
|
93
|
+
"pisell2.event.capacity.limit.reached.title": "Capacity limit reached",
|
|
94
|
+
"pisell2.event.capacity.limit.reached.tip": "One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout."
|
|
85
95
|
},
|
|
86
96
|
"zh-CN": {
|
|
87
97
|
"pisell2.event.calendar.limit.unavailable": "不可预约",
|
|
@@ -99,7 +109,7 @@ var locales_default = {
|
|
|
99
109
|
"pisell2.event.step": (step) => `步骤 ${step}`,
|
|
100
110
|
"pisell2.event.select.category": "选择分类",
|
|
101
111
|
"pisell2.event.select.event": "选择活动",
|
|
102
|
-
"pisell2.event.select.campus": "
|
|
112
|
+
"pisell2.event.select.campus": (val) => `请选择${val || "资源"}`,
|
|
103
113
|
"pisell2.event.cart": "购物车",
|
|
104
114
|
"pisell2.event.total": "总计",
|
|
105
115
|
"pisell2.event.continue": "继续",
|
|
@@ -141,7 +151,17 @@ var locales_default = {
|
|
|
141
151
|
"pisell2.event.create.form": "创建表单",
|
|
142
152
|
"pisell2.event.empty.event": "暂无活动",
|
|
143
153
|
"pisell2.event.error.holder": "您需要先创建一个持有人",
|
|
144
|
-
"pisell2.event.price.from": " 起"
|
|
154
|
+
"pisell2.event.price.from": " 起",
|
|
155
|
+
"pisell2.event.empty.holder.title": "发现空预约位",
|
|
156
|
+
"pisell2.event.empty.holder.tip": "以下预约位未添加任何服务:",
|
|
157
|
+
"pisell2.event.empty.holder.continue.tip": "您可以继续操作,但请确认是否需要添加服务。",
|
|
158
|
+
"pisell2.event.empty.holder.go.back": "返回修改",
|
|
159
|
+
"pisell2.event.empty.holder.continue.anyway": "继续操作",
|
|
160
|
+
"pisell2.event.event.full.title": "活动已满",
|
|
161
|
+
"pisell2.event.event.full.tip": "抱歉,当前活动名额已满。请选择其他活动。",
|
|
162
|
+
"pisell2.event.event.full.ok": "好的",
|
|
163
|
+
"pisell2.event.capacity.limit.reached.title": "活动名额已满",
|
|
164
|
+
"pisell2.event.capacity.limit.reached.tip": "购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。"
|
|
145
165
|
},
|
|
146
166
|
"zh-HK": {
|
|
147
167
|
"pisell2.event.calendar.limit.unavailable": "不可預約",
|
|
@@ -159,7 +179,7 @@ var locales_default = {
|
|
|
159
179
|
"pisell2.event.step": (step) => `步驟 ${step}`,
|
|
160
180
|
"pisell2.event.select.category": "選擇分類",
|
|
161
181
|
"pisell2.event.select.event": "選擇活動",
|
|
162
|
-
"pisell2.event.select.campus": "
|
|
182
|
+
"pisell2.event.select.campus": (val) => `請選擇${val || "資源"}`,
|
|
163
183
|
"pisell2.event.cart": "購物車",
|
|
164
184
|
"pisell2.event.total": "總計",
|
|
165
185
|
"pisell2.event.continue": "繼續",
|
|
@@ -201,6 +221,16 @@ var locales_default = {
|
|
|
201
221
|
"pisell2.event.create.form": "創建表單",
|
|
202
222
|
"pisell2.event.empty.event": "暫無活動",
|
|
203
223
|
"pisell2.event.error.holder": "您需要先創建一個持有人",
|
|
204
|
-
"pisell2.event.price.from": " 起"
|
|
224
|
+
"pisell2.event.price.from": " 起",
|
|
225
|
+
"pisell2.event.empty.holder.title": "發現空預約位",
|
|
226
|
+
"pisell2.event.empty.holder.tip": "以下預約位未添加任何服務:",
|
|
227
|
+
"pisell2.event.empty.holder.continue.tip": "您可以繼續操作,但請確認是否需要添加服務。",
|
|
228
|
+
"pisell2.event.empty.holder.go.back": "返回修改",
|
|
229
|
+
"pisell2.event.empty.holder.continue.anyway": "繼續操作",
|
|
230
|
+
"pisell2.event.event.full.title": "活動已滿",
|
|
231
|
+
"pisell2.event.event.full.tip": "抱歉,當前活動名額已滿。請選擇其他活動。",
|
|
232
|
+
"pisell2.event.event.full.ok": "好的",
|
|
233
|
+
"pisell2.event.capacity.limit.reached.title": "活動名額已滿",
|
|
234
|
+
"pisell2.event.capacity.limit.reached.tip": "購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。"
|
|
205
235
|
}
|
|
206
236
|
};
|
|
@@ -43,7 +43,7 @@ var Product = (props) => {
|
|
|
43
43
|
const { disabledEdit, isShowPackageNote, isShowNote, hideAddBtn, platform } = state;
|
|
44
44
|
const clearCart = (0, import_useClearCart.default)(id);
|
|
45
45
|
const handleChange = (item, type, other) => {
|
|
46
|
-
if (disabledEdit)
|
|
46
|
+
if (disabledEdit && !(other == null ? void 0 : other.disabled))
|
|
47
47
|
return;
|
|
48
48
|
onChange(item, type, other);
|
|
49
49
|
};
|
|
@@ -61,7 +61,7 @@ var Product = (props) => {
|
|
|
61
61
|
key: item._id,
|
|
62
62
|
dataSource: item,
|
|
63
63
|
onAction: (e) => onAction == null ? void 0 : onAction(e),
|
|
64
|
-
onDelete: (e) => handleChange(e, "delete"),
|
|
64
|
+
onDelete: (e) => handleChange(e, "delete", item),
|
|
65
65
|
onNote: (e) => handleChange(e, "note", { note: e.note }),
|
|
66
66
|
onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
|
|
67
67
|
onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.210",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
+
"@pisell/materials": "3.0.64",
|
|
63
|
+
"@pisell/date-picker": "3.0.2",
|
|
62
64
|
"@pisell/utils": "1.0.42",
|
|
63
|
-
"@pisell/
|
|
64
|
-
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/date-picker": "3.0.2"
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|