@pisell/private-materials 3.3.8 → 3.3.9
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 +13 -13
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +8 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Date/index.js +5 -3
- package/es/components/appointmentBooking/components/Footer/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +105 -0
- package/es/components/appointmentBooking/hooks.js +3 -1
- package/es/components/appointmentBooking/index.d.ts +3 -0
- package/es/components/appointmentBooking/locales.d.ts +345 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/addons/model.js +5 -5
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.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/index.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/wallet/model.d.ts +9 -1
- package/es/hooks/useComponents.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +77 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Date/index.js +4 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +105 -0
- package/lib/components/appointmentBooking/hooks.js +2 -1
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.d.ts +345 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.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/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/utils/index.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/appointmentBooking/utils.d.ts +0 -151
- package/es/components/booking/addons/index.d.ts +0 -17
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/utils.d.ts +0 -30
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/es/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/pet/index.d.ts +0 -14
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service/index.d.ts +0 -4
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/info2/service/addService/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -88
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/index.d.ts +0 -7
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/es/components/booking/materiels/holder/index.d.ts +0 -7
- package/es/components/booking/notes/addNote/index.d.ts +0 -4
- package/es/components/index.d.ts +0 -18
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -34
- package/es/components/productSelect/hooks/useToken.d.ts +0 -18
- package/es/components/productSelect/index.d.ts +0 -23
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/productSelect/mock.d.ts +0 -134
- package/es/components/productSelect/theme/token.d.ts +0 -17
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/es/components/shoppingCart/index.d.ts +0 -3
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/subTotal/index.d.ts +0 -22
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -4
- package/es/components/ticketBooking/data.d.ts +0 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/es/components/ticketBooking/index.d.ts +0 -3
- package/es/components/ticketBooking/locales.d.ts +0 -144
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/ticketBooking/serve.d.ts +0 -282
- package/es/components/ticketBooking/utils/index.d.ts +0 -14
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/index.d.ts +0 -45
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/appointmentBooking/utils.d.ts +0 -151
- package/lib/components/booking/addons/index.d.ts +0 -17
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/utils.d.ts +0 -30
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/lib/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -10
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/pet/index.d.ts +0 -14
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service/index.d.ts +0 -4
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -88
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/lib/components/booking/materiels/holder/index.d.ts +0 -7
- package/lib/components/booking/notes/addNote/index.d.ts +0 -4
- package/lib/components/index.d.ts +0 -18
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/gridLayout/index.d.ts +0 -9
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -34
- package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
- package/lib/components/productSelect/index.d.ts +0 -23
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/productSelect/mock.d.ts +0 -134
- package/lib/components/productSelect/theme/token.d.ts +0 -17
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -2
- package/lib/components/shoppingCart/index.d.ts +0 -3
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/subTotal/index.d.ts +0 -22
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -4
- package/lib/components/ticketBooking/data.d.ts +0 -58
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/lib/components/ticketBooking/index.d.ts +0 -3
- package/lib/components/ticketBooking/locales.d.ts +0 -144
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -282
- package/lib/components/ticketBooking/utils/index.d.ts +0 -14
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/index.d.ts +0 -45
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 获取背景色
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {string} colors
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2025-01-11 22:44
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatBackgroundColors: (colors: string[]) => string;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 获取可用的 schedule
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} schedule
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-03-05 18:05
|
|
17
|
-
*/
|
|
18
|
-
export declare const getUsableSchedules: (schedule: any) => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @title: 获取 schedules 的所有颜色
|
|
21
|
-
* @description:
|
|
22
|
-
* @param {any} schedules
|
|
23
|
-
* @return {*}
|
|
24
|
-
* @Author: zhiwei.Wang
|
|
25
|
-
* @Date: 2024-03-05 18:02
|
|
26
|
-
*/
|
|
27
|
-
export declare const getScheduleColors: (schedules: any[]) => string;
|
|
28
|
-
/**
|
|
29
|
-
* @title: 格式化日期头部日期显示
|
|
30
|
-
* @description:
|
|
31
|
-
* @param {string} dateString
|
|
32
|
-
* @return {*}
|
|
33
|
-
* @Author: WangHan
|
|
34
|
-
* @Date: 2025-01-12 11:55
|
|
35
|
-
*/
|
|
36
|
-
export declare const formatMonthDisplay: (dateString: string) => string;
|
|
37
|
-
/**
|
|
38
|
-
* @title: 资源名称
|
|
39
|
-
* @description:
|
|
40
|
-
* @param {any} data
|
|
41
|
-
* @return {*}
|
|
42
|
-
* @Author: WangHan
|
|
43
|
-
* @Date: 2025-02-11 13:39
|
|
44
|
-
*/
|
|
45
|
-
export declare const resourceTitle: (data: any) => any;
|
|
46
|
-
export declare const formatHolder: (data: any[]) => any[];
|
|
47
|
-
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
48
|
-
export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
|
|
49
|
-
/**
|
|
50
|
-
* @title: 对资源进行排序
|
|
51
|
-
* @description:
|
|
52
|
-
* @param {any} currentResourcesMap
|
|
53
|
-
* @param {any} resourceSort
|
|
54
|
-
* @return {*}
|
|
55
|
-
* @Author: WangHan
|
|
56
|
-
* @Date: 2025-04-14 11:16
|
|
57
|
-
*/
|
|
58
|
-
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
59
|
-
export declare const getMeAccount: (val: any[]) => any;
|
|
60
|
-
export declare const getCustomer: () => any;
|
|
61
|
-
export declare const formatCustomer: (val: any) => {
|
|
62
|
-
id: any;
|
|
63
|
-
username: string;
|
|
64
|
-
};
|
|
65
|
-
export declare const formatCurrentUser: () => {
|
|
66
|
-
id: any;
|
|
67
|
-
username: string;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @title: 检查是否有空的账户
|
|
71
|
-
* @description:
|
|
72
|
-
* @param {any} carts
|
|
73
|
-
* @param {any} accounts
|
|
74
|
-
* @return {*}
|
|
75
|
-
* @Author: WangHan
|
|
76
|
-
* @Date: 2025-04-15 17:05
|
|
77
|
-
*/
|
|
78
|
-
export declare const isEmptyGuest: (carts: any[], accounts: any[]) => boolean;
|
|
79
|
-
/**
|
|
80
|
-
* @title: 购物车中是否有空的资源数据
|
|
81
|
-
* @description:
|
|
82
|
-
* @param {any} carts
|
|
83
|
-
* @return {*}
|
|
84
|
-
* @Author: WangHan
|
|
85
|
-
* @Date: 2025-04-15 21:51
|
|
86
|
-
*/
|
|
87
|
-
export declare const isEmptyCartsResourceId: (carts: any[]) => boolean;
|
|
88
|
-
/**
|
|
89
|
-
* @title: 定金合并的标点符号
|
|
90
|
-
* @description:
|
|
91
|
-
* @return {*}
|
|
92
|
-
* @Author: WangHan
|
|
93
|
-
* @Date: 2025-04-21 17:52
|
|
94
|
-
*/
|
|
95
|
-
export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any;
|
|
96
|
-
/**
|
|
97
|
-
* @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单
|
|
98
|
-
* @description:
|
|
99
|
-
* @param {any} array
|
|
100
|
-
* @param {any} resources
|
|
101
|
-
* @return {*}
|
|
102
|
-
* @Author: WangHan
|
|
103
|
-
* @Date: 2025-04-25 19:05
|
|
104
|
-
*/
|
|
105
|
-
export declare const hasResourceFormId: (array: any[]) => boolean | undefined;
|
|
106
|
-
export declare const formatForms: (array: any[]) => ({
|
|
107
|
-
form_id: any;
|
|
108
|
-
policy_id: any;
|
|
109
|
-
id: any;
|
|
110
|
-
cart_id: any;
|
|
111
|
-
} | null)[];
|
|
112
|
-
/**
|
|
113
|
-
* @title: 打开表单
|
|
114
|
-
* @description:
|
|
115
|
-
* @param {string} title
|
|
116
|
-
* @param {any} callback
|
|
117
|
-
* @return {*}
|
|
118
|
-
* @Author: WangHan
|
|
119
|
-
* @Date: 2025-04-26 15:26
|
|
120
|
-
*/
|
|
121
|
-
export declare const openForm: ({ form_id, title, callback, utils }: any) => void;
|
|
122
|
-
/**
|
|
123
|
-
* @title: 更新数组
|
|
124
|
-
* @description:
|
|
125
|
-
* @return {*}
|
|
126
|
-
* @Author: WangHan
|
|
127
|
-
* @Date: 2025-04-26 18:13
|
|
128
|
-
*/
|
|
129
|
-
export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
|
|
130
|
-
/**
|
|
131
|
-
* @title: 检查表单是否有未完成或错误
|
|
132
|
-
* @description:
|
|
133
|
-
* @param {any} formStatus
|
|
134
|
-
* @param {any} formLists
|
|
135
|
-
* @return {*}
|
|
136
|
-
* @Author: WangHan
|
|
137
|
-
* @Date: 2025-04-26 18:52
|
|
138
|
-
*/
|
|
139
|
-
export declare function hasFormError(formStatus: any[], formLists: any[]): boolean;
|
|
140
|
-
/**
|
|
141
|
-
* @title: 更新表单存储
|
|
142
|
-
* @description:
|
|
143
|
-
* @param {any} bookingForm
|
|
144
|
-
* @param {number} id
|
|
145
|
-
* @param {any} newData
|
|
146
|
-
* @return {*}
|
|
147
|
-
* @Author: WangHan
|
|
148
|
-
* @Date: 2025-04-27 17:27
|
|
149
|
-
*/
|
|
150
|
-
export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
|
|
151
|
-
export declare const Toast: (text: string) => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 添加额外商品
|
|
3
|
-
* @description:
|
|
4
|
-
* @return {*}
|
|
5
|
-
* @Author: zhiwei.Wang
|
|
6
|
-
* @Date: 2024-01-30 16:33
|
|
7
|
-
*/
|
|
8
|
-
import './index.less';
|
|
9
|
-
export interface InfoProps {
|
|
10
|
-
title?: string;
|
|
11
|
-
style?: any;
|
|
12
|
-
globalState: any;
|
|
13
|
-
setGlobalState: any;
|
|
14
|
-
}
|
|
15
|
-
export declare const formatProducts: (values: any) => any;
|
|
16
|
-
declare const Addons: any;
|
|
17
|
-
export default Addons;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 套餐单规格信息
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} option
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: zhiwei.Wang
|
|
7
|
-
* @Date: 2024-02-19 09:26
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatProductOption: (option: any) => any;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 套餐信息
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} bundle
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-02-19 09:26
|
|
17
|
-
*/
|
|
18
|
-
export declare const formatProductBundle: (bundle: any) => any;
|
|
19
|
-
export interface ResourceItem {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
|
|
24
|
-
* @description:
|
|
25
|
-
* @param {object} resource
|
|
26
|
-
* @return {*}
|
|
27
|
-
* @Author: jinglin.tan
|
|
28
|
-
*/
|
|
29
|
-
export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
|
|
30
|
-
export declare const formatValues: (state: any) => any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { EditServiceRef } from "../service/editService";
|
|
3
|
-
declare const useInfoHolder: (state: any, dispatch: any) => {
|
|
4
|
-
detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
|
|
5
|
-
handleEdit: (cacheItem: any) => void;
|
|
6
|
-
dispatchService: (type: string, payload: any) => void;
|
|
7
|
-
handleAction: (dataSource: any) => void;
|
|
8
|
-
showAddTimeModal: boolean;
|
|
9
|
-
};
|
|
10
|
-
export default useInfoHolder;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InfoProps } from '../../forms/forms';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface PetProps {
|
|
5
|
-
state?: any;
|
|
6
|
-
dispatch?: any;
|
|
7
|
-
hideTitle?: boolean;
|
|
8
|
-
addButtonProps?: InfoProps['addButtonProps'];
|
|
9
|
-
handleOpenModal?: () => void;
|
|
10
|
-
clientChangeNotSetPet?: boolean;
|
|
11
|
-
previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare const Pet: (props: PetProps) => JSX.Element;
|
|
14
|
-
export default Pet;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface AddServiceProps {
|
|
4
|
-
onEdit?: any;
|
|
5
|
-
dispatch?: any;
|
|
6
|
-
state?: any;
|
|
7
|
-
drawerProps?: PisellDrawerProps;
|
|
8
|
-
renderMode?: 'current' | 'drawer';
|
|
9
|
-
}
|
|
10
|
-
declare const Info: (props: AddServiceProps) => JSX.Element;
|
|
11
|
-
export default Info;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
|
|
2
|
-
renderMode?: any;
|
|
3
|
-
onEdit?: any;
|
|
4
|
-
state?: any;
|
|
5
|
-
dispatch?: any;
|
|
6
|
-
}) => {
|
|
7
|
-
createBookingData: ({ product }: any) => Promise<any>;
|
|
8
|
-
editBookingData: ({ changeValues }: {
|
|
9
|
-
changeValues: any;
|
|
10
|
-
}) => Promise<any>;
|
|
11
|
-
createBooking: ({ booking }: {
|
|
12
|
-
booking: any;
|
|
13
|
-
}) => Promise<void>;
|
|
14
|
-
editBooking: ({ booking }: {
|
|
15
|
-
booking: any;
|
|
16
|
-
}) => Promise<void>;
|
|
17
|
-
goEditPanel: ({ booking }: {
|
|
18
|
-
booking: any;
|
|
19
|
-
}) => void;
|
|
20
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const getGroupTotalPrice: (items: any[]) => any;
|
|
2
|
-
/**
|
|
3
|
-
* @title: 创建一个虚拟的组
|
|
4
|
-
* @description:
|
|
5
|
-
* @param {any} items
|
|
6
|
-
* @return {*}
|
|
7
|
-
* @Author: zhiwei.Wang
|
|
8
|
-
*/
|
|
9
|
-
export declare const concatBookings: (items: any[]) => any;
|
|
10
|
-
export declare const createBookingItemsByGroup: (item: any, isBatchEdit?: any) => any[];
|
|
11
|
-
export declare const isGroupBooking: (_id: any) => boolean;
|
|
12
|
-
export declare const getProductByGroupId: (groupId: string, items: any[]) => any[];
|
|
13
|
-
export declare const getGroupBooking: (groupId: string, items: any[]) => any;
|
|
14
|
-
export declare const filterItemByGroupId: (groupId: string, items: any[]) => any[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const getResourceList: (params: any, bookingId?: number) => Promise<{
|
|
2
|
-
list: any[];
|
|
3
|
-
listMap: any;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const createBookings: (params: any) => Promise<any>;
|
|
6
|
-
export declare const editBookings: (params: any, id?: number) => Promise<any>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
|
3
|
-
import '../../../info/service/addService/index.less';
|
|
4
|
-
interface AddServiceProps {
|
|
5
|
-
onEdit: any;
|
|
6
|
-
dispatch?: any;
|
|
7
|
-
state?: any;
|
|
8
|
-
drawerProps?: PisellDrawerProps;
|
|
9
|
-
renderMode?: 'current' | 'drawer';
|
|
10
|
-
}
|
|
11
|
-
declare const Info: (props: AddServiceProps) => JSX.Element;
|
|
12
|
-
export default Info;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
export declare const getUsableTime: (cacheItem: any) => any;
|
|
3
|
-
export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
|
|
4
|
-
startDate: dayjs.Dayjs;
|
|
5
|
-
usableTime: any;
|
|
6
|
-
duration: string | number | {
|
|
7
|
-
type: string;
|
|
8
|
-
value: number;
|
|
9
|
-
};
|
|
10
|
-
locale: string;
|
|
11
|
-
slice: any;
|
|
12
|
-
selectProps: {
|
|
13
|
-
size: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @title: 灵活时长选项
|
|
18
|
-
* @description:
|
|
19
|
-
* @param {*} useMemo
|
|
20
|
-
* @return {*}
|
|
21
|
-
* @Author: zhiwei.Wang
|
|
22
|
-
* @Date: 2024-02-23 10:10
|
|
23
|
-
*/
|
|
24
|
-
export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
|
|
25
|
-
label: any;
|
|
26
|
-
value: any;
|
|
27
|
-
} | null;
|
|
28
|
-
export declare const getTimeSlices: ({ state }: any) => {
|
|
29
|
-
timeSlices: {
|
|
30
|
-
label: string;
|
|
31
|
-
value: string;
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @title: 时间切片
|
|
36
|
-
* @description:
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @Author: zhiwei.Wang
|
|
39
|
-
* @Date: 2024-01-09 13:37
|
|
40
|
-
*/
|
|
41
|
-
export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
|
|
42
|
-
timeSlices: {
|
|
43
|
-
label: string;
|
|
44
|
-
value: string;
|
|
45
|
-
}[];
|
|
46
|
-
durationSlicesBasedOnTime: {
|
|
47
|
-
label: string;
|
|
48
|
-
value: number;
|
|
49
|
-
}[];
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* @title: 获取资源列表
|
|
53
|
-
* @description:
|
|
54
|
-
* @return {*}
|
|
55
|
-
* @Author: zhiwei.Wang
|
|
56
|
-
* @Date: 2024-01-09 13:38
|
|
57
|
-
*/
|
|
58
|
-
export declare const formatResources: ({ cacheItem, resourcesOrigin }: any) => {
|
|
59
|
-
list: any[];
|
|
60
|
-
maps: any;
|
|
61
|
-
};
|
|
62
|
-
export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
|
|
63
|
-
/**
|
|
64
|
-
* @title: 设置默认容量
|
|
65
|
-
* @description:
|
|
66
|
-
* @param {any} param1
|
|
67
|
-
* @return {*}
|
|
68
|
-
* @Author: zhiwei.Wang
|
|
69
|
-
* @Date: 2024-09-19 20:26
|
|
70
|
-
*/
|
|
71
|
-
export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
|
|
72
|
-
/**
|
|
73
|
-
* @title: 预生成服务的 extend
|
|
74
|
-
* @description:
|
|
75
|
-
* @param {any} param1
|
|
76
|
-
* @return {*}
|
|
77
|
-
* @Author: zhiwei.Wang
|
|
78
|
-
* @Date: 2024-06-01 13:25
|
|
79
|
-
*/
|
|
80
|
-
export declare const getProductExtend: ({ cacheItem, state }: any) => any;
|
|
81
|
-
/**
|
|
82
|
-
* @title: 格式化服务列表
|
|
83
|
-
* @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
|
|
84
|
-
* 使用with resourceRelation后 返回的resource_relation是实时数据
|
|
85
|
-
* 这里做一次转换
|
|
86
|
-
* @param list
|
|
87
|
-
*/
|
|
88
|
-
export declare const transServiceList: (list: any[]) => any[];
|
package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SelectProps } from 'antd';
|
|
3
|
-
interface MaxLengthSelectProps<T> extends SelectProps<T> {
|
|
4
|
-
maxLength: number;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: import("react").ForwardRefExoticComponent<Partial<MaxLengthSelectProps<any>> & import("react").RefAttributes<unknown>>;
|
|
7
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
|
|
2
|
-
export declare const getSumCapacity: ({ cacheItem }: any) => number;
|
|
3
|
-
/**
|
|
4
|
-
* @title: 查找是否有可用的time
|
|
5
|
-
* @description:
|
|
6
|
-
* @param {any} resourceItem
|
|
7
|
-
* @return {*}
|
|
8
|
-
* @Author: zhiwei.Wang
|
|
9
|
-
* @Date: 2024-01-09 13:57
|
|
10
|
-
*/
|
|
11
|
-
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
|
12
|
-
export declare const getErrorList: (resource: any, cacheItem: any) => {
|
|
13
|
-
label: any;
|
|
14
|
-
type: string;
|
|
15
|
-
}[];
|
|
16
|
-
/**
|
|
17
|
-
* @title: 格式化资源, 添加自定义参数
|
|
18
|
-
* @description:
|
|
19
|
-
* @param {any} resourceItem
|
|
20
|
-
* @return {*}
|
|
21
|
-
* @Author: zhiwei.Wang
|
|
22
|
-
* @Date: 2024-01-09 13:40
|
|
23
|
-
*/
|
|
24
|
-
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
|
25
|
-
/**
|
|
26
|
-
* @title: 创建服务的开始时间和结束时间
|
|
27
|
-
* @description:
|
|
28
|
-
* @param {any} state
|
|
29
|
-
* @param {any} item
|
|
30
|
-
* @return {*}
|
|
31
|
-
* @Author: zhiwei.Wang
|
|
32
|
-
* @Date: 2024-01-26 14:09
|
|
33
|
-
*/
|
|
34
|
-
export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Login from './login';
|
|
2
|
-
import BookingInfo from './booking/info/index';
|
|
3
|
-
import Booking from './booking';
|
|
4
|
-
import BookingNotes from './booking/notes';
|
|
5
|
-
import BookingAddons from './booking/addons';
|
|
6
|
-
import BookingForms from './booking/forms';
|
|
7
|
-
import Schedules from './schedules';
|
|
8
|
-
import ProductExtension from './productExtension';
|
|
9
|
-
import RuleSetting from './ruleSetting';
|
|
10
|
-
import TaxSelect from './taxSelect';
|
|
11
|
-
import ToCPay from './pay/toC';
|
|
12
|
-
import Wallet from './wallet';
|
|
13
|
-
import WalletList from './walletList';
|
|
14
|
-
import WorkspaceListDetail from './workSpaceListDetail/';
|
|
15
|
-
import WorkspaceList from './workSpaceList';
|
|
16
|
-
import PisellSelectCustomerModal from './pisellSelectCustomerModal';
|
|
17
|
-
import SubTotal from './subTotal';
|
|
18
|
-
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
export interface ProductCardConfig {
|
|
3
|
-
showImg: boolean;
|
|
4
|
-
imgWidth: string;
|
|
5
|
-
imgHeight: string;
|
|
6
|
-
showTitle: boolean;
|
|
7
|
-
showSpec: boolean;
|
|
8
|
-
showTags: boolean;
|
|
9
|
-
showPrice: boolean;
|
|
10
|
-
showOriginalPrice: boolean;
|
|
11
|
-
showZeroPrice: boolean;
|
|
12
|
-
showMarketingTag: boolean;
|
|
13
|
-
showRemark: boolean;
|
|
14
|
-
showStock: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface ProductGroupProps {
|
|
17
|
-
data: {
|
|
18
|
-
icon: string;
|
|
19
|
-
id: number;
|
|
20
|
-
name: string;
|
|
21
|
-
products: any[];
|
|
22
|
-
slug: string;
|
|
23
|
-
sort: number;
|
|
24
|
-
};
|
|
25
|
-
layout: {
|
|
26
|
-
grid: boolean;
|
|
27
|
-
config?: string;
|
|
28
|
-
};
|
|
29
|
-
onSelectProduct?: (id: number) => void;
|
|
30
|
-
currentProductId?: number;
|
|
31
|
-
}
|
|
32
|
-
declare const ProductGroup: ({ data, layout, onSelectProduct, currentProductId, showImg, imgWidth, imgHeight, showTitle, showSpec, showTags, showPrice, showOriginalPrice, showZeroPrice, showMarketingTag, showRemark, showStock, }: ProductGroupProps & ProductCardConfig) => JSX.Element;
|
|
33
|
-
export declare const ProductGroupSkeleton: ({ layout }: any) => JSX.Element;
|
|
34
|
-
export default ProductGroup;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ProductSelectToken } from '../theme/token';
|
|
2
|
-
export declare function useToken(customToken?: Partial<ProductSelectToken>): {
|
|
3
|
-
colorPrimary: string;
|
|
4
|
-
colorText: string;
|
|
5
|
-
colorTextSecondary: string;
|
|
6
|
-
searchInputColor: string;
|
|
7
|
-
containerBg: string;
|
|
8
|
-
tabItemBg: string;
|
|
9
|
-
tabItemHoverBg: string;
|
|
10
|
-
tabItemActiveBg: string;
|
|
11
|
-
categoryTextColor: string;
|
|
12
|
-
cardBg: string;
|
|
13
|
-
cardHoverBg: string;
|
|
14
|
-
cardSelectedBg: string;
|
|
15
|
-
cardSelectedTextColor: string;
|
|
16
|
-
cardSelectedSecondaryTextColor: string;
|
|
17
|
-
};
|
|
18
|
-
export declare function genCSSVars(token: ProductSelectToken): Record<string, string>;
|