@pisell/private-materials 3.3.3 → 3.3.4
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 +5 -5
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Event/index.d.ts +30 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
- package/es/components/booking/addons/index.d.ts +17 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- 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 +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.d.ts +11 -0
- package/es/components/booking/components/footer/utils.d.ts +30 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/components/voucher/index.js +2 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
- package/es/components/booking/info/hooks/useAddHolder.d.ts +2 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/es/components/booking/info/index.d.ts +3 -0
- package/es/components/booking/info/main.d.ts +12 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/pet/index.d.ts +14 -0
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/addService/index.d.ts +11 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/index.d.ts +4 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +5 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/es/components/booking/info/service2/utils.d.ts +241 -0
- package/es/components/booking/info/service2/utils.js +2 -1
- package/es/components/booking/info/utils.d.ts +46 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/index.d.ts +12 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +88 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/es/components/booking/info2/service/editService/index.d.ts +7 -0
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +34 -0
- package/es/components/booking/materiels/holder/index.d.ts +7 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +1 -9
- 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/addNote/index.d.ts +4 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +172 -0
- 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 +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/index.d.ts +18 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- 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 +0 -1
- 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 +0 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +34 -0
- package/es/components/productSelect/hooks/useToken.d.ts +18 -0
- package/es/components/productSelect/index.d.ts +23 -0
- package/es/components/productSelect/locales.d.ts +18 -0
- package/es/components/productSelect/mock.d.ts +134 -0
- package/es/components/productSelect/theme/token.d.ts +17 -0
- package/es/components/ruleSetting/index.d.ts +0 -1
- 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 +1 -9
- 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/Provider.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/es/components/shoppingCart/index.d.ts +3 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/index.d.ts +22 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +8 -8
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +4 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +11 -0
- package/es/components/ticketBooking/data.d.ts +58 -0
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/es/components/ticketBooking/index.d.ts +3 -0
- package/es/components/ticketBooking/locales.d.ts +144 -0
- package/es/components/ticketBooking/miniRedux.d.ts +22 -0
- package/es/components/ticketBooking/serve.d.ts +282 -0
- package/es/components/ticketBooking/utils/index.d.ts +14 -0
- package/es/components/wallet/Detail/index.d.ts +42 -0
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/components/WalletCard.d.ts +11 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/components/wallet/model.d.ts +1 -9
- package/es/hooks/useComponents.js +1 -1
- package/es/index.d.ts +45 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Event/index.d.ts +30 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
- package/lib/components/booking/addons/index.d.ts +17 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.d.ts +11 -0
- package/lib/components/booking/components/footer/utils.d.ts +30 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/components/voucher/index.js +2 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +6 -0
- package/lib/components/booking/info/hooks/useAddHolder.d.ts +2 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/lib/components/booking/info/index.d.ts +3 -0
- package/lib/components/booking/info/main.d.ts +12 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/pet/index.d.ts +14 -0
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/index.d.ts +4 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +5 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/lib/components/booking/info/service2/utils.d.ts +241 -0
- package/lib/components/booking/info/service2/utils.js +2 -1
- package/lib/components/booking/info/utils.d.ts +46 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +88 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +34 -0
- package/lib/components/booking/materiels/holder/index.d.ts +7 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/addNote/index.d.ts +4 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +172 -0
- 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 +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/index.d.ts +18 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +34 -0
- package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/components/productSelect/index.d.ts +23 -0
- package/lib/components/productSelect/locales.d.ts +18 -0
- package/lib/components/productSelect/mock.d.ts +134 -0
- package/lib/components/productSelect/theme/token.d.ts +17 -0
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/lib/components/shoppingCart/index.d.ts +3 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/index.d.ts +22 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +11 -0
- package/lib/components/ticketBooking/data.d.ts +58 -0
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/lib/components/ticketBooking/index.d.ts +3 -0
- package/lib/components/ticketBooking/locales.d.ts +144 -0
- package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
- package/lib/components/ticketBooking/serve.d.ts +282 -0
- package/lib/components/ticketBooking/utils/index.d.ts +14 -0
- package/lib/components/wallet/Detail/index.d.ts +42 -0
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/components/WalletCard.d.ts +11 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/index.d.ts +45 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ProductSelectToken {
|
|
2
|
+
colorPrimary: string;
|
|
3
|
+
colorText: string;
|
|
4
|
+
colorTextSecondary: string;
|
|
5
|
+
searchInputColor: string;
|
|
6
|
+
containerBg: string;
|
|
7
|
+
tabItemBg: string;
|
|
8
|
+
tabItemHoverBg: string;
|
|
9
|
+
tabItemActiveBg: string;
|
|
10
|
+
categoryTextColor: string;
|
|
11
|
+
cardBg: string;
|
|
12
|
+
cardHoverBg: string;
|
|
13
|
+
cardSelectedBg: string;
|
|
14
|
+
cardSelectedTextColor: string;
|
|
15
|
+
cardSelectedSecondaryTextColor: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const defaultToken: ProductSelectToken;
|
|
@@ -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,11 +68,4 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
|
17
17
|
export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
|
|
18
18
|
export declare const saveConfirm: () => Promise<{
|
|
19
19
|
destroy: () => void;
|
|
20
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
21
21
|
}>;
|
|
22
22
|
export { modal };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CollapseProps } from 'antd';
|
|
2
|
+
export interface productProps {
|
|
3
|
+
hideAddBtn?: boolean;
|
|
4
|
+
isShowNote?: boolean;
|
|
5
|
+
isShowPackageNote?: boolean;
|
|
6
|
+
products?: any[];
|
|
7
|
+
holders?: any[];
|
|
8
|
+
isEdit?: boolean;
|
|
9
|
+
disabledEdit?: boolean;
|
|
10
|
+
isShowChangeResource?: boolean;
|
|
11
|
+
isShowDelete?: boolean;
|
|
12
|
+
isShowChangeHolder?: boolean;
|
|
13
|
+
isShowHolder?: boolean;
|
|
14
|
+
isShowAddHolderButton?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface shoppingCartProps {
|
|
17
|
+
isOpenGroup?: boolean;
|
|
18
|
+
carts?: any[];
|
|
19
|
+
platform?: 'shop' | 'h5';
|
|
20
|
+
emptyText?: string;
|
|
21
|
+
activeKey?: string[] | number[];
|
|
22
|
+
defaultActiveKey?: string[] | number[];
|
|
23
|
+
className?: string;
|
|
24
|
+
onCard?: (e: any) => void;
|
|
25
|
+
onAction?: (e: any) => void;
|
|
26
|
+
onChange?: (items: any, type?: string, other?: any) => void;
|
|
27
|
+
onAddProduct?: (e?: any) => void;
|
|
28
|
+
onActiveKey?: (e: any) => void;
|
|
29
|
+
isShowImage?: boolean;
|
|
30
|
+
isShowHolder?: boolean;
|
|
31
|
+
isShowDelete?: boolean;
|
|
32
|
+
collapseParams?: CollapseProps;
|
|
33
|
+
productParams?: productProps;
|
|
34
|
+
isHideClearCart?: boolean;
|
|
35
|
+
isParallelResource?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @title: 商品卡片
|
|
39
|
+
* @description:
|
|
40
|
+
* @return {*}
|
|
41
|
+
* @Author: WangHan
|
|
42
|
+
* @Date: 2024-11-29 09:52
|
|
43
|
+
*/
|
|
44
|
+
export interface ProductProps {
|
|
45
|
+
id?: any;
|
|
46
|
+
lists: any[];
|
|
47
|
+
isAdd?: boolean;
|
|
48
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare type SubTotalKey = 'deposit' | 'total' | 'sub_total' | 'tax' | 'delivery_fee' | 'discount' | 'point_deduction' | 'member_deduction' | 'custom' | string;
|
|
4
|
+
export interface SubTotalItem extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
key: SubTotalKey;
|
|
6
|
+
label?: string | React.ReactNode;
|
|
7
|
+
value: number;
|
|
8
|
+
count?: number;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
tax?: {
|
|
11
|
+
rate?: number;
|
|
12
|
+
is_price_include_tax?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
list: SubTotalItem[];
|
|
18
|
+
mode?: 'column1' | 'column2';
|
|
19
|
+
describe?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const SubTotal: (props: SubTotalProps) => JSX.Element;
|
|
22
|
+
export default SubTotal;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.subtotal.deposit': string;
|
|
4
|
+
'pisell2.subtotal.total': string;
|
|
5
|
+
'pisell2.subtotal.subtotal': string;
|
|
6
|
+
'pisell2.subtotal.tax': string;
|
|
7
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
8
|
+
'pisell2.subtotal.discount': string;
|
|
9
|
+
'pisell2.subtotal.point-deduction': string;
|
|
10
|
+
'pisell2.subtotal.member-deduction': string;
|
|
11
|
+
'pisell2.subtotal.items': string;
|
|
12
|
+
'pisell2.subtotal.not-contain': string;
|
|
13
|
+
'pisell2.subtotal.included': string;
|
|
14
|
+
};
|
|
15
|
+
'zh-CN': {
|
|
16
|
+
'pisell2.subtotal.deposit': string;
|
|
17
|
+
'pisell2.subtotal.total': string;
|
|
18
|
+
'pisell2.subtotal.subtotal': string;
|
|
19
|
+
'pisell2.subtotal.tax': string;
|
|
20
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
21
|
+
'pisell2.subtotal.discount': string;
|
|
22
|
+
'pisell2.subtotal.point-deduction': string;
|
|
23
|
+
'pisell2.subtotal.member-deduction': string;
|
|
24
|
+
'pisell2.subtotal.items': string;
|
|
25
|
+
'pisell2.subtotal.not-contain': string;
|
|
26
|
+
'pisell2.subtotal.included': string;
|
|
27
|
+
};
|
|
28
|
+
'zh-HK': {
|
|
29
|
+
'pisell2.subtotal.deposit': string;
|
|
30
|
+
'pisell2.subtotal.total': string;
|
|
31
|
+
'pisell2.subtotal.subtotal': string;
|
|
32
|
+
'pisell2.subtotal.tax': string;
|
|
33
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
34
|
+
'pisell2.subtotal.discount': string;
|
|
35
|
+
'pisell2.subtotal.point-deduction': string;
|
|
36
|
+
'pisell2.subtotal.member-deduction': string;
|
|
37
|
+
'pisell2.subtotal.items': string;
|
|
38
|
+
'pisell2.subtotal.not-contain': string;
|
|
39
|
+
'pisell2.subtotal.included': string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
@@ -189,9 +189,6 @@ var AddSerivce = (props) => {
|
|
|
189
189
|
setTimeout(() => {
|
|
190
190
|
lock = false;
|
|
191
191
|
}, 2e3);
|
|
192
|
-
(0, import_materials.PisellToast)({
|
|
193
|
-
content: import_utils.locales.getText("pisell2.ticket-booking.add-to-cart")
|
|
194
|
-
});
|
|
195
192
|
if (!isBooking4) {
|
|
196
193
|
const data = await createBookingData({
|
|
197
194
|
product: { ...detail || item, _params: e }
|
|
@@ -234,6 +231,9 @@ var AddSerivce = (props) => {
|
|
|
234
231
|
if (cacheItem.autoClose) {
|
|
235
232
|
cacheItem.autoClose = false;
|
|
236
233
|
let _list = [...state.service.value, cacheItem];
|
|
234
|
+
(0, import_materials.PisellToast)({
|
|
235
|
+
content: import_utils.locales.getText("pisell2.ticket-booking.add-to-cart")
|
|
236
|
+
});
|
|
237
237
|
dispatch({
|
|
238
238
|
type: "setService",
|
|
239
239
|
payload: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ITimeBarProps {
|
|
4
|
+
globalState: any;
|
|
5
|
+
setGlobalState: any;
|
|
6
|
+
onDateChange: (date: Dayjs, dateString?: string) => void;
|
|
7
|
+
onDateTimeChange: (date: Dayjs, timeString: string) => void;
|
|
8
|
+
setIntervalTime: (value: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
|
|
11
|
+
export default TimeBar;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const mockProduct: {
|
|
2
|
+
order_id: number;
|
|
3
|
+
shop_id: number;
|
|
4
|
+
product_id: number;
|
|
5
|
+
product_variant_id: number;
|
|
6
|
+
product_unique_string: string;
|
|
7
|
+
product_title: string;
|
|
8
|
+
product_cover: string;
|
|
9
|
+
product_sku: {
|
|
10
|
+
code: string;
|
|
11
|
+
name: string;
|
|
12
|
+
barcode: string;
|
|
13
|
+
sku_ids: string;
|
|
14
|
+
variant: never[];
|
|
15
|
+
variant_id: string;
|
|
16
|
+
generate_voucher: never[];
|
|
17
|
+
};
|
|
18
|
+
product_bundle: never[];
|
|
19
|
+
gift_card: number;
|
|
20
|
+
selling_price: string;
|
|
21
|
+
original_price: string;
|
|
22
|
+
cost_price: string;
|
|
23
|
+
product_quantity: number;
|
|
24
|
+
payment_price: string;
|
|
25
|
+
deposit_price: string;
|
|
26
|
+
tax_fee: string;
|
|
27
|
+
is_charge_tax: number;
|
|
28
|
+
refund_quantity: number;
|
|
29
|
+
refund_status: string;
|
|
30
|
+
shipping_status: string;
|
|
31
|
+
payment_status: string;
|
|
32
|
+
commission: number;
|
|
33
|
+
commission_tax: number;
|
|
34
|
+
rebate_type: string;
|
|
35
|
+
rebate_value: string;
|
|
36
|
+
commission_percent: string;
|
|
37
|
+
channel: string;
|
|
38
|
+
channel_id: number;
|
|
39
|
+
item_relation_id: number;
|
|
40
|
+
schedule_event_id: number;
|
|
41
|
+
note: string;
|
|
42
|
+
extension_type: string;
|
|
43
|
+
before_product_quantity: number;
|
|
44
|
+
remove_product_quantity: number;
|
|
45
|
+
deleted_at: null;
|
|
46
|
+
created_at: string;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
order_detail_id: number;
|
|
49
|
+
product_option_string: string;
|
|
50
|
+
product_subtitle: string;
|
|
51
|
+
source_product_price: string;
|
|
52
|
+
discount_amount: number;
|
|
53
|
+
product_discount_reason: string;
|
|
54
|
+
discount_type: string;
|
|
55
|
+
discountway: string;
|
|
56
|
+
discount_per: string;
|
|
57
|
+
single_discount: null;
|
|
58
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum NetworkStatus {
|
|
2
|
+
GOOD = "GOOD",
|
|
3
|
+
WEAK = "WEAK",
|
|
4
|
+
OFFLINE = "OFFLINE"
|
|
5
|
+
}
|
|
6
|
+
export declare const NetworkStatusColor: {
|
|
7
|
+
GOOD: string;
|
|
8
|
+
WEAK: string;
|
|
9
|
+
OFFLINE: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const useNetworkStatus: () => NetworkStatus;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
"pisell2.ticket-booking.info": string;
|
|
4
|
+
"pisell2.ticket-booking.notes": string;
|
|
5
|
+
"pisell2.ticket-booking.forms": string;
|
|
6
|
+
"pisell2.ticket-booking.sales": string;
|
|
7
|
+
"pisell2.ticket-booking.payment": string;
|
|
8
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
9
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
10
|
+
"pisell2.ticket-booking.go-back": string;
|
|
11
|
+
"pisell2.ticket-booking.exit": string;
|
|
12
|
+
"pisell2.ticket-booking.deposit": string;
|
|
13
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
14
|
+
"pisell2.ticket-booking.no-data": string;
|
|
15
|
+
"pisell2.ticket-booking.authorized": string;
|
|
16
|
+
"pisell2.ticket-booking.paid": string;
|
|
17
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
18
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
19
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
20
|
+
"pisell2.ticket-booking.refunded": string;
|
|
21
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
22
|
+
"pisell2.ticket-booking.voided": string;
|
|
23
|
+
"pisell2.ticket-booking.pending": string;
|
|
24
|
+
"pisell2.ticket-booking.all": string;
|
|
25
|
+
"pisell2.ticket-booking.not-started": string;
|
|
26
|
+
"pisell2.ticket-booking.started": string;
|
|
27
|
+
"pisell2.ticket-booking.finished": string;
|
|
28
|
+
"pisell2.ticket-booking.canceled": string;
|
|
29
|
+
"pisell2.ticket-booking.inform": string;
|
|
30
|
+
"pisell2.ticket-booking.check-management": string;
|
|
31
|
+
"pisell2.ticket-booking.confirm": string;
|
|
32
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
33
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
34
|
+
"pisell2.ticket-booking.full-data": string;
|
|
35
|
+
"pisell2.ticket-booking.today": string;
|
|
36
|
+
"pisell2.ticket-booking.now": string;
|
|
37
|
+
"pisell2.ticket-booking.start-time": string;
|
|
38
|
+
"pisell2.ticket-booking.create-time": string;
|
|
39
|
+
"pisell2.ticket-booking.customer": string;
|
|
40
|
+
"pisell2.ticket-booking.total": string;
|
|
41
|
+
"pisell2.ticket-booking.search": string;
|
|
42
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
43
|
+
"pisell2.ticket-booking.loading": string;
|
|
44
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
45
|
+
"pisell2.ticket-booking.scan": string;
|
|
46
|
+
"pisell2.ticket-booking.create-new": string;
|
|
47
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
48
|
+
};
|
|
49
|
+
"zh-CN": {
|
|
50
|
+
"pisell2.ticket-booking.info": string;
|
|
51
|
+
"pisell2.ticket-booking.notes": string;
|
|
52
|
+
"pisell2.ticket-booking.forms": string;
|
|
53
|
+
"pisell2.ticket-booking.sales": string;
|
|
54
|
+
"pisell2.ticket-booking.payment": string;
|
|
55
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
56
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
57
|
+
"pisell2.ticket-booking.go-back": string;
|
|
58
|
+
"pisell2.ticket-booking.exit": string;
|
|
59
|
+
"pisell2.ticket-booking.deposit": string;
|
|
60
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
61
|
+
"pisell2.ticket-booking.no-data": string;
|
|
62
|
+
"pisell2.ticket-booking.authorized": string;
|
|
63
|
+
"pisell2.ticket-booking.paid": string;
|
|
64
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
65
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
66
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
67
|
+
"pisell2.ticket-booking.refunded": string;
|
|
68
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
69
|
+
"pisell2.ticket-booking.voided": string;
|
|
70
|
+
"pisell2.ticket-booking.pending": string;
|
|
71
|
+
"pisell2.ticket-booking.all": string;
|
|
72
|
+
"pisell2.ticket-booking.not-started": string;
|
|
73
|
+
"pisell2.ticket-booking.started": string;
|
|
74
|
+
"pisell2.ticket-booking.finished": string;
|
|
75
|
+
"pisell2.ticket-booking.canceled": string;
|
|
76
|
+
"pisell2.ticket-booking.inform": string;
|
|
77
|
+
"pisell2.ticket-booking.check-management": string;
|
|
78
|
+
"pisell2.ticket-booking.confirm": string;
|
|
79
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
80
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
81
|
+
"pisell2.ticket-booking.full-data": string;
|
|
82
|
+
"pisell2.ticket-booking.today": string;
|
|
83
|
+
"pisell2.ticket-booking.now": string;
|
|
84
|
+
"pisell2.ticket-booking.start-time": string;
|
|
85
|
+
"pisell2.ticket-booking.create-time": string;
|
|
86
|
+
"pisell2.ticket-booking.customer": string;
|
|
87
|
+
"pisell2.ticket-booking.total": string;
|
|
88
|
+
"pisell2.ticket-booking.search": string;
|
|
89
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
90
|
+
"pisell2.ticket-booking.loading": string;
|
|
91
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
92
|
+
"pisell2.ticket-booking.scan": string;
|
|
93
|
+
"pisell2.ticket-booking.create-new": string;
|
|
94
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
95
|
+
};
|
|
96
|
+
"zh-HK": {
|
|
97
|
+
"pisell2.ticket-booking.info": string;
|
|
98
|
+
"pisell2.ticket-booking.notes": string;
|
|
99
|
+
"pisell2.ticket-booking.forms": string;
|
|
100
|
+
"pisell2.ticket-booking.sales": string;
|
|
101
|
+
"pisell2.ticket-booking.payment": string;
|
|
102
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
103
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
104
|
+
"pisell2.ticket-booking.go-back": string;
|
|
105
|
+
"pisell2.ticket-booking.exit": string;
|
|
106
|
+
"pisell2.ticket-booking.deposit": string;
|
|
107
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
108
|
+
"pisell2.ticket-booking.no-data": string;
|
|
109
|
+
"pisell2.ticket-booking.authorized": string;
|
|
110
|
+
"pisell2.ticket-booking.paid": string;
|
|
111
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
112
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
113
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
114
|
+
"pisell2.ticket-booking.refunded": string;
|
|
115
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
116
|
+
"pisell2.ticket-booking.voided": string;
|
|
117
|
+
"pisell2.ticket-booking.pending": string;
|
|
118
|
+
"pisell2.ticket-booking.all": string;
|
|
119
|
+
"pisell2.ticket-booking.not-started": string;
|
|
120
|
+
"pisell2.ticket-booking.started": string;
|
|
121
|
+
"pisell2.ticket-booking.finished": string;
|
|
122
|
+
"pisell2.ticket-booking.canceled": string;
|
|
123
|
+
"pisell2.ticket-booking.inform": string;
|
|
124
|
+
"pisell2.ticket-booking.check-management": string;
|
|
125
|
+
"pisell2.ticket-booking.confirm": string;
|
|
126
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
127
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
128
|
+
"pisell2.ticket-booking.full-data": string;
|
|
129
|
+
"pisell2.ticket-booking.today": string;
|
|
130
|
+
"pisell2.ticket-booking.now": string;
|
|
131
|
+
"pisell2.ticket-booking.start-time": string;
|
|
132
|
+
"pisell2.ticket-booking.create-time": string;
|
|
133
|
+
"pisell2.ticket-booking.customer": string;
|
|
134
|
+
"pisell2.ticket-booking.total": string;
|
|
135
|
+
"pisell2.ticket-booking.search": string;
|
|
136
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
137
|
+
"pisell2.ticket-booking.loading": string;
|
|
138
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
139
|
+
"pisell2.ticket-booking.scan": string;
|
|
140
|
+
"pisell2.ticket-booking.create-new": string;
|
|
141
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare class Store<T extends object> {
|
|
3
|
+
private state;
|
|
4
|
+
private listeners;
|
|
5
|
+
constructor(initialState: T);
|
|
6
|
+
getState(): T;
|
|
7
|
+
setState(partialState: Partial<T> | ((prevState: T) => Partial<T>), callback?: (state: T) => void): void;
|
|
8
|
+
subscribe(listener: () => void): () => void;
|
|
9
|
+
private notify;
|
|
10
|
+
getLatestState(): T;
|
|
11
|
+
}
|
|
12
|
+
interface ProviderProps<T extends object> {
|
|
13
|
+
store: Store<T>;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function Provider<T extends object>({ store, children, }: ProviderProps<T>): JSX.Element;
|
|
17
|
+
export declare function createStore<T extends object>(initialState: T): Store<T>;
|
|
18
|
+
export declare function useStore<T extends object>(): [
|
|
19
|
+
T,
|
|
20
|
+
(update: Partial<T> | ((prevState: T) => Partial<T>), callback?: (state: T) => void) => void
|
|
21
|
+
];
|
|
22
|
+
export {};
|