@pisell/private-materials 3.0.80 → 3.0.81
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- 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/addButton/index.js +3 -3
- package/es/components/booking/components/customSelect/index.d.ts +0 -2
- package/es/components/booking/components/customSelect/index.js +1 -6
- package/es/components/booking/components/drawer/index.d.ts +0 -1
- package/es/components/booking/components/drawer/index.js +2 -4
- package/es/components/booking/components/footer/index.js +1 -0
- 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/client/index.js +0 -3
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/index.js +1 -1
- package/es/components/booking/info/model.d.ts +1 -2
- package/es/components/booking/info/pet/index.d.ts +1 -10
- package/es/components/booking/info/pet/index.js +14 -22
- package/es/components/booking/info/service/addService/index.d.ts +2 -2
- package/es/components/booking/info/service/addService/index.js +35 -35
- package/es/components/booking/info/utils.d.ts +0 -1
- package/es/components/booking/info/utils.js +0 -12
- package/es/components/booking/locales.d.ts +0 -6
- package/es/components/booking/locales.js +3 -9
- package/es/components/booking/model.d.ts +1 -4
- 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/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- 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/addButton/index.js +2 -2
- package/lib/components/booking/components/customSelect/index.d.ts +0 -2
- package/lib/components/booking/components/customSelect/index.js +1 -6
- package/lib/components/booking/components/drawer/index.d.ts +0 -1
- package/lib/components/booking/components/drawer/index.js +2 -2
- package/lib/components/booking/components/footer/index.js +1 -0
- 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/client/index.js +1 -2
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/index.js +1 -1
- package/lib/components/booking/info/model.d.ts +1 -2
- package/lib/components/booking/info/pet/index.d.ts +1 -10
- package/lib/components/booking/info/pet/index.js +8 -15
- package/lib/components/booking/info/service/addService/index.d.ts +2 -2
- package/lib/components/booking/info/service/addService/index.js +3 -2
- package/lib/components/booking/info/utils.d.ts +0 -1
- package/lib/components/booking/info/utils.js +2 -16
- package/lib/components/booking/locales.d.ts +0 -6
- package/lib/components/booking/locales.js +3 -9
- package/lib/components/booking/model.d.ts +1 -4
- 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/lib/index.d.ts +0 -1
- package/lib/index.js +2 -5
- package/package.json +2 -2
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -39
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +0 -378
- package/es/components/booking/info/clientVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/index.js +0 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -22
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +0 -321
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +0 -66
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/clientVariant/vertical/index.js +0 -205
- package/es/components/booking/info/clientVariant/vertical/index.less +0 -61
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -39
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +0 -308
- package/lib/components/booking/info/clientVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/index.js +0 -39
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -22
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +0 -344
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +0 -66
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/clientVariant/vertical/index.js +0 -230
- package/lib/components/booking/info/clientVariant/vertical/index.less +0 -61
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -89,14 +88,12 @@ export interface FormState {
|
|
|
89
88
|
productIds: number[];
|
|
90
89
|
};
|
|
91
90
|
disableEventBookingEdit?: boolean;
|
|
92
|
-
/** 关闭自动打开选择服务弹窗 */
|
|
93
|
-
closeAutoOpenService?: boolean;
|
|
94
91
|
}
|
|
95
92
|
export declare const walkInData: {
|
|
96
93
|
id: number;
|
|
97
94
|
nickname: string;
|
|
98
95
|
};
|
|
99
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
96
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
100
97
|
state: FormState;
|
|
101
98
|
} & {
|
|
102
99
|
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/es/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export { default as BookingResources } from './components/booking/materiels/reso
|
|
|
11
11
|
export { default as BookingStartTime } from './components/booking/materiels/startTime';
|
|
12
12
|
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
13
|
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
|
-
export { VerticalClient } from './components/booking/info/clientVariant';
|
|
15
14
|
export { default as ProductExtension } from './components/productExtension';
|
|
16
15
|
export { default as BookingDeposit } from './components/booking/deposit';
|
|
17
16
|
export { default as RuleSetting } from './components/ruleSetting';
|
package/es/index.js
CHANGED
|
@@ -15,7 +15,6 @@ export { default as BookingResources } from "./components/booking/materiels/reso
|
|
|
15
15
|
export { default as BookingStartTime } from "./components/booking/materiels/startTime";
|
|
16
16
|
export { default as BookingDuration } from "./components/booking/materiels/duration";
|
|
17
17
|
export { default as BookingContacts } from "./components/booking/materiels/contacts";
|
|
18
|
-
export { VerticalClient } from "./components/booking/info/clientVariant";
|
|
19
18
|
export { default as ProductExtension } from "./components/productExtension";
|
|
20
19
|
export { default as BookingDeposit } from "./components/booking/deposit";
|
|
21
20
|
export { default as RuleSetting } from "./components/ruleSetting";
|
|
@@ -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: {
|
|
@@ -68,7 +68,7 @@ var AddButton = ({
|
|
|
68
68
|
{
|
|
69
69
|
className: "pisell-lowcode__booking-add-button-add-row",
|
|
70
70
|
onClick: _onClick,
|
|
71
|
-
style
|
|
71
|
+
style
|
|
72
72
|
},
|
|
73
73
|
/* @__PURE__ */ import_react.default.createElement(import_PlusCircle.default, { className: "pisell-lowcode__booking-add-button-add-row-icon" }),
|
|
74
74
|
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-add-button-add-row-txt" }, subTitle)
|
|
@@ -79,7 +79,7 @@ var AddButton = ({
|
|
|
79
79
|
"pisell-lowcode__booking-add-button-add-disabled": disabled
|
|
80
80
|
}),
|
|
81
81
|
onClick: _onClick,
|
|
82
|
-
style
|
|
82
|
+
style
|
|
83
83
|
},
|
|
84
84
|
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-add-button-add-label" }, title),
|
|
85
85
|
/* @__PURE__ */ import_react.default.createElement(import_ChevronRight.default, { className: "pisell-lowcode__booking-add-button-add-icon" })
|
|
@@ -29,8 +29,6 @@ interface CustomSelectProps {
|
|
|
29
29
|
modalOpen?: boolean;
|
|
30
30
|
closeCallback?: () => any;
|
|
31
31
|
autoFocus?: boolean;
|
|
32
|
-
showDropDown?: boolean;
|
|
33
|
-
handleOpenModal: () => void;
|
|
34
32
|
}
|
|
35
33
|
declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
|
|
36
34
|
export default _default;
|
|
@@ -73,8 +73,7 @@ var CustomSelect = (props, ref) => {
|
|
|
73
73
|
modalOpen,
|
|
74
74
|
closeCallback,
|
|
75
75
|
autoFocus,
|
|
76
|
-
showDropDown = true
|
|
77
|
-
handleOpenModal: propsHandleOpenModal
|
|
76
|
+
showDropDown = true
|
|
78
77
|
} = props;
|
|
79
78
|
const searchRef = (0, import_react.useRef)();
|
|
80
79
|
const [_value, set_value] = (0, import_react.useState)([]);
|
|
@@ -111,10 +110,6 @@ var CustomSelect = (props, ref) => {
|
|
|
111
110
|
if (disabled) {
|
|
112
111
|
return;
|
|
113
112
|
}
|
|
114
|
-
if (propsHandleOpenModal) {
|
|
115
|
-
propsHandleOpenModal();
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
113
|
if (addButtonProps == null ? void 0 : addButtonProps.addCallback) {
|
|
119
114
|
addButtonProps == null ? void 0 : addButtonProps.addCallback();
|
|
120
115
|
}
|
|
@@ -38,7 +38,7 @@ var import_ArrowLeft = __toESM(require("@pisell/icon/es/ArrowLeft"));
|
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
40
|
var Drawer = (props) => {
|
|
41
|
-
const { hideScrollBar = true
|
|
41
|
+
const { hideScrollBar = true } = props;
|
|
42
42
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
43
43
|
import_antd.Drawer,
|
|
44
44
|
{
|
|
@@ -54,7 +54,7 @@ var Drawer = (props) => {
|
|
|
54
54
|
push: false,
|
|
55
55
|
mask: false
|
|
56
56
|
},
|
|
57
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__booking-drawer-title-wrap") },
|
|
57
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__booking-drawer-title-wrap") }, /* @__PURE__ */ import_react.default.createElement(
|
|
58
58
|
import_ArrowLeft.default,
|
|
59
59
|
{
|
|
60
60
|
className: "pisell-lowcode__booking-drawer-back",
|
|
@@ -330,6 +330,7 @@ var Footer = (props) => {
|
|
|
330
330
|
customer = (res == null ? void 0 : res.customer_id) ? { id: res == null ? void 0 : res.customer_id } : state.bookingDetail.customer;
|
|
331
331
|
}
|
|
332
332
|
if (e.key === "sendMail") {
|
|
333
|
+
console.log(e);
|
|
333
334
|
state.action({
|
|
334
335
|
type: "pisell1.sendPayLinkEmail",
|
|
335
336
|
data: {
|
|
@@ -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;
|
|
@@ -109,7 +109,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
109
109
|
if ((globalState == null ? void 0 : globalState.renderType) === "eventBooking") {
|
|
110
110
|
return import_utils.locales.getText("pisell2.text.enroll.detail");
|
|
111
111
|
}
|
|
112
|
-
return (globalState == null ? void 0 : globalState.bookingId) ? /* @__PURE__ */ import_react.default.createElement(import_header.default, { state: modal.state, dispatch: modal.dispatch }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { height:
|
|
112
|
+
return (globalState == null ? void 0 : globalState.bookingId) ? /* @__PURE__ */ import_react.default.createElement(import_header.default, { state: modal.state, dispatch: modal.dispatch }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { height: 20 } });
|
|
113
113
|
}, [
|
|
114
114
|
globalState == null ? void 0 : globalState.bookingId,
|
|
115
115
|
modal.state,
|
|
@@ -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: {
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
|
-
|
|
4
|
-
interface PetProps {
|
|
5
|
-
state?: any;
|
|
6
|
-
dispatch?: any;
|
|
7
|
-
hideTitle?: boolean;
|
|
8
|
-
addButtonProps?: InfoProps['addButtonProps'];
|
|
9
|
-
handleOpenModal?: () => void;
|
|
10
|
-
clientChangeNotSetPet?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const Pet: (props: PetProps) => React.JSX.Element;
|
|
3
|
+
declare const Pet: () => React.JSX.Element;
|
|
13
4
|
export default Pet;
|
|
@@ -48,18 +48,15 @@ var defaultParams = {
|
|
|
48
48
|
total: 0,
|
|
49
49
|
keyword: ""
|
|
50
50
|
};
|
|
51
|
-
var Pet = (
|
|
51
|
+
var Pet = () => {
|
|
52
52
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
53
|
-
const { hideTitle, addButtonProps, handleOpenModal, clientChangeNotSetPet } = props;
|
|
54
53
|
const [loadLoading, setLoadLoading] = (0, import_react.useState)(false);
|
|
55
54
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
56
|
-
|
|
55
|
+
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
57
56
|
const [valueLoading, setValueLoading] = (0, import_react.useState)(false);
|
|
58
57
|
const context = (0, import_useEngineContext.default)();
|
|
59
58
|
const { isTerminal } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
60
59
|
const [params, setParams] = (0, import_react.useState)(defaultParams);
|
|
61
|
-
state = state || (props == null ? void 0 : props.state);
|
|
62
|
-
dispatch = dispatch || (props == null ? void 0 : props.dispatch);
|
|
63
60
|
const boardParams = (0, import_react.useMemo)(() => {
|
|
64
61
|
var _a2, _b2, _c2;
|
|
65
62
|
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) || {};
|
|
@@ -235,8 +232,6 @@ var Pet = (props) => {
|
|
|
235
232
|
};
|
|
236
233
|
(0, import_react.useEffect)(() => {
|
|
237
234
|
var _a2, _b2, _c2, _d2;
|
|
238
|
-
if (clientChangeNotSetPet)
|
|
239
|
-
return;
|
|
240
235
|
let changeFormValuesData = (0, import_format.changeFormValues)({
|
|
241
236
|
values: ((_a2 = state.pet) == null ? void 0 : _a2.value) || {},
|
|
242
237
|
clientId: (_c2 = (_b2 = state.client) == null ? void 0 : _b2.value) == null ? void 0 : _c2.id,
|
|
@@ -248,7 +243,7 @@ var Pet = (props) => {
|
|
|
248
243
|
payload: { value: changeFormValuesData }
|
|
249
244
|
});
|
|
250
245
|
});
|
|
251
|
-
}, [(_f = state.client.value) == null ? void 0 : _f.id
|
|
246
|
+
}, [(_f = state.client.value) == null ? void 0 : _f.id]);
|
|
252
247
|
const handleUpdateForm = () => {
|
|
253
248
|
if (state.bookingId) {
|
|
254
249
|
if (!state.bookingDetail) {
|
|
@@ -268,9 +263,9 @@ var Pet = (props) => {
|
|
|
268
263
|
state.bookingDetail,
|
|
269
264
|
boardParams.form_id,
|
|
270
265
|
boardParams.type,
|
|
266
|
+
(_h = (_g = state.client) == null ? void 0 : _g.value) == null ? void 0 : _h.id,
|
|
271
267
|
state.renderType,
|
|
272
|
-
petForm
|
|
273
|
-
clientChangeNotSetPet ? (_h = (_g = state.client) == null ? void 0 : _g.value) == null ? void 0 : _h.id : void 0
|
|
268
|
+
petForm
|
|
274
269
|
]);
|
|
275
270
|
const addCallback = (_params) => {
|
|
276
271
|
var _a2, _b2;
|
|
@@ -306,7 +301,7 @@ var Pet = (props) => {
|
|
|
306
301
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-wraps" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: valueLoading, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
307
302
|
import_forms.default,
|
|
308
303
|
{
|
|
309
|
-
hideTitle,
|
|
304
|
+
hideTitle: true,
|
|
310
305
|
watch: { value: state.pet.value },
|
|
311
306
|
addCallback: () => {
|
|
312
307
|
addCallback();
|
|
@@ -333,8 +328,7 @@ var Pet = (props) => {
|
|
|
333
328
|
loadMore,
|
|
334
329
|
filterItem: () => {
|
|
335
330
|
return true;
|
|
336
|
-
}
|
|
337
|
-
handleOpenModal
|
|
331
|
+
}
|
|
338
332
|
},
|
|
339
333
|
optionRender: (item) => {
|
|
340
334
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -374,8 +368,7 @@ var Pet = (props) => {
|
|
|
374
368
|
showDisabledMessage: !state.disableEventBookingEdit,
|
|
375
369
|
addCallback: async () => {
|
|
376
370
|
addCallback();
|
|
377
|
-
}
|
|
378
|
-
...addButtonProps
|
|
371
|
+
}
|
|
379
372
|
}
|
|
380
373
|
}
|
|
381
374
|
)));
|
|
@@ -58,7 +58,8 @@ var shopList = [
|
|
|
58
58
|
6087,
|
|
59
59
|
6303,
|
|
60
60
|
6080,
|
|
61
|
-
6978
|
|
61
|
+
6978,
|
|
62
|
+
7386
|
|
62
63
|
];
|
|
63
64
|
var Info = () => {
|
|
64
65
|
var _a, _b, _c, _d;
|
|
@@ -233,7 +234,7 @@ var Info = () => {
|
|
|
233
234
|
var _a2, _b2, _c2, _d2, _e, _f, _g;
|
|
234
235
|
if (shopList.includes(
|
|
235
236
|
(_e = (_d2 = (_c2 = (_b2 = (_a2 = context.appHelper.utils.store) == null ? void 0 : _a2.getState) == null ? void 0 : _b2.call(_a2)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e.id
|
|
236
|
-
)
|
|
237
|
+
)) {
|
|
237
238
|
return;
|
|
238
239
|
}
|
|
239
240
|
if (state.modalOpen && !state.bookingId && state.renderType !== "eventBooking" && ((_g = (_f = state.service) == null ? void 0 : _f.value) == null ? void 0 : _g.length) === 0) {
|
|
@@ -19,8 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/booking/info/utils.ts
|
|
20
20
|
var utils_exports = {};
|
|
21
21
|
__export(utils_exports, {
|
|
22
|
-
getIsBundleOrCombination: () => getIsBundleOrCombination
|
|
23
|
-
uniqueByField: () => uniqueByField
|
|
22
|
+
getIsBundleOrCombination: () => getIsBundleOrCombination
|
|
24
23
|
});
|
|
25
24
|
module.exports = __toCommonJS(utils_exports);
|
|
26
25
|
var getIsBundleOrCombination = (productDetail) => {
|
|
@@ -30,20 +29,7 @@ var getIsBundleOrCombination = (productDetail) => {
|
|
|
30
29
|
}
|
|
31
30
|
return false;
|
|
32
31
|
};
|
|
33
|
-
var uniqueByField = (arr, field) => {
|
|
34
|
-
const seen = /* @__PURE__ */ new Set();
|
|
35
|
-
return arr.filter((item) => {
|
|
36
|
-
const fieldValue = item[field];
|
|
37
|
-
if (seen.has(fieldValue)) {
|
|
38
|
-
return false;
|
|
39
|
-
} else {
|
|
40
|
-
seen.add(fieldValue);
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
32
|
// Annotate the CommonJS export names for ESM import in node:
|
|
46
33
|
0 && (module.exports = {
|
|
47
|
-
getIsBundleOrCombination
|
|
48
|
-
uniqueByField
|
|
34
|
+
getIsBundleOrCombination
|
|
49
35
|
});
|
|
@@ -157,8 +157,6 @@ declare const _default: {
|
|
|
157
157
|
'page.booking.text.fully-booked': string;
|
|
158
158
|
'page.booking.text.unlimited': string;
|
|
159
159
|
'pisell2.text.terminal-edit-message': string;
|
|
160
|
-
"pisell2.text.actions": string;
|
|
161
|
-
"pisell2.text.add-client": string;
|
|
162
160
|
};
|
|
163
161
|
'zh-CN': {
|
|
164
162
|
'pisell2.text.refunded-amount': string;
|
|
@@ -318,8 +316,6 @@ declare const _default: {
|
|
|
318
316
|
'page.booking.text.available': string;
|
|
319
317
|
'page.booking.text.fully-booked': string;
|
|
320
318
|
'page.booking.text.unlimited': string;
|
|
321
|
-
"pisell2.text.actions": string;
|
|
322
|
-
"pisell2.text.add-client": string;
|
|
323
319
|
};
|
|
324
320
|
'zh-HK': {
|
|
325
321
|
'pisell2.text.refunded-amount': string;
|
|
@@ -479,8 +475,6 @@ declare const _default: {
|
|
|
479
475
|
'page.booking.text.available': string;
|
|
480
476
|
'page.booking.text.fully-booked': string;
|
|
481
477
|
'page.booking.text.unlimited': string;
|
|
482
|
-
"pisell2.text.actions": string;
|
|
483
|
-
"pisell2.text.add-client": string;
|
|
484
478
|
};
|
|
485
479
|
};
|
|
486
480
|
export default _default;
|
|
@@ -189,9 +189,7 @@ var locales_default = {
|
|
|
189
189
|
"page.booking.text.available": "Available",
|
|
190
190
|
"page.booking.text.fully-booked": "Fully booked",
|
|
191
191
|
"page.booking.text.unlimited": "Unlimited",
|
|
192
|
-
"pisell2.text.terminal-edit-message": "This operation cannot be performed. To proceed, please use the Pisell Terminal."
|
|
193
|
-
"pisell2.text.actions": "Actions",
|
|
194
|
-
"pisell2.text.add-client": "Add customer"
|
|
192
|
+
"pisell2.text.terminal-edit-message": "This operation cannot be performed. To proceed, please use the Pisell Terminal."
|
|
195
193
|
},
|
|
196
194
|
"zh-CN": {
|
|
197
195
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -364,9 +362,7 @@ var locales_default = {
|
|
|
364
362
|
"page.booking.text.unavailable": "不可用",
|
|
365
363
|
"page.booking.text.available": "可用",
|
|
366
364
|
"page.booking.text.fully-booked": "已约满",
|
|
367
|
-
"page.booking.text.unlimited": "无限制"
|
|
368
|
-
"pisell2.text.actions": "操作选项",
|
|
369
|
-
"pisell2.text.add-client": "添加客户"
|
|
365
|
+
"page.booking.text.unlimited": "无限制"
|
|
370
366
|
},
|
|
371
367
|
"zh-HK": {
|
|
372
368
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -539,8 +535,6 @@ var locales_default = {
|
|
|
539
535
|
"page.booking.text.unavailable": "不可用",
|
|
540
536
|
"page.booking.text.available": "可用",
|
|
541
537
|
"page.booking.text.fully-booked": "已約滿",
|
|
542
|
-
"page.booking.text.unlimited": "無限制"
|
|
543
|
-
"pisell2.text.actions": "操作選項",
|
|
544
|
-
"pisell2.text.add-client": "添加客戶"
|
|
538
|
+
"page.booking.text.unlimited": "無限制"
|
|
545
539
|
}
|
|
546
540
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -89,14 +88,12 @@ export interface FormState {
|
|
|
89
88
|
productIds: number[];
|
|
90
89
|
};
|
|
91
90
|
disableEventBookingEdit?: boolean;
|
|
92
|
-
/** 关闭自动打开选择服务弹窗 */
|
|
93
|
-
closeAutoOpenService?: boolean;
|
|
94
91
|
}
|
|
95
92
|
export declare const walkInData: {
|
|
96
93
|
id: number;
|
|
97
94
|
nickname: string;
|
|
98
95
|
};
|
|
99
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
96
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
100
97
|
state: FormState;
|
|
101
98
|
} & {
|
|
102
99
|
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/lib/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export { default as BookingResources } from './components/booking/materiels/reso
|
|
|
11
11
|
export { default as BookingStartTime } from './components/booking/materiels/startTime';
|
|
12
12
|
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
13
|
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
|
-
export { VerticalClient } from './components/booking/info/clientVariant';
|
|
15
14
|
export { default as ProductExtension } from './components/productExtension';
|
|
16
15
|
export { default as BookingDeposit } from './components/booking/deposit';
|
|
17
16
|
export { default as RuleSetting } from './components/ruleSetting';
|
package/lib/index.js
CHANGED
|
@@ -44,8 +44,7 @@ __export(src_exports, {
|
|
|
44
44
|
ProductExtension: () => import_productExtension.default,
|
|
45
45
|
RuleSetting: () => import_ruleSetting.default,
|
|
46
46
|
Schedules: () => import_schedules.default,
|
|
47
|
-
TaxSelect: () => import_taxSelect.default
|
|
48
|
-
VerticalClient: () => import_clientVariant.VerticalClient
|
|
47
|
+
TaxSelect: () => import_taxSelect.default
|
|
49
48
|
});
|
|
50
49
|
module.exports = __toCommonJS(src_exports);
|
|
51
50
|
var import_weekday = __toESM(require("dayjs/plugin/weekday"));
|
|
@@ -63,7 +62,6 @@ var import_resources = __toESM(require("./components/booking/materiels/resources
|
|
|
63
62
|
var import_startTime = __toESM(require("./components/booking/materiels/startTime"));
|
|
64
63
|
var import_duration = __toESM(require("./components/booking/materiels/duration"));
|
|
65
64
|
var import_contacts = __toESM(require("./components/booking/materiels/contacts"));
|
|
66
|
-
var import_clientVariant = require("./components/booking/info/clientVariant");
|
|
67
65
|
var import_productExtension = __toESM(require("./components/productExtension"));
|
|
68
66
|
var import_deposit = __toESM(require("./components/booking/deposit"));
|
|
69
67
|
var import_ruleSetting = __toESM(require("./components/ruleSetting"));
|
|
@@ -87,6 +85,5 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
87
85
|
ProductExtension,
|
|
88
86
|
RuleSetting,
|
|
89
87
|
Schedules,
|
|
90
|
-
TaxSelect
|
|
91
|
-
VerticalClient
|
|
88
|
+
TaxSelect
|
|
92
89
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.81",
|
|
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.11",
|
|
62
61
|
"@pisell/utils": "1.0.25",
|
|
62
|
+
"@pisell/icon": "0.0.11",
|
|
63
63
|
"@pisell/date-picker": "1.0.74"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|