@pisell/private-materials 3.3.20 → 3.3.21
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/components/footer/utils.js +1 -1
- package/lib/components/booking/components/footer/utils.js +1 -1
- package/package.json +3 -3
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -4
- package/es/components/appointmentBooking/context.d.ts +0 -35
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -107
- package/es/components/appointmentBooking/locales.d.ts +0 -354
- package/es/components/appointmentBooking/utils.d.ts +0 -114
- package/es/components/booking/deposit/index.d.ts +0 -2
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +0 -4
- package/lib/components/appointmentBooking/context.d.ts +0 -35
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -107
- package/lib/components/appointmentBooking/locales.d.ts +0 -354
- package/lib/components/appointmentBooking/utils.d.ts +0 -114
- package/lib/components/booking/deposit/index.d.ts +0 -2
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 格式化holder表数据
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} data
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2025-05-07 21:22
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatHolder: (data: any[]) => any[];
|
|
10
|
-
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
11
|
-
/**
|
|
12
|
-
* @title: 格式化购物车中资源上挂接的表单数据
|
|
13
|
-
* @description:
|
|
14
|
-
* @param {any} data
|
|
15
|
-
* @param {any} resources
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2025-05-06 22:22
|
|
19
|
-
*/
|
|
20
|
-
export declare const formatCartsResources: (carts: any[], resources: any[], setPolicyIds: any) => any[];
|
|
21
|
-
/**
|
|
22
|
-
* @title: 格式化购物车数据
|
|
23
|
-
* @description:
|
|
24
|
-
* @param {any} data
|
|
25
|
-
* @param {any} resources
|
|
26
|
-
* @param {any} accountLists
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: WangHan
|
|
29
|
-
* @Date: 2025-05-07 21:22
|
|
30
|
-
*/
|
|
31
|
-
export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
|
|
32
|
-
/**
|
|
33
|
-
* @title: 对资源进行排序
|
|
34
|
-
* @description:
|
|
35
|
-
* @param {any} currentResourcesMap
|
|
36
|
-
* @param {any} resourceSort
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @Author: WangHan
|
|
39
|
-
* @Date: 2025-04-14 11:16
|
|
40
|
-
*/
|
|
41
|
-
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
42
|
-
export declare const getMeAccount: (val: any[]) => any;
|
|
43
|
-
export declare const getCustomer: () => any;
|
|
44
|
-
export declare const formatCustomer: (val: any) => {
|
|
45
|
-
id: any;
|
|
46
|
-
username: string;
|
|
47
|
-
};
|
|
48
|
-
export declare const formatCurrentUser: () => {
|
|
49
|
-
id: any;
|
|
50
|
-
username: string;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* @title: 定金合并的标点符号
|
|
54
|
-
* @description:
|
|
55
|
-
* @return {*}
|
|
56
|
-
* @Author: WangHan
|
|
57
|
-
* @Date: 2025-04-21 17:52
|
|
58
|
-
*/
|
|
59
|
-
export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any;
|
|
60
|
-
/**
|
|
61
|
-
* @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单
|
|
62
|
-
* @description:
|
|
63
|
-
* @param {any} array
|
|
64
|
-
* @param {any} resources
|
|
65
|
-
* @return {*}
|
|
66
|
-
* @Author: WangHan
|
|
67
|
-
* @Date: 2025-04-25 19:05
|
|
68
|
-
*/
|
|
69
|
-
export declare const hasResourceFormId: (array: any[]) => boolean | undefined;
|
|
70
|
-
export declare const formatForms: (array: any[]) => ({
|
|
71
|
-
form_id: any;
|
|
72
|
-
policy_id: any;
|
|
73
|
-
id: any;
|
|
74
|
-
cart_id: any;
|
|
75
|
-
} | null)[];
|
|
76
|
-
/**
|
|
77
|
-
* @title: 打开表单
|
|
78
|
-
* @description:
|
|
79
|
-
* @param {string} title
|
|
80
|
-
* @param {any} callback
|
|
81
|
-
* @return {*}
|
|
82
|
-
* @Author: WangHan
|
|
83
|
-
* @Date: 2025-04-26 15:26
|
|
84
|
-
*/
|
|
85
|
-
export declare const openForm: ({ form_id, title, callback, utils }: any) => void;
|
|
86
|
-
/**
|
|
87
|
-
* @title: 更新数组
|
|
88
|
-
* @description:
|
|
89
|
-
* @return {*}
|
|
90
|
-
* @Author: WangHan
|
|
91
|
-
* @Date: 2025-04-26 18:13
|
|
92
|
-
*/
|
|
93
|
-
export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
|
|
94
|
-
/**
|
|
95
|
-
* @title: 更新表单存储
|
|
96
|
-
* @description:
|
|
97
|
-
* @param {any} bookingForm
|
|
98
|
-
* @param {number} id
|
|
99
|
-
* @param {any} newData
|
|
100
|
-
* @return {*}
|
|
101
|
-
* @Author: WangHan
|
|
102
|
-
* @Date: 2025-04-27 17:27
|
|
103
|
-
*/
|
|
104
|
-
export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
|
|
105
|
-
export declare const Toast: (text: string) => void;
|
|
106
|
-
/**
|
|
107
|
-
* @title: 添加或移除表单步骤
|
|
108
|
-
* @description:
|
|
109
|
-
* @param {any} param1
|
|
110
|
-
* @return {*}
|
|
111
|
-
* @Author: WangHan
|
|
112
|
-
* @Date: 2025-05-06 21:51
|
|
113
|
-
*/
|
|
114
|
-
export declare const checkHasFormStep: ({ nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StatusEnum } from '../const';
|
|
2
|
-
export declare const POS: ({ api, onChange, }: {
|
|
3
|
-
api: {
|
|
4
|
-
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
5
|
-
};
|
|
6
|
-
onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}`, params?: {
|
|
7
|
-
[keys: string]: unknown;
|
|
8
|
-
} | undefined) => void;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
-
export declare const Action: ({ onChange }: {
|
|
11
|
-
onChange: any;
|
|
12
|
-
}) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PayStatus } from '../const';
|
|
2
|
-
/**
|
|
3
|
-
* @title: 循环查询 接口状态
|
|
4
|
-
* @Author: hongbing.wang
|
|
5
|
-
* @Date: 2024-08-20 13:29
|
|
6
|
-
*/
|
|
7
|
-
export declare const useValidate: (timeout: number) => readonly [(params_0: (...agrn: unknown[]) => Promise<any>, params_1: number, params_2?: number | undefined) => Promise<{
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
code: `${PayStatus}`;
|
|
10
|
-
}>, () => void];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 获取包括今天的后七天日期
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {*}
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: 严文强
|
|
7
|
-
* @Date: 2024-02-01 11:00
|
|
8
|
-
*/
|
|
9
|
-
export declare const getNextSevenDaysList: (defaultDay: string) => string[];
|
|
10
|
-
/**
|
|
11
|
-
* @title: 将年月日信息只展示为天
|
|
12
|
-
* @description: 如果为今天 则返回ToDay
|
|
13
|
-
* @param {*}
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: 严文强
|
|
16
|
-
* @Date: 2024-02-01 11:00
|
|
17
|
-
*/
|
|
18
|
-
export declare const ShowDayOnly: (date: string) => string;
|
|
19
|
-
/**
|
|
20
|
-
* @title: 日历星期多语言
|
|
21
|
-
* @description:
|
|
22
|
-
* @param {*}
|
|
23
|
-
* @return {*}
|
|
24
|
-
* @Author: 严文强
|
|
25
|
-
* @Date: 2024-02-01 18:42
|
|
26
|
-
*/
|
|
27
|
-
export declare const weekListText: string[];
|
|
28
|
-
/**
|
|
29
|
-
* @title: 不同状态颜色值
|
|
30
|
-
* @description:
|
|
31
|
-
* @param {*}
|
|
32
|
-
* @return {*}
|
|
33
|
-
* @Author: xiangxiang.shao
|
|
34
|
-
* @Date: 2024-02-19 11:35
|
|
35
|
-
*/
|
|
36
|
-
export declare const statusColor: {
|
|
37
|
-
call_to_book: string;
|
|
38
|
-
lots_of_space: string;
|
|
39
|
-
filling_up_fast: string;
|
|
40
|
-
sold_out: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* @title: 根据预约量数据判断当前状态
|
|
44
|
-
* @description:
|
|
45
|
-
* @param {*}
|
|
46
|
-
* @return {*}
|
|
47
|
-
* @Author: xiangxiang.shao
|
|
48
|
-
* @Date: 2024-02-19 11:35
|
|
49
|
-
*/
|
|
50
|
-
export declare const getStatus: (dateLimit: any, currentDate: string, cutTime: any) => {
|
|
51
|
-
status: string;
|
|
52
|
-
disabled: boolean;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @title: 根据当前日期以设定判断当前是否是call_to_book状态
|
|
56
|
-
* @description:
|
|
57
|
-
* @param {*}
|
|
58
|
-
* @return {*}
|
|
59
|
-
* @Author: xiangxiang.shao
|
|
60
|
-
* @Date: 2024-02-21 10:10
|
|
61
|
-
*/
|
|
62
|
-
export declare const getCallToBookStatus: (currentDate: string, dateLimitData: any, cutTime: any) => boolean;
|
|
63
|
-
export declare const localeTypes: any;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TasksManager } from '../../utils/tasks';
|
|
3
|
-
interface AppointmentBookingContextType {
|
|
4
|
-
appointmentBooking: any;
|
|
5
|
-
times: any[];
|
|
6
|
-
resources: any[];
|
|
7
|
-
setTimes: (times: any[]) => void;
|
|
8
|
-
setResources: (lists: any[]) => void;
|
|
9
|
-
carts: any[];
|
|
10
|
-
summary: any;
|
|
11
|
-
setCarts: (val: any[]) => void;
|
|
12
|
-
setSummary: (val: any) => void;
|
|
13
|
-
currentStep: any;
|
|
14
|
-
setCurrentStep: (val: any) => void;
|
|
15
|
-
appHelper?: any;
|
|
16
|
-
symbolic?: any;
|
|
17
|
-
resourceOtherParams?: any;
|
|
18
|
-
setResourceOtherParams: (val: any) => void;
|
|
19
|
-
selectedTime: any;
|
|
20
|
-
setSelectedTime: (val: any) => void;
|
|
21
|
-
isAgreeDepositPolicy: boolean;
|
|
22
|
-
setIsAgreeDepositPolicy: (val: boolean) => void;
|
|
23
|
-
isLastStep: boolean;
|
|
24
|
-
tasksManager: TasksManager;
|
|
25
|
-
policyParams: any;
|
|
26
|
-
setPolicyParams: (val: any) => void;
|
|
27
|
-
openPolicy: (content: any, callback?: any) => void;
|
|
28
|
-
closePolicy: (val?: boolean) => void;
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}
|
|
31
|
-
export declare const AppointmentBookingProvider: ({ children, }: {
|
|
32
|
-
children: ReactNode;
|
|
33
|
-
}) => JSX.Element;
|
|
34
|
-
export declare const useAppointmentBookingContext: () => AppointmentBookingContextType | undefined;
|
|
35
|
-
export {};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
export declare const useAppointmentBooking: () => any;
|
|
2
|
-
export declare const useShopDiscount: () => any;
|
|
3
|
-
export declare const contextUtils: () => any;
|
|
4
|
-
/**
|
|
5
|
-
* @title: 监听步骤发生变化
|
|
6
|
-
* @description:
|
|
7
|
-
* @return {*}
|
|
8
|
-
* @Author: WangHan
|
|
9
|
-
* @Date: 2025-04-15 11:11
|
|
10
|
-
*/
|
|
11
|
-
export declare const useAppointmentBookingStep: () => {
|
|
12
|
-
getStepIndex: (type: string, skipNumber?: number) => any;
|
|
13
|
-
stepList: any;
|
|
14
|
-
removeStep: (key: string) => any;
|
|
15
|
-
addStep: (props: any, stepKey?: string) => any;
|
|
16
|
-
updateStep: (key: string, step: any) => void;
|
|
17
|
-
nextStep: () => void;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @title: 获取商品数据
|
|
21
|
-
* @description:
|
|
22
|
-
* @return {*}
|
|
23
|
-
* @Author: WangHan
|
|
24
|
-
* @Date: 2025-04-15 11:12
|
|
25
|
-
*/
|
|
26
|
-
export declare const useAppointmentBookingProduct: () => {
|
|
27
|
-
checkProductType: (productId: number) => Promise<any>;
|
|
28
|
-
getProducts: () => Promise<any>;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @title: 更新购物车数据
|
|
32
|
-
* @description:
|
|
33
|
-
* @return {*}
|
|
34
|
-
* @Author: WangHan
|
|
35
|
-
* @Date: 2025-04-15 11:12
|
|
36
|
-
*/
|
|
37
|
-
export declare const useAppointmentBookingCart: () => void;
|
|
38
|
-
/**
|
|
39
|
-
* @title: 获取登录状态
|
|
40
|
-
* @description:
|
|
41
|
-
* @return {*}
|
|
42
|
-
* @Author: WangHan
|
|
43
|
-
* @Date: 2025-04-15 11:14
|
|
44
|
-
*/
|
|
45
|
-
export declare const useAppointmentBookingLogin: () => {
|
|
46
|
-
isLogin: boolean;
|
|
47
|
-
openLoginModal: (params: {
|
|
48
|
-
callback: any;
|
|
49
|
-
}) => void;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* @title: 获取账户
|
|
53
|
-
* @description:
|
|
54
|
-
* @return {*}
|
|
55
|
-
* @Author: WangHan
|
|
56
|
-
* @Date: 2025-04-15 11:15
|
|
57
|
-
*/
|
|
58
|
-
export declare const useAppointmentBookingAccount: () => {
|
|
59
|
-
accountLists: any;
|
|
60
|
-
getHolders: () => Promise<any>;
|
|
61
|
-
form_id: any;
|
|
62
|
-
addAccount: (val: any, type?: string) => Promise<any>;
|
|
63
|
-
checkAccount: (type: any) => any;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* @title: 获取资源数据
|
|
67
|
-
* @description:
|
|
68
|
-
* @return {*}
|
|
69
|
-
* @Author: WangHan
|
|
70
|
-
* @Date: 2025-04-15 11:29
|
|
71
|
-
*/
|
|
72
|
-
export declare const useAppointmentBookingResource: () => {
|
|
73
|
-
getResourceTimeSlot: (index?: number) => Promise<void>;
|
|
74
|
-
getResourceList: () => {
|
|
75
|
-
resources: any;
|
|
76
|
-
resourceCodes: any;
|
|
77
|
-
};
|
|
78
|
-
autoSelectAllProductResources: (index?: number) => Promise<any>;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* @title: 是否跳过资源选择步骤
|
|
82
|
-
* @description:
|
|
83
|
-
* @return {*}
|
|
84
|
-
* @Author: WangHan
|
|
85
|
-
* @Date: 2025-04-21 11:47
|
|
86
|
-
*/
|
|
87
|
-
export declare const useIsSkipResourceStep: () => {
|
|
88
|
-
checkSkipResourceStep: (isSkipUpdateFormStep?: boolean) => Promise<boolean>;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* @title: 获取预约配置
|
|
92
|
-
* @description:
|
|
93
|
-
* @return {*}
|
|
94
|
-
* @Author: WangHan
|
|
95
|
-
* @Date: 2025-04-24 18:15
|
|
96
|
-
*/
|
|
97
|
-
export declare const useAppointmentBookingSetting: () => {
|
|
98
|
-
isDateSelectedFirst: boolean;
|
|
99
|
-
isFormSubject: boolean;
|
|
100
|
-
customPageId: any;
|
|
101
|
-
channel: any;
|
|
102
|
-
getLoadAllSchedule: () => void;
|
|
103
|
-
bookingSubject: any;
|
|
104
|
-
setOtherData: (key: string, val: any) => any;
|
|
105
|
-
getOtherData: (key: string) => any;
|
|
106
|
-
formName: any;
|
|
107
|
-
};
|