@pisell/private-materials 6.5.15 → 6.5.16
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/ticketBooking/components/ticketBooking/index.js +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -0
- package/package.json +1 -1
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/amount.d.ts +0 -36
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/utils.d.ts +0 -41
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/checkout/PaymentModal.d.ts +0 -31
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/types/index.d.ts +0 -72
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -7
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/es/components/ticketBooking/index.d.ts +0 -15
- package/es/components/ticketBooking/utils/index.d.ts +0 -90
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/hooks/printer.d.ts +0 -4
- package/es/index.d.ts +0 -65
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/amount.d.ts +0 -36
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/utils.d.ts +0 -41
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/checkout/PaymentModal.d.ts +0 -31
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/types/index.d.ts +0 -72
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -7
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/lib/components/ticketBooking/index.d.ts +0 -15
- package/lib/components/ticketBooking/utils/index.d.ts +0 -90
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/index.d.ts +0 -65
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
|
@@ -1343,6 +1343,7 @@ var TicketBooking = function TicketBooking(props) {
|
|
|
1343
1343
|
}), isShowFloatButtons && /*#__PURE__*/React.createElement(FloatButtons, {
|
|
1344
1344
|
items: floatButtons
|
|
1345
1345
|
})), isShowTimeBar && /*#__PURE__*/React.createElement(TimeBar, {
|
|
1346
|
+
setNowTime: _getProducts,
|
|
1346
1347
|
onCreateClick: handleCreateClick,
|
|
1347
1348
|
setGlobalState: setState,
|
|
1348
1349
|
globalState: state,
|
|
@@ -1218,6 +1218,7 @@ var TicketBooking = (props) => {
|
|
|
1218
1218
|
), isShowFloatButtons && /* @__PURE__ */ import_react.default.createElement(import_floatButtons.default, { items: floatButtons })), isShowTimeBar && /* @__PURE__ */ import_react.default.createElement(
|
|
1219
1219
|
import_timeBar.default,
|
|
1220
1220
|
{
|
|
1221
|
+
setNowTime: _getProducts,
|
|
1221
1222
|
onCreateClick: handleCreateClick,
|
|
1222
1223
|
setGlobalState: setState,
|
|
1223
1224
|
globalState: state,
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ActionButtonsProps {
|
|
4
|
-
/** booking 状态对象,包含 service、addons 等数据 */
|
|
5
|
-
state: {
|
|
6
|
-
service?: {
|
|
7
|
-
value?: any[];
|
|
8
|
-
};
|
|
9
|
-
addons?: {
|
|
10
|
-
value?: any[];
|
|
11
|
-
};
|
|
12
|
-
disabledEdit?: boolean;
|
|
13
|
-
channelDisabledEdit?: boolean;
|
|
14
|
-
shop_discount?: string;
|
|
15
|
-
bookingDetail?: {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
/** dispatch 函数,用于触发状态更新 */
|
|
21
|
-
dispatch: (action: {
|
|
22
|
-
type: string;
|
|
23
|
-
payload?: any;
|
|
24
|
-
}) => void;
|
|
25
|
-
/** 是否禁用所有按钮 */
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/** 数据源,传递给 VoucherCard */
|
|
28
|
-
source?: any;
|
|
29
|
-
}
|
|
30
|
-
declare const ActionButtons: React.FC<ActionButtonsProps>;
|
|
31
|
-
export default ActionButtons;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const getRelationDetailsTotal: (relation_details: any) => number;
|
|
2
|
-
export declare const getIsPriceIncludeTax: (state: any) => any;
|
|
3
|
-
/**
|
|
4
|
-
* 总金额
|
|
5
|
-
* @param state
|
|
6
|
-
* @param options isEdit: 预约信息是否发生变动
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const getSumTotal: (state: any, options: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
isEdit: boolean;
|
|
12
|
-
ScheduleModule: any;
|
|
13
|
-
}) => {
|
|
14
|
-
productAmount: number;
|
|
15
|
-
duration: string;
|
|
16
|
-
tax: number;
|
|
17
|
-
taxInfo: {
|
|
18
|
-
title: any;
|
|
19
|
-
rate: any;
|
|
20
|
-
is_price_include_tax: any;
|
|
21
|
-
};
|
|
22
|
-
shopDiscount: number;
|
|
23
|
-
surcharge: any;
|
|
24
|
-
otherAmount: any;
|
|
25
|
-
sumTotalAmount: number;
|
|
26
|
-
paidAmount: any;
|
|
27
|
-
notPaidAmount: number;
|
|
28
|
-
paySurchargeFee: number;
|
|
29
|
-
expectAmount: number;
|
|
30
|
-
actualPaidAmount: any;
|
|
31
|
-
orderPaidAmount: any;
|
|
32
|
-
totalRefundAmount: number;
|
|
33
|
-
dueAmount: number;
|
|
34
|
-
roundingAmount: number;
|
|
35
|
-
originExpectAmount: number;
|
|
36
|
-
};
|
|
@@ -1,41 +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 checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
|
|
31
|
-
/**
|
|
32
|
-
* @title: 格式化商品单价
|
|
33
|
-
* @description:
|
|
34
|
-
* @param {any} item
|
|
35
|
-
* @return {*}
|
|
36
|
-
* @Author: WangHan
|
|
37
|
-
* @Date: 2024-12-23 12:05
|
|
38
|
-
*/
|
|
39
|
-
export declare const formatProductPrice: (item: any) => number;
|
|
40
|
-
export declare const formatValues: (state: any) => any;
|
|
41
|
-
export declare const checkHolderIsError: (state: any) => any;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ClientCardRef, CartClientCardProps } from './types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export type { ClientData } from './types';
|
|
5
|
-
declare const CartClientCard: React.ForwardRefExoticComponent<CartClientCardProps & React.RefAttributes<ClientCardRef>>;
|
|
6
|
-
export default CartClientCard;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface PaymentModalData {
|
|
4
|
-
order_info: any;
|
|
5
|
-
subtotal_info: {
|
|
6
|
-
subTotalList: any[];
|
|
7
|
-
orderTotalList: any[];
|
|
8
|
-
total: number;
|
|
9
|
-
showDetail: boolean;
|
|
10
|
-
};
|
|
11
|
-
total: any;
|
|
12
|
-
}
|
|
13
|
-
interface PaymentModalProps {
|
|
14
|
-
open?: boolean;
|
|
15
|
-
data?: PaymentModalData;
|
|
16
|
-
callback?: (result: any) => void;
|
|
17
|
-
onClose?: (reset?: boolean) => void;
|
|
18
|
-
dispatch?: (action: {
|
|
19
|
-
type: string;
|
|
20
|
-
payload?: any;
|
|
21
|
-
}) => void;
|
|
22
|
-
state?: any;
|
|
23
|
-
}
|
|
24
|
-
interface PaymentModalMainProps extends PaymentModalProps {
|
|
25
|
-
onClose?: (reset?: boolean) => void;
|
|
26
|
-
setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
|
|
27
|
-
editOrderId?: number;
|
|
28
|
-
}
|
|
29
|
-
declare const PaymentModal: React.FC<PaymentModalMainProps>;
|
|
30
|
-
export type { PaymentModalData, PaymentModalProps };
|
|
31
|
-
export default PaymentModal;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CurrentOrderInfo } from '../../types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface CashPaymentModuleProps {
|
|
5
|
-
amountSymbol?: string;
|
|
6
|
-
orderInfo?: CurrentOrderInfo;
|
|
7
|
-
onPaymentComplete?: (result: any) => void;
|
|
8
|
-
amountButtons?: number[];
|
|
9
|
-
customAmount?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
roundingFunction?: (amount: number) => Promise<{
|
|
12
|
-
roundedAmount: number;
|
|
13
|
-
roundingDifference: number;
|
|
14
|
-
}>;
|
|
15
|
-
balanceDueAmount?: string;
|
|
16
|
-
balanceDueTotalAmount?: string;
|
|
17
|
-
syncingLock?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
|
|
20
|
-
disabled, // 禁用状态
|
|
21
|
-
roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
|
|
22
|
-
balanceDueTotalAmount, // 完整订单剩余待付金额
|
|
23
|
-
syncingLock, }: CashPaymentModuleProps): JSX.Element;
|
|
24
|
-
export default CashPaymentModule;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 自定义Hook:使用WalletPass功能
|
|
3
|
-
*/
|
|
4
|
-
export declare const useWalletPass: (props: {
|
|
5
|
-
onSelectChange?: ((select: {
|
|
6
|
-
voucher_id: number;
|
|
7
|
-
amount: number;
|
|
8
|
-
code: string;
|
|
9
|
-
}[]) => void) | undefined;
|
|
10
|
-
customAmount?: string | undefined;
|
|
11
|
-
clientId?: number | undefined;
|
|
12
|
-
}) => {
|
|
13
|
-
walletRecommendList: any[];
|
|
14
|
-
userIdentificationCodes: any[];
|
|
15
|
-
loading: boolean;
|
|
16
|
-
error: string | null;
|
|
17
|
-
cardData: any;
|
|
18
|
-
handleSelectWallet: (value: number[]) => void;
|
|
19
|
-
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any[];
|
|
21
|
-
expiredWalletData: any;
|
|
22
|
-
disabledWalletData: any[];
|
|
23
|
-
clearAllSelectedWallet: () => void;
|
|
24
|
-
clearDisabledWalletData: () => void;
|
|
25
|
-
handleBeforeEditAmount: (value: any, index: number, data: any) => Promise<boolean>;
|
|
26
|
-
handleBestSaving: () => void;
|
|
27
|
-
handleSearchIdentificationCode: (value: string) => any;
|
|
28
|
-
availableDiscountList: any;
|
|
29
|
-
selectedDiscountList: any;
|
|
30
|
-
handleSelectDiscount: (value: number[], option: any) => void;
|
|
31
|
-
customerName: any;
|
|
32
|
-
fetchWalletRecommendList: (params: any) => Promise<any>;
|
|
33
|
-
fetchUserIdentificationCodes: (params: any) => Promise<any>;
|
|
34
|
-
getCachedWalletRecommendList: () => any;
|
|
35
|
-
getCachedUserIdentificationCodes: () => any;
|
|
36
|
-
clearWalletRecommendList: () => void;
|
|
37
|
-
clearUserIdentificationCodes: () => void;
|
|
38
|
-
clearAllCache: () => void;
|
|
39
|
-
handleConfirmEditAmount: (value: number, id: number, data: any) => void;
|
|
40
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ListProps, ResponsiveConfig, ResponsiveWrapperProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* ResponsiveWrapper 响应式包装器组件
|
|
5
|
-
* 根据不同设备类型自动选择合适的配置
|
|
6
|
-
*/
|
|
7
|
-
declare const ResponsiveWrapper: React.FC<ResponsiveWrapperProps>;
|
|
8
|
-
/**
|
|
9
|
-
* 用于创建响应式配置的工具函数
|
|
10
|
-
*/
|
|
11
|
-
export declare const createResponsiveConfig: (overrides?: {
|
|
12
|
-
pc?: Partial<ListProps>;
|
|
13
|
-
pad?: Partial<ListProps>;
|
|
14
|
-
mobile?: Partial<ListProps>;
|
|
15
|
-
}) => ResponsiveConfig;
|
|
16
|
-
export default ResponsiveWrapper;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './EmptyState.less';
|
|
3
|
-
export interface EmptyStateConfig {
|
|
4
|
-
/** 是否显示空状态 */
|
|
5
|
-
show?: boolean;
|
|
6
|
-
/** 空状态文本 */
|
|
7
|
-
text?: string;
|
|
8
|
-
/** 空状态图标 */
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
/** 空状态描述 */
|
|
11
|
-
description?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface EmptyStateProps {
|
|
14
|
-
/** 空状态配置 */
|
|
15
|
-
config: EmptyStateConfig;
|
|
16
|
-
/** 是否有数据 */
|
|
17
|
-
hasData: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const EmptyState: React.FC<EmptyStateProps>;
|
|
20
|
-
export default EmptyState;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ListItemSkeleton.less';
|
|
3
|
-
interface ListItemSkeletonProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
displayStyle?: 'grid' | 'waterfall';
|
|
7
|
-
showImage?: boolean;
|
|
8
|
-
imageWidth?: number;
|
|
9
|
-
imageHeight?: number;
|
|
10
|
-
rows?: number;
|
|
11
|
-
}
|
|
12
|
-
declare const ListItemSkeleton: React.FC<ListItemSkeletonProps>;
|
|
13
|
-
export default ListItemSkeleton;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Pagination.less';
|
|
3
|
-
export interface PaginationProps {
|
|
4
|
-
/** 当前页码 */
|
|
5
|
-
current: number;
|
|
6
|
-
/** 每页条数 */
|
|
7
|
-
pageSize: number;
|
|
8
|
-
/** 数据总数 */
|
|
9
|
-
total?: number;
|
|
10
|
-
/** 总页数 (优先级高于total计算) */
|
|
11
|
-
totalPages?: number;
|
|
12
|
-
/** 页码改变的回调 */
|
|
13
|
-
onChange?: (page: number, pageSize: number) => void;
|
|
14
|
-
/** 每页条数改变的回调 */
|
|
15
|
-
onShowSizeChange?: (current: number, size: number) => void;
|
|
16
|
-
/** 是否显示每页条数选择器 */
|
|
17
|
-
showSizeChanger?: boolean;
|
|
18
|
-
/** 每页条数选择器选项 */
|
|
19
|
-
pageSizeOptions?: string[];
|
|
20
|
-
/** 是否显示快速跳转 */
|
|
21
|
-
showQuickJumper?: boolean;
|
|
22
|
-
/** 是否显示总数 */
|
|
23
|
-
showTotal?: (total: number, range: [number, number]) => React.ReactNode;
|
|
24
|
-
/** 自定义类名 */
|
|
25
|
-
className?: string;
|
|
26
|
-
/** 禁用状态 */
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
}
|
|
29
|
-
declare const Pagination: React.FC<PaginationProps>;
|
|
30
|
-
export default Pagination;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Pagination';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ScrollLoader.less';
|
|
3
|
-
export interface ScrollLoadState {
|
|
4
|
-
canLoadMore: boolean;
|
|
5
|
-
totalLoaded: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ScrollLoaderProps {
|
|
8
|
-
/** 是否正在加载 */
|
|
9
|
-
loading: boolean;
|
|
10
|
-
/** 滚动加载状态 */
|
|
11
|
-
scrollLoadState?: ScrollLoadState | null;
|
|
12
|
-
/** 布局方向 */
|
|
13
|
-
layoutDirection: 'horizontal' | 'vertical';
|
|
14
|
-
/** 分页类型 */
|
|
15
|
-
paginationType: 'all' | 'scroll' | 'pager' | 'more';
|
|
16
|
-
}
|
|
17
|
-
declare const ScrollLoader: React.FC<ScrollLoaderProps>;
|
|
18
|
-
export default ScrollLoader;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TabItem } from '../../types';
|
|
3
|
-
export interface TabProps {
|
|
4
|
-
/** 类名 */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** 样式 */
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
/** 当前激活的tab */
|
|
9
|
-
activeKey?: string;
|
|
10
|
-
/** tab项 */
|
|
11
|
-
items: TabItem[];
|
|
12
|
-
/** tab切换回调 */
|
|
13
|
-
onChange?: (key: string) => void;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './TabSkeleton.less';
|
|
3
|
-
interface TabSkeletonProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
tabCount?: number;
|
|
7
|
-
animated?: boolean;
|
|
8
|
-
tabStyle?: 'switch' | 'anchor';
|
|
9
|
-
}
|
|
10
|
-
declare const TabSkeleton: React.FC<TabSkeletonProps>;
|
|
11
|
-
export default TabSkeleton;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { WaterfallLayout } from '../../hooks/useWaterfall';
|
|
3
|
-
import './WaterfallList.less';
|
|
4
|
-
export interface WaterfallListProps<TItem extends {
|
|
5
|
-
id: string | number;
|
|
6
|
-
height?: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
} = any> {
|
|
9
|
-
/** 瀑布流布局数据 */
|
|
10
|
-
layout: WaterfallLayout<TItem>;
|
|
11
|
-
/** 布局方向 */
|
|
12
|
-
layoutDirection: 'horizontal' | 'vertical';
|
|
13
|
-
/** 列间距 */
|
|
14
|
-
columnGap: number;
|
|
15
|
-
/** 行间距 */
|
|
16
|
-
rowGap: number;
|
|
17
|
-
/** 列数 */
|
|
18
|
-
columns: number;
|
|
19
|
-
/** 行数 */
|
|
20
|
-
rows: number;
|
|
21
|
-
/** 注册元素引用的函数 */
|
|
22
|
-
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
23
|
-
/** 子元素 */
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
/** 自定义渲染函数 */
|
|
26
|
-
renderItem?: (item: TItem, index: number) => ReactNode;
|
|
27
|
-
}
|
|
28
|
-
declare const WaterfallList: <TItem extends {
|
|
29
|
-
id: string | number;
|
|
30
|
-
height?: number | undefined;
|
|
31
|
-
width?: number | undefined;
|
|
32
|
-
} = any>(props: WaterfallListProps<TItem>) => React.ReactElement;
|
|
33
|
-
export default WaterfallList;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { useDevice, getUserAgentInfo } from './useDevice';
|
|
2
|
-
export type { DeviceType, DeviceInfo } from './useDevice';
|
|
3
|
-
export { default as useWaterfall } from './useWaterfall';
|
|
4
|
-
export { useListState } from './useListState';
|
|
5
|
-
export type { ListState, ListAction, UseListStateProps, UseListStateReturn } from './useListState';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare type DeviceType = 'pc' | 'pad' | 'mobile';
|
|
2
|
-
export interface DeviceInfo {
|
|
3
|
-
type: DeviceType;
|
|
4
|
-
isMobile: boolean;
|
|
5
|
-
isPad: boolean;
|
|
6
|
-
isPc: boolean;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 设备检测Hook
|
|
12
|
-
* 根据屏幕宽度和用户代理判断当前设备类型
|
|
13
|
-
*/
|
|
14
|
-
export declare const useDevice: () => DeviceInfo;
|
|
15
|
-
/**
|
|
16
|
-
* 获取用户代理信息
|
|
17
|
-
* @returns 用户代理相关信息
|
|
18
|
-
*/
|
|
19
|
-
export declare const getUserAgentInfo: () => {
|
|
20
|
-
isMobileUA: boolean;
|
|
21
|
-
isTabletUA: boolean;
|
|
22
|
-
isDesktopUA: boolean;
|
|
23
|
-
userAgent: string;
|
|
24
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { TabItem, LoadDataParams } from '../types';
|
|
2
|
-
export interface ListState {
|
|
3
|
-
activeTab: string;
|
|
4
|
-
currentPage: number;
|
|
5
|
-
isStickyActive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListAction = {
|
|
8
|
-
type: 'SET_ACTIVE_TAB';
|
|
9
|
-
payload: string;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'SET_CURRENT_PAGE';
|
|
12
|
-
payload: number;
|
|
13
|
-
} | {
|
|
14
|
-
type: 'SET_STICKY_ACTIVE';
|
|
15
|
-
payload: boolean;
|
|
16
|
-
} | {
|
|
17
|
-
type: 'RESET_PAGE';
|
|
18
|
-
};
|
|
19
|
-
export interface UseListStateProps {
|
|
20
|
-
/** 外部传入的当前页码 */
|
|
21
|
-
externalCurrentPage?: number;
|
|
22
|
-
/** tab数据 */
|
|
23
|
-
tabItems: TabItem[];
|
|
24
|
-
/** 默认页面大小 */
|
|
25
|
-
defaultPageSize: number;
|
|
26
|
-
/** 数据加载回调 */
|
|
27
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
-
}
|
|
29
|
-
export interface UseListStateReturn {
|
|
30
|
-
state: ListState;
|
|
31
|
-
setActiveTab: (tab: string) => void;
|
|
32
|
-
setCurrentPage: (page: number) => void;
|
|
33
|
-
setStickyActive: (active: boolean) => void;
|
|
34
|
-
resetPage: () => void;
|
|
35
|
-
handleTabChange: (key: string) => void;
|
|
36
|
-
handlePageChange: (page: number, size?: number) => void;
|
|
37
|
-
handleShowSizeChange: (current: number, size: number) => void;
|
|
38
|
-
handleLoadMore: () => void;
|
|
39
|
-
handleViewLess: () => void;
|
|
40
|
-
handleScrollLoad: () => void;
|
|
41
|
-
actualCurrentPage: number;
|
|
42
|
-
}
|
|
43
|
-
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface WaterfallItem {
|
|
2
|
-
id: string | number;
|
|
3
|
-
data: any;
|
|
4
|
-
height?: number;
|
|
5
|
-
width?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface WaterfallTrack<T = any> {
|
|
8
|
-
items: T[];
|
|
9
|
-
size: number;
|
|
10
|
-
}
|
|
11
|
-
export interface WaterfallLayoutOptions {
|
|
12
|
-
tracks: number;
|
|
13
|
-
trackGap: number;
|
|
14
|
-
itemGap: number;
|
|
15
|
-
direction: 'vertical' | 'horizontal';
|
|
16
|
-
}
|
|
17
|
-
export interface WaterfallLayout<T = any> {
|
|
18
|
-
tracks: WaterfallTrack<T>[];
|
|
19
|
-
totalSize: number;
|
|
20
|
-
}
|
|
21
|
-
export declare const useWaterfall: <T extends {
|
|
22
|
-
id: string | number;
|
|
23
|
-
height?: number | undefined;
|
|
24
|
-
width?: number | undefined;
|
|
25
|
-
}>(items: T[], options: WaterfallLayoutOptions) => {
|
|
26
|
-
layout: WaterfallLayout<T>;
|
|
27
|
-
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
28
|
-
measureItemSize: (id: string | number) => {
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
};
|
|
32
|
-
recalculateLayout: () => void;
|
|
33
|
-
};
|
|
34
|
-
export default useWaterfall;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { default } from './List';
|
|
2
|
-
export { default as ResponsiveList, createResponsiveConfig } from './ResponsiveWrapper';
|
|
3
|
-
export { default as TestResponsiveWrapper } from './TestResponsiveWrapper';
|
|
4
|
-
export { default as Pagination } from './components/Pagination';
|
|
5
|
-
export { default as Tab } from './components/Tab';
|
|
6
|
-
export { useDevice, getUserAgentInfo } from './hooks/useDevice';
|
|
7
|
-
export { default as TestList } from './TestResponsiveWrapper';
|
|
8
|
-
export type { ListProps, BaseListItem, EmptyStateConfig, PaginationInfo, LayoutConfig, TabConfig, PaginationConfig, LegacyListProps, TabItem, ResponsiveProps, ResponsiveWrapperProps, DeviceType, DeviceInfo, LoadMoreParams, LoadDataParams, LoadDataTrigger } from './types';
|
|
9
|
-
export type { TabProps } from './components/Tab';
|
|
10
|
-
export type { PaginationProps } from './components/Pagination/Pagination';
|