@pisell/private-materials 6.6.1 → 6.6.3
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/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +1 -10
- 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 +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +13 -11
- 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/model.d.ts +1 -9
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +37 -39
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +1 -10
- 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 +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -1
- 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/model.d.ts +1 -9
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +16 -30
- package/package.json +1 -1
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
-
}
|
|
6
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
-
state: RechargeState;
|
|
8
|
-
} & {
|
|
9
|
-
dispatch: (params: {
|
|
10
|
-
type: string;
|
|
11
|
-
payload: any;
|
|
12
|
-
}) => void;
|
|
13
|
-
}>;
|
|
14
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
selectedGiftOptionId: string | null;
|
|
4
|
-
cardList: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
price: number;
|
|
8
|
-
}>;
|
|
9
|
-
selectedItem: {
|
|
10
|
-
id?: string;
|
|
11
|
-
gift_price?: number;
|
|
12
|
-
price?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
variant_id?: string;
|
|
15
|
-
};
|
|
16
|
-
productId?: string;
|
|
17
|
-
detailId?: string;
|
|
18
|
-
total: string | number;
|
|
19
|
-
rechargeModalOpen: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
-
state: RechargeState;
|
|
23
|
-
} & {
|
|
24
|
-
dispatch: (params: {
|
|
25
|
-
type: string;
|
|
26
|
-
payload: any;
|
|
27
|
-
}) => void;
|
|
28
|
-
}>;
|
|
29
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: 0;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IWalletListItemProps } from './serve';
|
|
3
2
|
export interface WalletCardItemProps {
|
|
4
3
|
id: string;
|
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
|
27
26
|
currentSearchListItemCode?: string;
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}
|
|
30
|
-
export declare const Provider:
|
|
31
|
-
global_wallet: WalletListProps;
|
|
32
|
-
} & {
|
|
33
|
-
dispatch: (params: {
|
|
34
|
-
type: string;
|
|
35
|
-
payload: any;
|
|
36
|
-
}) => void;
|
|
37
|
-
}>;
|
|
29
|
+
export declare const Provider: any, Context: any;
|
|
@@ -38,6 +38,7 @@ var import_dayjs = __toESM(require("dayjs"));
|
|
|
38
38
|
var import_materials = require("@pisell/materials");
|
|
39
39
|
var import_antd = require("antd");
|
|
40
40
|
var import_utils = require("@pisell/utils");
|
|
41
|
+
var import_dateRange = require("../../components/booking/info/dateRange");
|
|
41
42
|
var import_MultiDayTimeSelect = require("./MultiDayTimeSelect.less");
|
|
42
43
|
var RangePicker = import_materials.DatePicker.RangePicker;
|
|
43
44
|
var MultiDayTimeSelect = (0, import_react.forwardRef)(({
|
|
@@ -72,8 +73,16 @@ var MultiDayTimeSelect = (0, import_react.forwardRef)(({
|
|
|
72
73
|
value: i
|
|
73
74
|
});
|
|
74
75
|
}
|
|
76
|
+
const currentDuration = internalValue == null ? void 0 : internalValue.duration;
|
|
77
|
+
if (currentDuration && currentDuration > maxDays) {
|
|
78
|
+
options.push({
|
|
79
|
+
label: `${currentDuration} ${currentDuration === 1 ? locale === "en" ? "day" : "天" : locale === "en" ? "days" : "天"}`,
|
|
80
|
+
value: currentDuration,
|
|
81
|
+
disabled: true
|
|
82
|
+
});
|
|
83
|
+
}
|
|
75
84
|
return options;
|
|
76
|
-
}, [maxDays, locale]);
|
|
85
|
+
}, [maxDays, locale, internalValue == null ? void 0 : internalValue.duration]);
|
|
77
86
|
(0, import_react.useEffect)(() => {
|
|
78
87
|
if (value) {
|
|
79
88
|
setInternalValue(value);
|
|
@@ -110,17 +119,6 @@ var MultiDayTimeSelect = (0, import_react.forwardRef)(({
|
|
|
110
119
|
const days = dates[1].diff(dates[0], "day");
|
|
111
120
|
let finalEndDate = dates[1];
|
|
112
121
|
let finalDuration = days;
|
|
113
|
-
if (days > maxDays) {
|
|
114
|
-
const endTime = {
|
|
115
|
-
hour: dates[1].hour(),
|
|
116
|
-
minute: dates[1].minute(),
|
|
117
|
-
second: dates[1].second(),
|
|
118
|
-
millisecond: dates[1].millisecond()
|
|
119
|
-
};
|
|
120
|
-
finalEndDate = dates[0].add(maxDays, "day");
|
|
121
|
-
finalEndDate = finalEndDate.hour(endTime.hour).minute(endTime.minute).second(endTime.second).millisecond(endTime.millisecond);
|
|
122
|
-
finalDuration = maxDays;
|
|
123
|
-
}
|
|
124
122
|
if (days > 0) {
|
|
125
123
|
const newValue = {
|
|
126
124
|
startDate: dates[0],
|
|
@@ -162,29 +160,16 @@ var MultiDayTimeSelect = (0, import_react.forwardRef)(({
|
|
|
162
160
|
const handleEndDateChange = (date) => {
|
|
163
161
|
if (date && internalValue) {
|
|
164
162
|
const days = date.diff(internalValue.startDate, "day");
|
|
165
|
-
let finalEndDate = date;
|
|
166
|
-
let finalDuration = days;
|
|
167
|
-
if (days > maxDays) {
|
|
168
|
-
const endTime = {
|
|
169
|
-
hour: date.hour(),
|
|
170
|
-
minute: date.minute(),
|
|
171
|
-
second: date.second(),
|
|
172
|
-
millisecond: date.millisecond()
|
|
173
|
-
};
|
|
174
|
-
finalEndDate = internalValue.startDate.add(maxDays, "day");
|
|
175
|
-
finalEndDate = finalEndDate.hour(endTime.hour).minute(endTime.minute).second(endTime.second).millisecond(endTime.millisecond);
|
|
176
|
-
finalDuration = maxDays;
|
|
177
|
-
}
|
|
178
163
|
if (days > 0) {
|
|
179
164
|
const newValue = {
|
|
180
165
|
startDate: internalValue.startDate,
|
|
181
|
-
endDate:
|
|
182
|
-
duration:
|
|
166
|
+
endDate: date,
|
|
167
|
+
duration: days
|
|
183
168
|
};
|
|
184
169
|
updateValue(newValue);
|
|
185
170
|
form.setFieldsValue({
|
|
186
|
-
endDate:
|
|
187
|
-
duration:
|
|
171
|
+
endDate: date,
|
|
172
|
+
duration: days
|
|
188
173
|
});
|
|
189
174
|
}
|
|
190
175
|
}
|
|
@@ -278,7 +263,8 @@ var MultiDayTimeSelect = (0, import_react.forwardRef)(({
|
|
|
278
263
|
format: formatLocale,
|
|
279
264
|
isHideCustomSelect: true,
|
|
280
265
|
endDateDays: 1,
|
|
281
|
-
disabled
|
|
266
|
+
disabled,
|
|
267
|
+
disabledDate: import_dateRange.disabledDate
|
|
282
268
|
}
|
|
283
269
|
))
|
|
284
270
|
)), /* @__PURE__ */ import_react.default.createElement(
|