@pisell/private-materials 6.4.62 → 6.4.64
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 +2 -2
- package/build/lowcode/preview.js +145 -145
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +80 -77
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info2/cartClientCard/index.js +30 -1
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +9 -3
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/list/styles/header.less +1 -0
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.js +63 -5
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -0
- package/es/components/ticketBooking/index.js +1 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +40 -0
- package/es/plus/contactInfoModal/index.js +154 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +93 -67
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info2/cartClientCard/index.js +25 -0
- package/lib/components/booking/info2/index.js +11 -5
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +9 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/list/styles/header.less +1 -0
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +21 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +1 -0
- package/lib/components/ticketBooking/index.js +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +40 -0
- package/lib/plus/contactInfoModal/index.js +138 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/package.json +5 -3
|
@@ -0,0 +1,111 @@
|
|
|
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/booking/info2/service/contactInfoMode/index.tsx
|
|
30
|
+
var contactInfoMode_exports = {};
|
|
31
|
+
__export(contactInfoMode_exports, {
|
|
32
|
+
default: () => contactInfoMode_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(contactInfoMode_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_contactInfo = __toESM(require("../../../../../plus/contactInfo"));
|
|
38
|
+
var import_model = require("../../../info/model");
|
|
39
|
+
var ContactInfoMode = () => {
|
|
40
|
+
var _a, _b, _c;
|
|
41
|
+
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
42
|
+
console.log("state>>>>>>>>>", state);
|
|
43
|
+
(0, import_react.useEffect)(() => {
|
|
44
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i;
|
|
45
|
+
console.log("state>>>>>>>>>111", (_a2 = state == null ? void 0 : state.contacts_info) == null ? void 0 : _a2.client_id);
|
|
46
|
+
console.log("state>>>>>>>>>222", (_b2 = state.client.value) == null ? void 0 : _b2.id);
|
|
47
|
+
if (((_c2 = state.client.value) == null ? void 0 : _c2.id) != ((_d = state == null ? void 0 : state.contacts_info) == null ? void 0 : _d.client_id)) {
|
|
48
|
+
const contactInfo = (_f = (_e = state.client.value) == null ? void 0 : _e.contacts_info) == null ? void 0 : _f.value;
|
|
49
|
+
if (!contactInfo) {
|
|
50
|
+
const {
|
|
51
|
+
first_name,
|
|
52
|
+
last_name,
|
|
53
|
+
phone,
|
|
54
|
+
country_calling_code,
|
|
55
|
+
country_code,
|
|
56
|
+
email
|
|
57
|
+
} = ((_g = state.client) == null ? void 0 : _g.value) || {};
|
|
58
|
+
dispatch({
|
|
59
|
+
type: "setContactsInfo",
|
|
60
|
+
payload: {
|
|
61
|
+
value: {
|
|
62
|
+
first_name: first_name || "",
|
|
63
|
+
last_name: last_name || "",
|
|
64
|
+
phone: {
|
|
65
|
+
phone: phone || "",
|
|
66
|
+
country_calling_code: country_calling_code || "",
|
|
67
|
+
country_code: country_code || ""
|
|
68
|
+
},
|
|
69
|
+
email: email || ""
|
|
70
|
+
},
|
|
71
|
+
client_id: (_h = state.client.value) == null ? void 0 : _h.id
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
} else {
|
|
75
|
+
dispatch({
|
|
76
|
+
type: "setContactsInfo",
|
|
77
|
+
payload: {
|
|
78
|
+
value: { ...contactInfo || {} },
|
|
79
|
+
client_id: (_i = state.client.value) == null ? void 0 : _i.id
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, [(_a = state.client.value) == null ? void 0 : _a.id, (_b = state == null ? void 0 : state.contacts_info) == null ? void 0 : _b.client_id]);
|
|
85
|
+
const handleSave = (value) => {
|
|
86
|
+
dispatch({
|
|
87
|
+
type: "setContactsInfo",
|
|
88
|
+
payload: { value, edit: true }
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { marginTop: "24px" } }, /* @__PURE__ */ import_react.default.createElement(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
className: "pisell-lowcode__booking-contact-info-title",
|
|
95
|
+
style: { fontSize: "16px", fontWeight: 500, marginBottom: "8px" }
|
|
96
|
+
},
|
|
97
|
+
import_utils.locales.getText("pisell2.booking.text.contact-info.title")
|
|
98
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
99
|
+
import_contactInfo.default,
|
|
100
|
+
{
|
|
101
|
+
dataSource: ((_c = state.contacts_info) == null ? void 0 : _c.value) || null,
|
|
102
|
+
isShowDelete: false,
|
|
103
|
+
isShowAvatar: false,
|
|
104
|
+
isShowPhone: true,
|
|
105
|
+
isShowEmail: true,
|
|
106
|
+
style: { padding: "14px 0 14px 14px" },
|
|
107
|
+
onSave: handleSave
|
|
108
|
+
}
|
|
109
|
+
));
|
|
110
|
+
};
|
|
111
|
+
var contactInfoMode_default = ContactInfoMode;
|
|
@@ -302,6 +302,7 @@ declare const _default: {
|
|
|
302
302
|
'pisell2.text.quotation.product.change.describe': string;
|
|
303
303
|
'pisell2.booking.notes.placeholder': string;
|
|
304
304
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
305
|
+
'pisell2.booking.text.contact-info.title': string;
|
|
305
306
|
};
|
|
306
307
|
'zh-CN': {
|
|
307
308
|
'pisell2.text.refunded-amount': string;
|
|
@@ -606,6 +607,7 @@ declare const _default: {
|
|
|
606
607
|
'pisell2.text.quotation.product.change.describe': string;
|
|
607
608
|
'pisell2.booking.notes.placeholder': string;
|
|
608
609
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
610
|
+
'pisell2.booking.text.contact-info.title': string;
|
|
609
611
|
};
|
|
610
612
|
'zh-HK': {
|
|
611
613
|
'pisell2.text.refunded-amount': string;
|
|
@@ -910,6 +912,7 @@ declare const _default: {
|
|
|
910
912
|
'pisell2.text.quotation.product.change.describe': string;
|
|
911
913
|
'pisell2.booking.notes.placeholder': string;
|
|
912
914
|
'pisell2.text.form.link.to.another.record.more': string;
|
|
915
|
+
'pisell2.booking.text.contact-info.title': string;
|
|
913
916
|
};
|
|
914
917
|
};
|
|
915
918
|
export default _default;
|
|
@@ -369,7 +369,9 @@ var locales_default = {
|
|
|
369
369
|
"pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data.",
|
|
370
370
|
// Notes
|
|
371
371
|
"pisell2.booking.notes.placeholder": "Enter a note...",
|
|
372
|
-
"pisell2.text.form.link.to.another.record.more": "View More"
|
|
372
|
+
"pisell2.text.form.link.to.another.record.more": "View More",
|
|
373
|
+
// 联系信息
|
|
374
|
+
"pisell2.booking.text.contact-info.title": "Contact info"
|
|
373
375
|
},
|
|
374
376
|
"zh-CN": {
|
|
375
377
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -711,7 +713,9 @@ var locales_default = {
|
|
|
711
713
|
"pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
|
712
714
|
// Notes
|
|
713
715
|
"pisell2.booking.notes.placeholder": "输入备注...",
|
|
714
|
-
"pisell2.text.form.link.to.another.record.more": "查看更多"
|
|
716
|
+
"pisell2.text.form.link.to.another.record.more": "查看更多",
|
|
717
|
+
// 联系信息
|
|
718
|
+
"pisell2.booking.text.contact-info.title": "联系信息"
|
|
715
719
|
},
|
|
716
720
|
"zh-HK": {
|
|
717
721
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -1053,6 +1057,8 @@ var locales_default = {
|
|
|
1053
1057
|
"pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
|
|
1054
1058
|
// Notes
|
|
1055
1059
|
"pisell2.booking.notes.placeholder": "輸入備註...",
|
|
1056
|
-
"pisell2.text.form.link.to.another.record.more": "查看更多"
|
|
1060
|
+
"pisell2.text.form.link.to.another.record.more": "查看更多",
|
|
1061
|
+
// 联系信息
|
|
1062
|
+
"pisell2.booking.text.contact-info.title": "聯繫信息"
|
|
1057
1063
|
}
|
|
1058
1064
|
};
|
|
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
|
|
|
17
17
|
cardData: any;
|
|
18
18
|
handleSelectWallet: (value: number[]) => void;
|
|
19
19
|
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any;
|
|
20
|
+
expiredWalletIds: any[];
|
|
21
21
|
expiredWalletData: any;
|
|
22
22
|
disabledWalletData: any[];
|
|
23
23
|
clearAllSelectedWallet: () => void;
|
|
@@ -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" | "
|
|
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
|
};
|
|
@@ -297,8 +297,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "stripe" | "
|
|
301
|
-
action?: "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
@@ -39,20 +39,39 @@ var import_antd = require("antd");
|
|
|
39
39
|
var import_icons = require("@ant-design/icons");
|
|
40
40
|
var import_utils = require("@pisell/utils");
|
|
41
41
|
var import_materials = require("@pisell/materials");
|
|
42
|
+
var import_serve = require("../../serve");
|
|
42
43
|
var index = (props) => {
|
|
43
44
|
const { activeNavKey = "ticket", onNavChange } = props;
|
|
44
45
|
const status = (0, import_useNetworkStatus.useNetworkStatus)();
|
|
46
|
+
const [showFoodMenu, setShowFoodMenu] = (0, import_react.useState)(false);
|
|
47
|
+
(0, import_react.useEffect)(() => {
|
|
48
|
+
const checkFoodConfig = async () => {
|
|
49
|
+
try {
|
|
50
|
+
const data = await (0, import_serve.getBookingConfig)({
|
|
51
|
+
item_type: "appointment_booking",
|
|
52
|
+
sub_type: "food",
|
|
53
|
+
source_type: "pos"
|
|
54
|
+
});
|
|
55
|
+
if (data) {
|
|
56
|
+
setShowFoodMenu(true);
|
|
57
|
+
}
|
|
58
|
+
} catch (error) {
|
|
59
|
+
console.error("获取 food 配置失败:", error);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
checkFoodConfig();
|
|
63
|
+
}, []);
|
|
45
64
|
const navItems = [
|
|
46
65
|
{
|
|
47
66
|
key: "ticket",
|
|
48
67
|
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-ticket", style: { fontSize: 32 } }),
|
|
49
68
|
label: ""
|
|
50
69
|
},
|
|
51
|
-
{
|
|
70
|
+
...showFoodMenu ? [{
|
|
52
71
|
key: "food",
|
|
53
72
|
label: "",
|
|
54
73
|
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-food", style: { fontSize: 32 } })
|
|
55
|
-
}
|
|
74
|
+
}] : []
|
|
56
75
|
];
|
|
57
76
|
const items = [
|
|
58
77
|
{
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
.booking-info-create-new,
|
|
37
37
|
.pisell-lowcode__booking-field-title,
|
|
38
38
|
.pisell-lowcode__shopping-cart-empty,
|
|
39
|
-
.pisell-lowcode__booking-service-clear-btn
|
|
39
|
+
.pisell-lowcode__booking-service-clear-btn,
|
|
40
|
+
.pisell-lowcode__booking-contact-info-title {
|
|
40
41
|
color: #ffffff;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -29,6 +29,7 @@ var useShopDiscountModule = () => {
|
|
|
29
29
|
const pisellOS = (0, import_useEngineContext.usePisellOS)();
|
|
30
30
|
const osKey = (0, import_OsKeyContext.useOsKey)();
|
|
31
31
|
const moduleKey = (0, import_utils.getShopDiscountKey)(osKey || "ticket");
|
|
32
|
+
console.log(pisellOS, pisellOS, moduleKey, "pisellOS");
|
|
32
33
|
return pisellOS.getModule(moduleKey);
|
|
33
34
|
};
|
|
34
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -250,6 +250,7 @@ var ticketBooking_default = (props) => {
|
|
|
250
250
|
});
|
|
251
251
|
storeRef.current = store;
|
|
252
252
|
}, [bookingConfigParams, productExtensionType]);
|
|
253
|
+
console.log(osKey, pisellos, "osKeyosKey");
|
|
253
254
|
(0, import_react.useMemo)(() => {
|
|
254
255
|
if (BookingTicket) {
|
|
255
256
|
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket((0, import_utils3.getBookingTicketKey)(osKey)), {
|
package/lib/index.d.ts
CHANGED
|
@@ -63,3 +63,5 @@ export { default as SkuCard } from './plus/productSelect/ProductCard/SkuCard';
|
|
|
63
63
|
export { default as PinModal } from './components/pinModal';
|
|
64
64
|
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
65
65
|
export { ResponsiveList as SkuList } from './components/list';
|
|
66
|
+
export { default as ContactInfo } from './plus/contactInfo';
|
|
67
|
+
export { default as ContactInfoModal } from './plus/contactInfoModal';
|
package/lib/index.js
CHANGED
|
@@ -46,6 +46,8 @@ __export(src_exports, {
|
|
|
46
46
|
ClientCard: () => import_clientCard.default,
|
|
47
47
|
ClientSearch: () => import_clinetSearch.default,
|
|
48
48
|
ComprehensiveSearch: () => import_comprehensiveSearch.default,
|
|
49
|
+
ContactInfo: () => import_contactInfo.default,
|
|
50
|
+
ContactInfoModal: () => import_contactInfoModal.default,
|
|
49
51
|
EditBookingModal: () => import_editBookingModal.default,
|
|
50
52
|
Eftpos: () => import_eftpos.default,
|
|
51
53
|
EftposPay: () => import_eftposPay.default,
|
|
@@ -162,6 +164,8 @@ var import_SkuCard = __toESM(require("./plus/productSelect/ProductCard/SkuCard")
|
|
|
162
164
|
var import_pinModal = __toESM(require("./components/pinModal"));
|
|
163
165
|
var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
|
|
164
166
|
var import_list = require("./components/list");
|
|
167
|
+
var import_contactInfo = __toESM(require("./plus/contactInfo"));
|
|
168
|
+
var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
|
|
165
169
|
import_dayjs.default.extend(import_weekday.default);
|
|
166
170
|
import_dayjs.default.extend(import_localeData.default);
|
|
167
171
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -183,6 +187,8 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
183
187
|
ClientCard,
|
|
184
188
|
ClientSearch,
|
|
185
189
|
ComprehensiveSearch,
|
|
190
|
+
ContactInfo,
|
|
191
|
+
ContactInfoModal,
|
|
186
192
|
EditBookingModal,
|
|
187
193
|
Eftpos,
|
|
188
194
|
EftposPay,
|
|
@@ -24,9 +24,9 @@ __export(locales_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(locales_exports);
|
|
25
25
|
var locales_default = {
|
|
26
26
|
en: {
|
|
27
|
-
"pisell2.text.add-client": "Add
|
|
28
|
-
"pisell2.text.change-client": "Change
|
|
29
|
-
"pisell2.text.remove-client": " Remove
|
|
27
|
+
"pisell2.text.add-client": "Add Customer",
|
|
28
|
+
"pisell2.text.change-client": "Change Customer",
|
|
29
|
+
"pisell2.text.remove-client": " Remove Customer"
|
|
30
30
|
},
|
|
31
31
|
"zh-CN": {
|
|
32
32
|
"pisell2.text.add-client": "添加客户",
|