@pisell/private-materials 6.2.18 → 6.2.19
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 +8 -8
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- 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/customSelect/index.js +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/editBookingModal/index.js +29 -58
- package/es/components/booking/editBookingModal/serve.d.ts +0 -1
- package/es/components/booking/editBookingModal/serve.js +11 -19
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.js +11 -8
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/client/index.js +3 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.js +36 -26
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +20 -21
- package/es/components/booking/info2/index.js +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +7 -4
- package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/es/components/booking/info2/service/editService/index.js +258 -165
- package/es/components/booking/info2/service/index.js +19 -15
- package/es/components/booking/materiels/duration/index.js +9 -2
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -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/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/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.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/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.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/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- 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.d.ts +1 -0
- 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/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- 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/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- 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.d.ts +1 -0
- 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.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +48 -41
- package/es/components/shoppingCart/components/Cart/index.js +21 -18
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +177 -157
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +78 -71
- 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/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/editBookingModal/index.js +21 -56
- package/lib/components/booking/editBookingModal/serve.d.ts +0 -1
- package/lib/components/booking/editBookingModal/serve.js +6 -12
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.js +5 -4
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.js +35 -23
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +5 -3
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/lib/components/booking/info2/service/editService/index.js +132 -70
- package/lib/components/booking/info2/service/index.js +13 -9
- package/lib/components/booking/materiels/duration/index.js +7 -2
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- 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/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.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/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/eventBooking/components/scheduleCalendar/calendarItem.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/SDK.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/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
- package/lib/components/shoppingCart/components/Cart/index.js +18 -15
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +145 -127
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
- 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/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +4 -4
@@ -48,7 +48,7 @@ var import_utils6 = require("../../utils");
|
|
48
48
|
var import_notAvailable = __toESM(require("../notAvailable"));
|
49
49
|
var import_dayjs = __toESM(require("dayjs"));
|
50
50
|
var AddSerivce = (props) => {
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
52
52
|
const { onEdit, state, dispatch, renderMode = "current" } = props;
|
53
53
|
const [loading, setLoading] = (0, import_react.useState)(true);
|
54
54
|
const context = (0, import_useEngineContext.default)();
|
@@ -221,10 +221,153 @@ var AddSerivce = (props) => {
|
|
221
221
|
const isEject = (0, import_utils2.getIsEject)(item, type);
|
222
222
|
const isOnlySession = (0, import_utils2.getIsOnlySession)(item);
|
223
223
|
let lock = false;
|
224
|
+
let cacheValues = null;
|
224
225
|
if (isEject) {
|
225
226
|
setCurrentProduct(item);
|
226
227
|
} else {
|
227
228
|
setCurrentProduct(null);
|
229
|
+
if (!isSession) {
|
230
|
+
cacheValues = {
|
231
|
+
bundle: [],
|
232
|
+
key: item.id,
|
233
|
+
option: [],
|
234
|
+
product_id: item.id,
|
235
|
+
product_variant_id: 0,
|
236
|
+
quantity: 1,
|
237
|
+
rowKey: item.id,
|
238
|
+
session: null,
|
239
|
+
unique: "08974625397"
|
240
|
+
};
|
241
|
+
}
|
242
|
+
}
|
243
|
+
const callback = async (e, extension_type, detail) => {
|
244
|
+
var _a3, _b2, _c2, _d2, _e2, _f2, _g2;
|
245
|
+
setCurrentProduct(null);
|
246
|
+
if (lock) {
|
247
|
+
return;
|
248
|
+
}
|
249
|
+
lock = true;
|
250
|
+
setTimeout(() => {
|
251
|
+
lock = false;
|
252
|
+
}, 2e3);
|
253
|
+
if (!isBooking4) {
|
254
|
+
const data = await createBookingData({
|
255
|
+
product: { ...detail || item, _params: e }
|
256
|
+
});
|
257
|
+
createBooking({ booking: data });
|
258
|
+
return;
|
259
|
+
}
|
260
|
+
const _detail = detail || item;
|
261
|
+
const other = JSON.parse(JSON.stringify(e));
|
262
|
+
other.session = e.session;
|
263
|
+
let cacheItem = {
|
264
|
+
..._detail,
|
265
|
+
product_id: item.id,
|
266
|
+
_id: (0, import_utils.getUniqueId)(),
|
267
|
+
_key: e.key,
|
268
|
+
_extend: {
|
269
|
+
start_date: state.date.value,
|
270
|
+
quantity: (e == null ? void 0 : e.quantity) || 1,
|
271
|
+
price: _detail.price,
|
272
|
+
product_name: item.title,
|
273
|
+
other
|
274
|
+
},
|
275
|
+
new: 1
|
276
|
+
};
|
277
|
+
let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
|
278
|
+
cacheItem._extend.total = _total;
|
279
|
+
cacheItem._extend.origin_total = _total;
|
280
|
+
const _isEdit = !!state.service.cacheItem;
|
281
|
+
if (_isEdit) {
|
282
|
+
cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
|
283
|
+
cacheItem.new = 0;
|
284
|
+
}
|
285
|
+
if (renderMode === "current") {
|
286
|
+
cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
|
287
|
+
}
|
288
|
+
cacheItem = (0, import_utils3.getProductExtend)({
|
289
|
+
cacheItem,
|
290
|
+
state,
|
291
|
+
isDisabledTime: true
|
292
|
+
});
|
293
|
+
if (state.renderType === "eventBooking") {
|
294
|
+
cacheItem.autoClose = false;
|
295
|
+
}
|
296
|
+
if (cacheItem.autoClose) {
|
297
|
+
cacheItem.autoClose = false;
|
298
|
+
cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
|
299
|
+
let { list: _list, quantity } = (0, import_utils6.addService)(
|
300
|
+
[...state.service.value],
|
301
|
+
cacheItem,
|
302
|
+
state
|
303
|
+
);
|
304
|
+
(_b2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _b2.call(
|
305
|
+
Toast,
|
306
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-title" }, cacheItem.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-quantity" }, import_utils.locales.getText("pisell2.ticket-booking.in-cart")(
|
307
|
+
quantity || 1
|
308
|
+
)))
|
309
|
+
);
|
310
|
+
(0, import_utils6.addServiceScroll)(e.rowKey, cacheItem);
|
311
|
+
try {
|
312
|
+
if (((_g2 = (_f2 = (_e2 = (_d2 = (_c2 = context.appHelper.utils.store) == null ? void 0 : _c2.getState) == null ? void 0 : _d2.call(_c2)) == null ? void 0 : _e2.global) == null ? void 0 : _f2.globalConfig) == null ? void 0 : _g2.id) === 2155) {
|
313
|
+
const val = _list == null ? void 0 : _list.map((s) => {
|
314
|
+
return {
|
315
|
+
product_id: s == null ? void 0 : s.product_id,
|
316
|
+
detailId: s == null ? void 0 : s.id,
|
317
|
+
detailProductId: s == null ? void 0 : s.product_id,
|
318
|
+
product_name: s == null ? void 0 : s.title,
|
319
|
+
price: s == null ? void 0 : s.price,
|
320
|
+
_id: s == null ? void 0 : s._id,
|
321
|
+
_key: s == null ? void 0 : s._key,
|
322
|
+
_serviceKey: s == null ? void 0 : s._serviceKey
|
323
|
+
};
|
324
|
+
});
|
325
|
+
const sendData = {
|
326
|
+
product_id: item == null ? void 0 : item.id,
|
327
|
+
detailId: _detail == null ? void 0 : _detail.id,
|
328
|
+
detailProductId: _detail == null ? void 0 : _detail.product_id,
|
329
|
+
product_name: item == null ? void 0 : item.title,
|
330
|
+
price: _detail == null ? void 0 : _detail.price,
|
331
|
+
serviceVal: val
|
332
|
+
};
|
333
|
+
(0, import_utils.sendWarningLog)({
|
334
|
+
title: "addService",
|
335
|
+
content: [
|
336
|
+
{ key: "添加数据", value: JSON.stringify(sendData) },
|
337
|
+
{
|
338
|
+
key: "日期",
|
339
|
+
value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
|
340
|
+
}
|
341
|
+
]
|
342
|
+
});
|
343
|
+
}
|
344
|
+
} catch (error) {
|
345
|
+
}
|
346
|
+
dispatch({
|
347
|
+
type: "setService",
|
348
|
+
payload: {
|
349
|
+
addModal: false,
|
350
|
+
value: _list,
|
351
|
+
edit: true,
|
352
|
+
changeService: false
|
353
|
+
}
|
354
|
+
});
|
355
|
+
} else {
|
356
|
+
dispatch({
|
357
|
+
type: "setService",
|
358
|
+
payload: {
|
359
|
+
editModal: true,
|
360
|
+
cacheItem,
|
361
|
+
addModal: !cacheItem.autoClose,
|
362
|
+
changeService: false
|
363
|
+
}
|
364
|
+
});
|
365
|
+
onEdit == null ? void 0 : onEdit(cacheItem);
|
366
|
+
}
|
367
|
+
};
|
368
|
+
if (cacheValues) {
|
369
|
+
callback(cacheValues, "", item);
|
370
|
+
return;
|
228
371
|
}
|
229
372
|
state.action({
|
230
373
|
type: "pisell1.handleOpenProductModal",
|
@@ -246,131 +389,7 @@ var AddSerivce = (props) => {
|
|
246
389
|
onCancel: () => {
|
247
390
|
setCurrentProduct(null);
|
248
391
|
},
|
249
|
-
callback
|
250
|
-
var _a3, _b2, _c2, _d2, _e2, _f2, _g2;
|
251
|
-
setCurrentProduct(null);
|
252
|
-
if (lock) {
|
253
|
-
return;
|
254
|
-
}
|
255
|
-
lock = true;
|
256
|
-
setTimeout(() => {
|
257
|
-
lock = false;
|
258
|
-
}, 2e3);
|
259
|
-
if (!isBooking4) {
|
260
|
-
const data = await createBookingData({
|
261
|
-
product: { ...detail || item, _params: e }
|
262
|
-
});
|
263
|
-
createBooking({ booking: data });
|
264
|
-
return;
|
265
|
-
}
|
266
|
-
const _detail = detail || item;
|
267
|
-
const other = JSON.parse(JSON.stringify(e));
|
268
|
-
other.session = e.session;
|
269
|
-
let cacheItem = {
|
270
|
-
..._detail,
|
271
|
-
product_id: item.id,
|
272
|
-
_id: (0, import_utils.getUniqueId)(),
|
273
|
-
_key: e.key,
|
274
|
-
_extend: {
|
275
|
-
start_date: state.date.value,
|
276
|
-
quantity: (e == null ? void 0 : e.quantity) || 1,
|
277
|
-
price: _detail.price,
|
278
|
-
product_name: item.title,
|
279
|
-
other
|
280
|
-
},
|
281
|
-
new: 1
|
282
|
-
};
|
283
|
-
let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
|
284
|
-
cacheItem._extend.total = _total;
|
285
|
-
cacheItem._extend.origin_total = _total;
|
286
|
-
const _isEdit = !!state.service.cacheItem;
|
287
|
-
if (_isEdit) {
|
288
|
-
cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
|
289
|
-
cacheItem.new = 0;
|
290
|
-
}
|
291
|
-
if (renderMode === "current") {
|
292
|
-
cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
|
293
|
-
}
|
294
|
-
cacheItem = (0, import_utils3.getProductExtend)({
|
295
|
-
cacheItem,
|
296
|
-
state,
|
297
|
-
isDisabledTime: true
|
298
|
-
});
|
299
|
-
if (state.renderType === "eventBooking") {
|
300
|
-
cacheItem.autoClose = false;
|
301
|
-
}
|
302
|
-
if (cacheItem.autoClose) {
|
303
|
-
cacheItem.autoClose = false;
|
304
|
-
cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
|
305
|
-
let { list: _list, quantity } = (0, import_utils6.addService)(
|
306
|
-
[...state.service.value],
|
307
|
-
cacheItem,
|
308
|
-
state
|
309
|
-
);
|
310
|
-
(_b2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _b2.call(
|
311
|
-
Toast,
|
312
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-title" }, cacheItem.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-quantity" }, import_utils.locales.getText("pisell2.ticket-booking.in-cart")(
|
313
|
-
quantity || 1
|
314
|
-
)))
|
315
|
-
);
|
316
|
-
(0, import_utils6.addServiceScroll)(e.rowKey, cacheItem);
|
317
|
-
try {
|
318
|
-
if (((_g2 = (_f2 = (_e2 = (_d2 = (_c2 = context.appHelper.utils.store) == null ? void 0 : _c2.getState) == null ? void 0 : _d2.call(_c2)) == null ? void 0 : _e2.global) == null ? void 0 : _f2.globalConfig) == null ? void 0 : _g2.id) === 2155) {
|
319
|
-
const val = _list == null ? void 0 : _list.map((s) => {
|
320
|
-
return {
|
321
|
-
product_id: s == null ? void 0 : s.product_id,
|
322
|
-
detailId: s == null ? void 0 : s.id,
|
323
|
-
detailProductId: s == null ? void 0 : s.product_id,
|
324
|
-
product_name: s == null ? void 0 : s.title,
|
325
|
-
price: s == null ? void 0 : s.price,
|
326
|
-
_id: s == null ? void 0 : s._id,
|
327
|
-
_key: s == null ? void 0 : s._key,
|
328
|
-
_serviceKey: s == null ? void 0 : s._serviceKey
|
329
|
-
};
|
330
|
-
});
|
331
|
-
const sendData = {
|
332
|
-
product_id: item == null ? void 0 : item.id,
|
333
|
-
detailId: _detail == null ? void 0 : _detail.id,
|
334
|
-
detailProductId: _detail == null ? void 0 : _detail.product_id,
|
335
|
-
product_name: item == null ? void 0 : item.title,
|
336
|
-
price: _detail == null ? void 0 : _detail.price,
|
337
|
-
serviceVal: val
|
338
|
-
};
|
339
|
-
(0, import_utils.sendWarningLog)({
|
340
|
-
title: "addService",
|
341
|
-
content: [
|
342
|
-
{ key: "添加数据", value: JSON.stringify(sendData) },
|
343
|
-
{
|
344
|
-
key: "日期",
|
345
|
-
value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
|
346
|
-
}
|
347
|
-
]
|
348
|
-
});
|
349
|
-
}
|
350
|
-
} catch (error) {
|
351
|
-
}
|
352
|
-
dispatch({
|
353
|
-
type: "setService",
|
354
|
-
payload: {
|
355
|
-
addModal: false,
|
356
|
-
value: _list,
|
357
|
-
edit: true,
|
358
|
-
changeService: false
|
359
|
-
}
|
360
|
-
});
|
361
|
-
} else {
|
362
|
-
dispatch({
|
363
|
-
type: "setService",
|
364
|
-
payload: {
|
365
|
-
editModal: true,
|
366
|
-
cacheItem,
|
367
|
-
addModal: !cacheItem.autoClose,
|
368
|
-
changeService: false
|
369
|
-
}
|
370
|
-
});
|
371
|
-
onEdit == null ? void 0 : onEdit(cacheItem);
|
372
|
-
}
|
373
|
-
}
|
392
|
+
callback
|
374
393
|
});
|
375
394
|
}
|
376
395
|
);
|
@@ -428,7 +447,6 @@ var AddSerivce = (props) => {
|
|
428
447
|
}
|
429
448
|
return null;
|
430
449
|
}, [
|
431
|
-
(_n = (_m = state.service) == null ? void 0 : _m.cacheItem) == null ? void 0 : _n.autoClose,
|
432
450
|
state.service.addModal,
|
433
451
|
import_utils.locales,
|
434
452
|
renderList,
|
@@ -35,115 +35,122 @@ module.exports = __toCommonJS(timeBar_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
36
36
|
var import_icons = require("@ant-design/icons");
|
37
37
|
var import_materials = require("@pisell/materials");
|
38
|
+
var import_ahooks = require("ahooks");
|
38
39
|
var import_antd = require("antd");
|
39
40
|
var import_classnames = __toESM(require("classnames"));
|
40
41
|
var import_utils = require("@pisell/utils");
|
41
42
|
var import_index = require("./index.less");
|
42
43
|
var TimeBar = (props) => {
|
43
|
-
var _a, _b
|
44
|
+
var _a, _b;
|
44
45
|
const { globalState: state, setGlobalState, locale } = props;
|
45
|
-
const _onClickNext = () => {
|
46
|
-
var _a2, _b2,
|
46
|
+
const _onClickNext = (0, import_ahooks.useMemoizedFn)(() => {
|
47
|
+
var _a2, _b2, _c, _d;
|
47
48
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
48
49
|
const newTime = currentTime["add"](1, "day");
|
49
|
-
(
|
50
|
-
(
|
51
|
-
};
|
52
|
-
const _onClickPre = () => {
|
53
|
-
var _a2, _b2,
|
50
|
+
(_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
51
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
52
|
+
});
|
53
|
+
const _onClickPre = (0, import_ahooks.useMemoizedFn)(() => {
|
54
|
+
var _a2, _b2, _c, _d;
|
54
55
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
55
56
|
const newTime = currentTime["subtract"](1, "day");
|
56
|
-
(
|
57
|
-
(
|
58
|
-
};
|
59
|
-
const _onClickToday = () => {
|
60
|
-
var _a2;
|
61
|
-
(_a2 =
|
62
|
-
|
63
|
-
|
57
|
+
(_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
58
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
59
|
+
});
|
60
|
+
const _onClickToday = (0, import_ahooks.useMemoizedFn)(() => {
|
61
|
+
var _a2, _b2, _c, _d;
|
62
|
+
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
63
|
+
const newTime = currentTime["subtract"](1, "day");
|
64
|
+
(_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
65
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
66
|
+
});
|
67
|
+
const _onClickNow = (0, import_ahooks.useMemoizedFn)(() => {
|
64
68
|
var _a2;
|
65
69
|
(_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
|
66
|
-
};
|
67
|
-
const _onDateTimeChange = (timeString) => {
|
68
|
-
var _a2, _b2,
|
70
|
+
});
|
71
|
+
const _onDateTimeChange = (0, import_ahooks.useMemoizedFn)((timeString) => {
|
72
|
+
var _a2, _b2, _c, _d;
|
69
73
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
70
74
|
const [hours, minutes] = timeString.split(":").map(Number);
|
71
75
|
const newTime = currentTime.hour(hours).minute(minutes).second(0);
|
72
|
-
(
|
76
|
+
(_c = props.onDateTimeChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
73
77
|
setGlobalState({
|
74
78
|
isTimeChange: true
|
75
79
|
});
|
76
|
-
(
|
77
|
-
};
|
78
|
-
return
|
79
|
-
|
80
|
-
{
|
81
|
-
|
82
|
-
onClick: _onClickPre,
|
83
|
-
size: "large"
|
84
|
-
}
|
85
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
86
|
-
import_antd.Button,
|
87
|
-
{
|
88
|
-
onClick: _onClickToday,
|
89
|
-
size: "large",
|
90
|
-
style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
|
91
|
-
},
|
92
|
-
import_utils.locales.getText("pisell2.ticket-booking.today")
|
93
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
94
|
-
"div",
|
95
|
-
{
|
96
|
-
className: (0, import_classnames.default)({
|
97
|
-
"booking-page-date-picker-select": state.isDateChange
|
98
|
-
}),
|
99
|
-
style: { width: 200, flexShrink: 0 }
|
100
|
-
},
|
101
|
-
/* @__PURE__ */ import_react.default.createElement(
|
102
|
-
import_materials.DatePicker,
|
80
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
81
|
+
});
|
82
|
+
return (0, import_react.useMemo)(() => {
|
83
|
+
var _a2, _b2, _c, _d;
|
84
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-time-bar" }, /* @__PURE__ */ import_react.default.createElement(
|
85
|
+
import_antd.Button,
|
103
86
|
{
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
onChange: props == null ? void 0 : props.onDateChange,
|
108
|
-
size: "large",
|
109
|
-
style: { width: "100%" }
|
87
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null),
|
88
|
+
onClick: _onClickPre,
|
89
|
+
size: "large"
|
110
90
|
}
|
111
|
-
)
|
112
|
-
|
113
|
-
import_antd.Button,
|
114
|
-
{
|
115
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
|
116
|
-
onClick: _onClickNext,
|
117
|
-
size: "large"
|
118
|
-
}
|
119
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
120
|
-
"div",
|
121
|
-
{
|
122
|
-
className: (0, import_classnames.default)({
|
123
|
-
"booking-page-date-picker-select": state.isTimeChange
|
124
|
-
})
|
125
|
-
},
|
126
|
-
/* @__PURE__ */ import_react.default.createElement(
|
127
|
-
import_materials.SelectTime,
|
91
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
92
|
+
import_antd.Button,
|
128
93
|
{
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
94
|
+
onClick: _onClickToday,
|
95
|
+
size: "large",
|
96
|
+
style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
|
97
|
+
},
|
98
|
+
import_utils.locales.getText("pisell2.ticket-booking.today")
|
99
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
100
|
+
"div",
|
101
|
+
{
|
102
|
+
className: (0, import_classnames.default)({
|
103
|
+
"booking-page-date-picker-select": state.isDateChange
|
104
|
+
}),
|
105
|
+
style: { width: 200, flexShrink: 0 }
|
106
|
+
},
|
107
|
+
/* @__PURE__ */ import_react.default.createElement(
|
108
|
+
import_materials.DatePicker,
|
109
|
+
{
|
110
|
+
inputReadOnly: true,
|
111
|
+
value: (_b2 = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value,
|
112
|
+
format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
|
113
|
+
onChange: props == null ? void 0 : props.onDateChange,
|
114
|
+
size: "large",
|
115
|
+
style: { width: "100%" }
|
116
|
+
}
|
117
|
+
)
|
118
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
119
|
+
import_antd.Button,
|
120
|
+
{
|
121
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
|
122
|
+
onClick: _onClickNext,
|
123
|
+
size: "large"
|
137
124
|
}
|
138
|
-
)
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
125
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
126
|
+
"div",
|
127
|
+
{
|
128
|
+
className: (0, import_classnames.default)({
|
129
|
+
"booking-page-date-picker-select": state.isTimeChange
|
130
|
+
})
|
131
|
+
},
|
132
|
+
/* @__PURE__ */ import_react.default.createElement(
|
133
|
+
import_materials.SelectTime,
|
134
|
+
{
|
135
|
+
value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
|
136
|
+
onChange: _onDateTimeChange,
|
137
|
+
popoverProps: {
|
138
|
+
style: { zoom: 0.8 }
|
139
|
+
},
|
140
|
+
timePickerProps: {},
|
141
|
+
timeProps: {},
|
142
|
+
slice: 5
|
143
|
+
}
|
144
|
+
)
|
145
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
146
|
+
import_antd.Button,
|
147
|
+
{
|
148
|
+
onClick: _onClickNow,
|
149
|
+
size: "large",
|
150
|
+
style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
|
151
|
+
},
|
152
|
+
import_utils.locales.getText("pisell2.ticket-booking.now")
|
153
|
+
));
|
154
|
+
}, [(_b = (_a = state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
|
148
155
|
};
|
149
156
|
var timeBar_default = TimeBar;
|
@@ -1,13 +1 @@
|
|
1
|
-
|
2
|
-
interface RechargeState {
|
3
|
-
addWalletCard: any;
|
4
|
-
}
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
6
|
-
walletDetailState: 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,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;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.2.
|
3
|
+
"version": "6.2.19",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"module": "./es/index.js",
|
6
6
|
"types": "./lib/index.d.ts",
|
@@ -59,10 +59,10 @@
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
61
61
|
"decimal.js": "^10.4.3",
|
62
|
-
"@pisell/utils": "3.0.0",
|
63
|
-
"@pisell/materials": "3.3.42",
|
64
62
|
"@pisell/date-picker": "3.0.4",
|
65
|
-
"@pisell/
|
63
|
+
"@pisell/utils": "3.0.0",
|
64
|
+
"@pisell/icon": "0.0.11",
|
65
|
+
"@pisell/materials": "3.3.42"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
68
68
|
"react": "^18.0.0",
|