@pisell/private-materials 6.11.22 → 6.11.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/Lists.js +3 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/components/productSelect/locales.d.ts +10 -0
- package/es/components/productSelect/locales.js +15 -5
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/plus/productSelect/locales.d.ts +10 -0
- package/es/plus/productSelect/locales.js +15 -5
- 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/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/Lists.js +2 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- 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/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/components/productSelect/locales.d.ts +10 -0
- package/lib/components/productSelect/locales.js +15 -5
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lib/plus/productSelect/locales.d.ts +10 -0
- package/lib/plus/productSelect/locales.js +15 -5
- package/package.json +2 -2
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -13,6 +13,7 @@ import useHolderConfig from "../hooks/useHolderConfig";
|
|
|
13
13
|
import { useMemoizedFn } from 'ahooks';
|
|
14
14
|
import { getProductExtend } from "../../info2/service/addService/utils";
|
|
15
15
|
import useAddHolder from "../hooks/useAddHolder";
|
|
16
|
+
import { locales } from "@pisell/utils";
|
|
16
17
|
var Lists = function Lists(_ref) {
|
|
17
18
|
var _state$service2;
|
|
18
19
|
var onEdit = _ref.onEdit,
|
|
@@ -133,7 +134,8 @@ var Lists = function Lists(_ref) {
|
|
|
133
134
|
return onChange({
|
|
134
135
|
addModal: true
|
|
135
136
|
});
|
|
136
|
-
}
|
|
137
|
+
},
|
|
138
|
+
emptyText: locales.getText('pisell2.text.shopping-cart.no.selected')
|
|
137
139
|
// onActiveKey={handleActiveKey}
|
|
138
140
|
// collapseParams={CollapseParams}
|
|
139
141
|
,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -110,4 +111,11 @@ export declare const walkInData: {
|
|
|
110
111
|
id: number;
|
|
111
112
|
nickname: string;
|
|
112
113
|
};
|
|
113
|
-
export declare const Provider: any, Context:
|
|
114
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
115
|
+
state: FormState;
|
|
116
|
+
} & {
|
|
117
|
+
dispatch: (params: {
|
|
118
|
+
type: string;
|
|
119
|
+
payload: any;
|
|
120
|
+
}) => void;
|
|
121
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -173,10 +173,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
173
173
|
export declare const getDuration: (duration: number | {
|
|
174
174
|
type: string;
|
|
175
175
|
value: number;
|
|
176
|
-
}) => number |
|
|
176
|
+
}) => number | {
|
|
177
177
|
type: string;
|
|
178
178
|
value: number;
|
|
179
|
-
};
|
|
179
|
+
} | "flexible";
|
|
180
180
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
181
181
|
export declare const getIsEdit: (state: any) => boolean;
|
|
182
182
|
export {};
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
|
|
|
178
178
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
179
179
|
type: EActionTypes;
|
|
180
180
|
payload: {
|
|
181
|
-
status: "loading" | "
|
|
181
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
/**
|
|
@@ -299,20 +299,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
299
299
|
name?: string | undefined;
|
|
300
300
|
symbol?: string | undefined;
|
|
301
301
|
amount?: string | number | undefined;
|
|
302
|
-
mode?: "refund" | "
|
|
302
|
+
mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
|
|
303
303
|
order_id?: string | number | undefined;
|
|
304
|
-
eftpos?: "
|
|
305
|
-
action?: "
|
|
304
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
|
|
305
|
+
action?: "amount" | "deviceList" | "pay" | undefined;
|
|
306
306
|
key?: number | undefined;
|
|
307
307
|
step?: number | undefined;
|
|
308
308
|
title?: string | undefined;
|
|
309
309
|
subTitle?: string | undefined;
|
|
310
|
-
type?: "
|
|
310
|
+
type?: "step" | "unset" | undefined;
|
|
311
311
|
render?: boolean | undefined;
|
|
312
312
|
net?: boolean | undefined;
|
|
313
313
|
component?: string | undefined;
|
|
314
314
|
form?: string | undefined;
|
|
315
|
-
status?: "loading" | "
|
|
315
|
+
status?: "loading" | "warn" | "success" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
316
316
|
warn?: string | undefined;
|
|
317
317
|
steps?: {
|
|
318
318
|
/** 用于重置当前步骤 */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -30,4 +31,11 @@ export interface PayGroup {
|
|
|
30
31
|
front_order_uuid?: string;
|
|
31
32
|
orderDetail: any;
|
|
32
33
|
}
|
|
33
|
-
export declare const Provider: any, Context:
|
|
34
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
35
|
+
state: FormState;
|
|
36
|
+
} & {
|
|
37
|
+
dispatch: (params: {
|
|
38
|
+
type: string;
|
|
39
|
+
payload: any;
|
|
40
|
+
}) => void;
|
|
41
|
+
}>;
|
|
@@ -8,6 +8,7 @@ import React, { useMemo } from 'react';
|
|
|
8
8
|
import { PisellText } from '@pisell/materials';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
11
|
+
import locales from "../../locales";
|
|
11
12
|
var index = function index(props) {
|
|
12
13
|
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3;
|
|
13
14
|
var context = useEngineContext();
|
|
@@ -15,10 +16,13 @@ var index = function index(props) {
|
|
|
15
16
|
var locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
|
|
16
17
|
var _useMemo = useMemo(function () {
|
|
17
18
|
if (!props.isMini) return ['', ''];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
|
|
20
|
+
// 获取翻译文本
|
|
21
|
+
var localText = locales[locale] || locales.en;
|
|
22
|
+
var prefixText = localText['pisell2.product-select.price.prefix'] || '';
|
|
23
|
+
var suffixText = localText['pisell2.product-select.price.suffix'] || '';
|
|
24
|
+
return [prefixText, suffixText];
|
|
25
|
+
}, [props.isMini, locale]),
|
|
22
26
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
23
27
|
_prefix = _useMemo2[0],
|
|
24
28
|
_suffix = _useMemo2[1];
|
|
@@ -3,26 +3,36 @@ declare const _default: {
|
|
|
3
3
|
'pisell2.product-select.search': string;
|
|
4
4
|
'pisell2.product-select.stock': string;
|
|
5
5
|
'pisell2.product-select.empty': string;
|
|
6
|
+
'pisell2.product-select.price.prefix': string;
|
|
7
|
+
'pisell2.product-select.price.suffix': string;
|
|
6
8
|
};
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': string;
|
|
9
11
|
'pisell2.product-select.stock': string;
|
|
10
12
|
'pisell2.product-select.empty': string;
|
|
13
|
+
'pisell2.product-select.price.prefix': string;
|
|
14
|
+
'pisell2.product-select.price.suffix': string;
|
|
11
15
|
};
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': string;
|
|
14
18
|
'pisell2.product-select.stock': string;
|
|
15
19
|
'pisell2.product-select.empty': string;
|
|
20
|
+
'pisell2.product-select.price.prefix': string;
|
|
21
|
+
'pisell2.product-select.price.suffix': string;
|
|
16
22
|
};
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': string;
|
|
19
25
|
'pisell2.product-select.stock': string;
|
|
20
26
|
'pisell2.product-select.empty': string;
|
|
27
|
+
'pisell2.product-select.price.prefix': string;
|
|
28
|
+
'pisell2.product-select.price.suffix': string;
|
|
21
29
|
};
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': string;
|
|
24
32
|
'pisell2.product-select.stock': string;
|
|
25
33
|
'pisell2.product-select.empty': string;
|
|
34
|
+
'pisell2.product-select.price.prefix': string;
|
|
35
|
+
'pisell2.product-select.price.suffix': string;
|
|
26
36
|
};
|
|
27
37
|
};
|
|
28
38
|
export default _default;
|
|
@@ -2,26 +2,36 @@ export default {
|
|
|
2
2
|
en: {
|
|
3
3
|
'pisell2.product-select.search': 'Search',
|
|
4
4
|
'pisell2.product-select.stock': 'Stock',
|
|
5
|
-
'pisell2.product-select.empty': 'No Data'
|
|
5
|
+
'pisell2.product-select.empty': 'No Data',
|
|
6
|
+
'pisell2.product-select.price.prefix': 'From',
|
|
7
|
+
'pisell2.product-select.price.suffix': ''
|
|
6
8
|
},
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': '搜索',
|
|
9
11
|
'pisell2.product-select.stock': '库存',
|
|
10
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
12
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
13
|
+
'pisell2.product-select.price.prefix': '',
|
|
14
|
+
'pisell2.product-select.price.suffix': '起'
|
|
11
15
|
},
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': '搜索',
|
|
14
18
|
'pisell2.product-select.stock': '庫存',
|
|
15
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
19
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
20
|
+
'pisell2.product-select.price.prefix': '',
|
|
21
|
+
'pisell2.product-select.price.suffix': '起'
|
|
16
22
|
},
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': '検索',
|
|
19
25
|
'pisell2.product-select.stock': '在庫',
|
|
20
|
-
'pisell2.product-select.empty': 'データがありません'
|
|
26
|
+
'pisell2.product-select.empty': 'データがありません',
|
|
27
|
+
'pisell2.product-select.price.prefix': '',
|
|
28
|
+
'pisell2.product-select.price.suffix': 'から'
|
|
21
29
|
},
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': 'Pesquisar',
|
|
24
32
|
'pisell2.product-select.stock': 'Estoque',
|
|
25
|
-
'pisell2.product-select.empty': 'Sem Dados'
|
|
33
|
+
'pisell2.product-select.empty': 'Sem Dados',
|
|
34
|
+
'pisell2.product-select.price.prefix': 'A partir de',
|
|
35
|
+
'pisell2.product-select.price.suffix': ''
|
|
26
36
|
}
|
|
27
37
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -8,6 +8,7 @@ import React, { useMemo } from 'react';
|
|
|
8
8
|
import { PisellText } from '@pisell/materials';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
11
|
+
import locales from "../../locales";
|
|
11
12
|
import "./index.less";
|
|
12
13
|
var index = function index(props) {
|
|
13
14
|
var _context$appHelper$ut;
|
|
@@ -18,10 +19,13 @@ var index = function index(props) {
|
|
|
18
19
|
var locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
|
|
19
20
|
var _useMemo = useMemo(function () {
|
|
20
21
|
if (!props.isMini) return ['', ''];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
|
|
23
|
+
// 获取翻译文本
|
|
24
|
+
var localText = locales[locale] || locales.en;
|
|
25
|
+
var prefixText = customPrefixText || localText['pisell2.product-select.price.prefix'] || 'From';
|
|
26
|
+
var suffixText = customSuffixText || localText['pisell2.product-select.price.suffix'] || '';
|
|
27
|
+
return [prefixText, suffixText];
|
|
28
|
+
}, [props.isMini, customPrefixText, customSuffixText, locale]),
|
|
25
29
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
26
30
|
_prefix = _useMemo2[0],
|
|
27
31
|
_suffix = _useMemo2[1];
|
|
@@ -3,26 +3,36 @@ declare const _default: {
|
|
|
3
3
|
'pisell2.product-select.search': string;
|
|
4
4
|
'pisell2.product-select.stock': string;
|
|
5
5
|
'pisell2.product-select.empty': string;
|
|
6
|
+
'pisell2.product-select.price.prefix': string;
|
|
7
|
+
'pisell2.product-select.price.suffix': string;
|
|
6
8
|
};
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': string;
|
|
9
11
|
'pisell2.product-select.stock': string;
|
|
10
12
|
'pisell2.product-select.empty': string;
|
|
13
|
+
'pisell2.product-select.price.prefix': string;
|
|
14
|
+
'pisell2.product-select.price.suffix': string;
|
|
11
15
|
};
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': string;
|
|
14
18
|
'pisell2.product-select.stock': string;
|
|
15
19
|
'pisell2.product-select.empty': string;
|
|
20
|
+
'pisell2.product-select.price.prefix': string;
|
|
21
|
+
'pisell2.product-select.price.suffix': string;
|
|
16
22
|
};
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': string;
|
|
19
25
|
'pisell2.product-select.stock': string;
|
|
20
26
|
'pisell2.product-select.empty': string;
|
|
27
|
+
'pisell2.product-select.price.prefix': string;
|
|
28
|
+
'pisell2.product-select.price.suffix': string;
|
|
21
29
|
};
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': string;
|
|
24
32
|
'pisell2.product-select.stock': string;
|
|
25
33
|
'pisell2.product-select.empty': string;
|
|
34
|
+
'pisell2.product-select.price.prefix': string;
|
|
35
|
+
'pisell2.product-select.price.suffix': string;
|
|
26
36
|
};
|
|
27
37
|
};
|
|
28
38
|
export default _default;
|
|
@@ -2,26 +2,36 @@ export default {
|
|
|
2
2
|
en: {
|
|
3
3
|
'pisell2.product-select.search': 'Search',
|
|
4
4
|
'pisell2.product-select.stock': 'Stock',
|
|
5
|
-
'pisell2.product-select.empty': 'No Data'
|
|
5
|
+
'pisell2.product-select.empty': 'No Data',
|
|
6
|
+
'pisell2.product-select.price.prefix': 'From',
|
|
7
|
+
'pisell2.product-select.price.suffix': ''
|
|
6
8
|
},
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': '搜索',
|
|
9
11
|
'pisell2.product-select.stock': '库存',
|
|
10
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
12
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
13
|
+
'pisell2.product-select.price.prefix': '',
|
|
14
|
+
'pisell2.product-select.price.suffix': '起'
|
|
11
15
|
},
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': '搜索',
|
|
14
18
|
'pisell2.product-select.stock': '庫存',
|
|
15
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
19
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
20
|
+
'pisell2.product-select.price.prefix': '',
|
|
21
|
+
'pisell2.product-select.price.suffix': '起'
|
|
16
22
|
},
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': '検索',
|
|
19
25
|
'pisell2.product-select.stock': '在庫',
|
|
20
|
-
'pisell2.product-select.empty': 'データなし'
|
|
26
|
+
'pisell2.product-select.empty': 'データなし',
|
|
27
|
+
'pisell2.product-select.price.prefix': '',
|
|
28
|
+
'pisell2.product-select.price.suffix': 'から'
|
|
21
29
|
},
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': 'Pesquisar',
|
|
24
32
|
'pisell2.product-select.stock': 'Estoque',
|
|
25
|
-
'pisell2.product-select.empty': 'Sem Dados'
|
|
33
|
+
'pisell2.product-select.empty': 'Sem Dados',
|
|
34
|
+
'pisell2.product-select.price.prefix': 'A partir de',
|
|
35
|
+
'pisell2.product-select.price.suffix': ''
|
|
26
36
|
}
|
|
27
37
|
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -41,6 +41,7 @@ var import_useHolderConfig = __toESM(require("../hooks/useHolderConfig"));
|
|
|
41
41
|
var import_ahooks = require("ahooks");
|
|
42
42
|
var import_utils2 = require("../../info2/service/addService/utils");
|
|
43
43
|
var import_useAddHolder = __toESM(require("../hooks/useAddHolder"));
|
|
44
|
+
var import_utils3 = require("@pisell/utils");
|
|
44
45
|
var Lists = ({ onEdit, onChange, onAction, isParallelResource, isShowDelete = true, isShowAmountFooter = true }) => {
|
|
45
46
|
var _a;
|
|
46
47
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
@@ -132,6 +133,7 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource, isShowDelete = tr
|
|
|
132
133
|
isOpenGroup: false,
|
|
133
134
|
isHideClearCart: true,
|
|
134
135
|
onAddProduct: () => onChange({ addModal: true }),
|
|
136
|
+
emptyText: import_utils3.locales.getText("pisell2.text.shopping-cart.no.selected"),
|
|
135
137
|
productParams: {
|
|
136
138
|
...productParams,
|
|
137
139
|
products
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -110,4 +111,11 @@ export declare const walkInData: {
|
|
|
110
111
|
id: number;
|
|
111
112
|
nickname: string;
|
|
112
113
|
};
|
|
113
|
-
export declare const Provider: any, Context:
|
|
114
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
115
|
+
state: FormState;
|
|
116
|
+
} & {
|
|
117
|
+
dispatch: (params: {
|
|
118
|
+
type: string;
|
|
119
|
+
payload: any;
|
|
120
|
+
}) => void;
|
|
121
|
+
}>;
|