@pisell/private-materials 3.0.47 → 3.0.49
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/render/default/view.js +9 -9
- package/build/lowcode/view.js +6 -6
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/components/footer/index.js +90 -8
- package/es/components/booking/deposit/DepositItem/index.d.ts +1 -0
- package/es/components/booking/deposit/DepositItem/index.js +8 -8
- package/es/components/booking/deposit/index.js +12 -1
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +1 -2
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/locales.d.ts +9 -0
- package/es/components/booking/locales.js +12 -3
- package/es/components/booking/model.d.ts +1 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/components/footer/index.js +75 -13
- package/lib/components/booking/deposit/DepositItem/index.d.ts +1 -0
- package/lib/components/booking/deposit/DepositItem/index.js +8 -5
- package/lib/components/booking/deposit/index.js +12 -1
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +1 -2
- package/lib/components/booking/info/service/addService/index.js +1 -1
- package/lib/components/booking/locales.d.ts +9 -0
- package/lib/components/booking/locales.js +12 -3
- package/lib/components/booking/model.d.ts +1 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/package.json +2 -2
|
@@ -44,25 +44,32 @@ var import_amount = require("./amount");
|
|
|
44
44
|
var import_FooterMenus = __toESM(require("./FooterMenus"));
|
|
45
45
|
var import_index = require("./index.less");
|
|
46
46
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
47
|
+
var import_icons = require("@ant-design/icons");
|
|
47
48
|
var Footer = (props) => {
|
|
48
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
49
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
49
50
|
const { state, buttons, dispatch, source } = props;
|
|
50
51
|
const [showDetail, setShowDetail] = (0, import_react.useState)(false);
|
|
51
52
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
52
53
|
const [checkoutLoading, setCheckoutLoading] = (0, import_react.useState)(false);
|
|
53
54
|
const context = (0, import_useEngineContext.default)();
|
|
54
|
-
const { isTerminal, interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
55
|
+
const { isTerminal, interaction, store } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
56
|
+
const isShowPaymentLink = (_d = (_c = (_b = store == null ? void 0 : store.getState) == null ? void 0 : _b.call(store)) == null ? void 0 : _c.global) == null ? void 0 : _d.paymentLinkBtnShow;
|
|
57
|
+
(0, import_react.useEffect)(() => {
|
|
58
|
+
store == null ? void 0 : store.dispatch({
|
|
59
|
+
type: "global/_getPaymentLinkBtnShow"
|
|
60
|
+
});
|
|
61
|
+
}, []);
|
|
55
62
|
const params = (0, import_react.useMemo)(() => {
|
|
56
63
|
var _a2, _b2, _c2;
|
|
57
64
|
return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.appointment_subject) || {};
|
|
58
|
-
}, [(
|
|
65
|
+
}, [(_g = (_f = (_e = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.basic) == null ? void 0 : _g.appointment_subject]);
|
|
59
66
|
const addonsEdit = (0, import_react.useMemo)(() => {
|
|
60
67
|
var _a2;
|
|
61
68
|
if ((_a2 = state.addons) == null ? void 0 : _a2.edit) {
|
|
62
69
|
return true;
|
|
63
70
|
}
|
|
64
71
|
return false;
|
|
65
|
-
}, [(
|
|
72
|
+
}, [(_h = state.addons) == null ? void 0 : _h.edit]);
|
|
66
73
|
const infoEdit = (0, import_react.useMemo)(() => {
|
|
67
74
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
68
75
|
if (!state.bookingId) {
|
|
@@ -154,7 +161,7 @@ var Footer = (props) => {
|
|
|
154
161
|
console.log("state.bookingId && state.addons.edit", err);
|
|
155
162
|
}
|
|
156
163
|
};
|
|
157
|
-
const handleSave = async ({ type }) => {
|
|
164
|
+
const handleSave = async ({ type, messageShow = true }) => {
|
|
158
165
|
var _a2;
|
|
159
166
|
let _setLoading = type === "checkout" ? setCheckoutLoading : setLoading;
|
|
160
167
|
_setLoading(true);
|
|
@@ -173,11 +180,13 @@ var Footer = (props) => {
|
|
|
173
180
|
}
|
|
174
181
|
if (infoEdit) {
|
|
175
182
|
callbackData = await api(values);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
if (messageShow) {
|
|
184
|
+
import_antd.message.success(
|
|
185
|
+
import_utils.locales.getText(
|
|
186
|
+
state.bookingId ? "pisell2.text.appointment-updated" : "pisell2.text.created-successfully"
|
|
187
|
+
)
|
|
188
|
+
);
|
|
189
|
+
}
|
|
181
190
|
}
|
|
182
191
|
state == null ? void 0 : state.callback(callbackData);
|
|
183
192
|
_setLoading(false);
|
|
@@ -228,6 +237,52 @@ var Footer = (props) => {
|
|
|
228
237
|
import_utils.locales.getText("pisell2.text.checkout")
|
|
229
238
|
);
|
|
230
239
|
}, [isEdit, checkoutLoading, isDisabled, state, source]);
|
|
240
|
+
const handleMenuClick = async (e) => {
|
|
241
|
+
let id = state.bookingId;
|
|
242
|
+
if (isEdit) {
|
|
243
|
+
const res = await handleSave({ type: "checkout", messageShow: false });
|
|
244
|
+
id = (res == null ? void 0 : res.order_id) || state.bookingId;
|
|
245
|
+
}
|
|
246
|
+
if (e.key === "sendMail") {
|
|
247
|
+
state.action({
|
|
248
|
+
type: "pisell1.sendPayLinkEmail",
|
|
249
|
+
data: {
|
|
250
|
+
id
|
|
251
|
+
},
|
|
252
|
+
callback: () => {
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
if (e.key === "copy") {
|
|
257
|
+
state.action({
|
|
258
|
+
type: "pisell1.genClientPayLink",
|
|
259
|
+
data: {
|
|
260
|
+
id
|
|
261
|
+
},
|
|
262
|
+
callback: () => {
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
const paymentLinkButton = (0, import_react.useMemo)(() => {
|
|
268
|
+
const items = [
|
|
269
|
+
{ label: import_utils.locales.getText("pisell2.text.send-mail"), key: "sendMail" },
|
|
270
|
+
{ label: import_utils.locales.getText("pisell2.text.copy-to-clipboard"), key: "copy" }
|
|
271
|
+
];
|
|
272
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
273
|
+
import_antd.Dropdown,
|
|
274
|
+
{
|
|
275
|
+
menu: { items, onClick: handleMenuClick }
|
|
276
|
+
},
|
|
277
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
278
|
+
import_antd2.Button,
|
|
279
|
+
{
|
|
280
|
+
className: "pisell-lowcode__booking-footer-buttons-item"
|
|
281
|
+
},
|
|
282
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, import_utils.locales.getText("pisell2.text.payment-link"), /* @__PURE__ */ import_react.default.createElement(import_icons.DownOutlined, null))
|
|
283
|
+
)
|
|
284
|
+
);
|
|
285
|
+
}, [handleMenuClick]);
|
|
231
286
|
const saveButton = (0, import_react.useMemo)(() => {
|
|
232
287
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
233
288
|
import_antd2.Button,
|
|
@@ -270,7 +325,8 @@ var Footer = (props) => {
|
|
|
270
325
|
checkout: checkoutButton,
|
|
271
326
|
save: saveButton,
|
|
272
327
|
complete: completeButton,
|
|
273
|
-
refund: refundButton
|
|
328
|
+
refund: refundButton,
|
|
329
|
+
paymentLink: paymentLinkButton
|
|
274
330
|
};
|
|
275
331
|
const isCheckout = (0, import_react.useMemo)(() => {
|
|
276
332
|
var _a2, _b2, _c2;
|
|
@@ -303,6 +359,9 @@ var Footer = (props) => {
|
|
|
303
359
|
}
|
|
304
360
|
if (source === "payment") {
|
|
305
361
|
let arr = [];
|
|
362
|
+
if (state.bookingId && isShowPaymentLink) {
|
|
363
|
+
arr.push(buttonMap.paymentLink);
|
|
364
|
+
}
|
|
306
365
|
if (total.paidAmount > 0) {
|
|
307
366
|
arr.push(buttonMap.refund);
|
|
308
367
|
}
|
|
@@ -313,6 +372,9 @@ var Footer = (props) => {
|
|
|
313
372
|
}
|
|
314
373
|
if (source === "info") {
|
|
315
374
|
let arr = [];
|
|
375
|
+
if (state.bookingId && isShowPaymentLink) {
|
|
376
|
+
arr.push(buttonMap.paymentLink);
|
|
377
|
+
}
|
|
316
378
|
if (isCheckout) {
|
|
317
379
|
arr.push(buttonMap.checkout);
|
|
318
380
|
} else {
|
|
@@ -428,7 +490,7 @@ var Footer = (props) => {
|
|
|
428
490
|
}, [
|
|
429
491
|
state.bookingId,
|
|
430
492
|
state.bookingDetail,
|
|
431
|
-
(
|
|
493
|
+
(_i = state.addons) == null ? void 0 : _i.load,
|
|
432
494
|
state.renderType
|
|
433
495
|
]);
|
|
434
496
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -458,7 +520,7 @@ var Footer = (props) => {
|
|
|
458
520
|
},
|
|
459
521
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item-border" }),
|
|
460
522
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-label" }, import_utils.locales.getText("pisell1.text.subtotal")), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(total.productAmount, 2, (state == null ? void 0 : state.amountSymbol) || "$"))),
|
|
461
|
-
(((
|
|
523
|
+
(((_j = state.bookingDetail) == null ? void 0 : _j.surcharge) || []).map((d) => {
|
|
462
524
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item", key: d.id }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-label" }, d.name[state.locale]), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(d.amount, 2, (state == null ? void 0 : state.amountSymbol) || "$")));
|
|
463
525
|
}),
|
|
464
526
|
state.bookingId ? /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item-label" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, import_utils.locales.getText("pisell1.text.tax")), /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { fontSize: 14 } }, taxText)), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(total.tax, 2, (state == null ? void 0 : state.amountSymbol) || "$"))) : null,
|
|
@@ -61,7 +61,8 @@ var DepositItem = (props) => {
|
|
|
61
61
|
amountSymbol,
|
|
62
62
|
createdTime,
|
|
63
63
|
isPaid,
|
|
64
|
-
isBookingCancelled
|
|
64
|
+
isBookingCancelled,
|
|
65
|
+
sendEmail
|
|
65
66
|
} = props;
|
|
66
67
|
const statusText = {
|
|
67
68
|
unpaid: import_utils.locales.getText("pisell2.text.deposit-item-status-unpaid"),
|
|
@@ -71,19 +72,21 @@ var DepositItem = (props) => {
|
|
|
71
72
|
document.body.id = "body";
|
|
72
73
|
}, []);
|
|
73
74
|
const items = [
|
|
75
|
+
{
|
|
76
|
+
key: "send",
|
|
77
|
+
label: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("pisell2.text.send-mail"))
|
|
78
|
+
},
|
|
74
79
|
{
|
|
75
80
|
key: "1",
|
|
76
81
|
disabled: isPaid || isBookingCancelled,
|
|
77
82
|
label: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("pisell2.text.deposit-generate-payment-link"))
|
|
78
83
|
}
|
|
79
|
-
// {
|
|
80
|
-
// key: "2",
|
|
81
|
-
// label: <div>发送邮件</div>,
|
|
82
|
-
// },
|
|
83
84
|
];
|
|
84
85
|
const onClick = ({ key }) => {
|
|
85
86
|
if (key === "1") {
|
|
86
87
|
generatePaymentLink == null ? void 0 : generatePaymentLink(orderId);
|
|
88
|
+
} else if (key === "send") {
|
|
89
|
+
sendEmail == null ? void 0 : sendEmail(orderId);
|
|
87
90
|
}
|
|
88
91
|
};
|
|
89
92
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__deposit-item" }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -51,9 +51,19 @@ var Deposit = (props) => {
|
|
|
51
51
|
const [modal, contextHolder] = import_antd.Modal.useModal();
|
|
52
52
|
const editDepositModalRef = (0, import_react.useRef)();
|
|
53
53
|
const context = (0, import_useEngineContext.default)();
|
|
54
|
-
const { isTerminal, interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
54
|
+
const { isTerminal, interaction, action } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
55
55
|
import_utils2.request.setRequest(context.appHelper.utils.request);
|
|
56
56
|
const { bookingDetail, bookingId, amountSymbol, generatePaymentLink, locale } = globalState;
|
|
57
|
+
const sendEmail = (id) => {
|
|
58
|
+
action({
|
|
59
|
+
type: "pisell1.sendPayLinkEmail",
|
|
60
|
+
data: {
|
|
61
|
+
id
|
|
62
|
+
},
|
|
63
|
+
callback: () => {
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
};
|
|
57
67
|
const create = () => {
|
|
58
68
|
var _a2, _b2;
|
|
59
69
|
(_b2 = (_a2 = editDepositModalRef.current) == null ? void 0 : _a2.handleOpen) == null ? void 0 : _b2.call(_a2);
|
|
@@ -165,6 +175,7 @@ var Deposit = (props) => {
|
|
|
165
175
|
key: item.status,
|
|
166
176
|
...item,
|
|
167
177
|
generatePaymentLink,
|
|
178
|
+
sendEmail,
|
|
168
179
|
handleGoOrderDetail,
|
|
169
180
|
onEdit: (e) => handleEdit(e, item),
|
|
170
181
|
isPaid,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const Booking: (props: any) =>
|
|
1
|
+
declare const Booking: (props: any) => JSX.Element;
|
|
2
2
|
export default Booking;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
2
|
export declare const walkInData: {
|
|
4
3
|
id: number;
|
|
5
4
|
nickname: string;
|
|
6
5
|
};
|
|
7
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
6
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
8
7
|
state: FormState;
|
|
9
8
|
} & {
|
|
10
9
|
dispatch: (params: {
|
|
@@ -46,7 +46,7 @@ var import_utils = require("../../utils");
|
|
|
46
46
|
var import_utils2 = require("../../../utils");
|
|
47
47
|
var import_utils3 = require("@pisell/utils");
|
|
48
48
|
var import_ahooks = require("ahooks");
|
|
49
|
-
var shopList = [2886, 4422, 5538, 6930];
|
|
49
|
+
var shopList = [2886, 4422, 5538, 6930, 6814, 6813, 6812, 6087];
|
|
50
50
|
var getCacheResourceId = () => {
|
|
51
51
|
const serviceParams = (0, import_utils2.getCacheParams)();
|
|
52
52
|
let resId = Number(serviceParams == null ? void 0 : serviceParams.resource_id);
|
|
@@ -142,6 +142,9 @@ declare const _default: {
|
|
|
142
142
|
'pisell2.text.deposit-delete-message': string;
|
|
143
143
|
'pisell2.text.deposit-paid': string;
|
|
144
144
|
"pisell2.text.stock": string;
|
|
145
|
+
'pisell2.text.payment-link': string;
|
|
146
|
+
'pisell2.text.send-mail': string;
|
|
147
|
+
'pisell2.text.copy-to-clipboard': string;
|
|
145
148
|
};
|
|
146
149
|
'zh-CN': {
|
|
147
150
|
'pisell2.text.refunded-amount': string;
|
|
@@ -286,6 +289,9 @@ declare const _default: {
|
|
|
286
289
|
'pisell2.text.deposit-delete-message': string;
|
|
287
290
|
'pisell2.text.deposit-paid': string;
|
|
288
291
|
"pisell2.text.stock": string;
|
|
292
|
+
'pisell2.text.payment-link': string;
|
|
293
|
+
'pisell2.text.send-mail': string;
|
|
294
|
+
'pisell2.text.copy-to-clipboard': string;
|
|
289
295
|
};
|
|
290
296
|
'zh-HK': {
|
|
291
297
|
'pisell2.text.refunded-amount': string;
|
|
@@ -430,6 +436,9 @@ declare const _default: {
|
|
|
430
436
|
'pisell2.text.deposit-delete-message': string;
|
|
431
437
|
'pisell2.text.deposit-paid': string;
|
|
432
438
|
"pisell2.text.stock": string;
|
|
439
|
+
'pisell2.text.payment-link': string;
|
|
440
|
+
'pisell2.text.send-mail': string;
|
|
441
|
+
'pisell2.text.copy-to-clipboard': string;
|
|
433
442
|
};
|
|
434
443
|
};
|
|
435
444
|
export default _default;
|
|
@@ -174,7 +174,10 @@ var locales_default = {
|
|
|
174
174
|
"pisell2.text.deposit-delete-message-title": "Prompt",
|
|
175
175
|
"pisell2.text.deposit-delete-message": "It cannot be restored after deletion. Please confirm the operation.",
|
|
176
176
|
"pisell2.text.deposit-paid": "Deposit paid",
|
|
177
|
-
"pisell2.text.stock": "Stock"
|
|
177
|
+
"pisell2.text.stock": "Stock",
|
|
178
|
+
"pisell2.text.payment-link": "Payment link",
|
|
179
|
+
"pisell2.text.send-mail": "Send mail",
|
|
180
|
+
"pisell2.text.copy-to-clipboard": "Copy to clipboard"
|
|
178
181
|
},
|
|
179
182
|
"zh-CN": {
|
|
180
183
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -332,7 +335,10 @@ var locales_default = {
|
|
|
332
335
|
"pisell2.text.deposit-delete-message-title": "提示",
|
|
333
336
|
"pisell2.text.deposit-delete-message": "删除后不可恢复,请确认操作",
|
|
334
337
|
"pisell2.text.deposit-paid": "已付定金",
|
|
335
|
-
"pisell2.text.stock": "库存"
|
|
338
|
+
"pisell2.text.stock": "库存",
|
|
339
|
+
"pisell2.text.payment-link": "付款链接",
|
|
340
|
+
"pisell2.text.send-mail": "发送邮件",
|
|
341
|
+
"pisell2.text.copy-to-clipboard": "复制到剪切板"
|
|
336
342
|
},
|
|
337
343
|
"zh-HK": {
|
|
338
344
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -490,6 +496,9 @@ var locales_default = {
|
|
|
490
496
|
"pisell2.text.deposit-delete-message-title": "提示",
|
|
491
497
|
"pisell2.text.deposit-delete-message": "刪除後不可恢復,請確認操作",
|
|
492
498
|
"pisell2.text.deposit-paid": "已付定金",
|
|
493
|
-
"pisell2.text.stock": "庫存"
|
|
499
|
+
"pisell2.text.stock": "庫存",
|
|
500
|
+
"pisell2.text.payment-link": "付款鏈接",
|
|
501
|
+
"pisell2.text.send-mail": "發送郵件",
|
|
502
|
+
"pisell2.text.copy-to-clipboard": "複製到剪切板"
|
|
494
503
|
}
|
|
495
504
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -89,7 +88,7 @@ export declare const walkInData: {
|
|
|
89
88
|
id: number;
|
|
90
89
|
nickname: string;
|
|
91
90
|
};
|
|
92
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
91
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
93
92
|
state: FormState;
|
|
94
93
|
} & {
|
|
95
94
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,7 +68,7 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
71
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
73
72
|
state: FormState;
|
|
74
73
|
} & {
|
|
75
74
|
dispatch: (params: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.49",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"ahooks": "^3.7.6",
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
|
-
"@pisell/icon": "0.0.8",
|
|
62
61
|
"@pisell/utils": "1.0.24",
|
|
62
|
+
"@pisell/icon": "0.0.8",
|
|
63
63
|
"@pisell/date-picker": "1.0.69"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|