@pisell/private-materials 6.2.11 → 6.2.13
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.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/utils.js +17 -1
- package/es/components/Sales/Event/Detail.d.ts +1 -0
- package/es/components/Sales/Event/Detail.js +45 -11
- package/es/components/Sales/Event/serve.d.ts +10 -0
- package/es/components/Sales/Event/serve.js +25 -0
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.js +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.js +8 -11
- package/es/components/booking/info/client/index.js +2 -3
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
- package/es/components/booking/info/service/Lists.js +26 -36
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +21 -20
- package/es/components/booking/info2/index.js +0 -1
- package/es/components/booking/info2/service/addService/utils.js +3 -6
- package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
- package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
- package/es/components/booking/info2/service/editService/index.js +165 -258
- package/es/components/booking/info2/service/index.js +15 -19
- package/es/components/booking/materiels/duration/index.js +2 -9
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -2
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.js +14 -0
- package/es/components/eventBooking/index.less +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.js +41 -48
- package/es/components/shoppingCart/components/Cart/index.js +18 -21
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -175
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +71 -78
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.js +10 -1
- package/lib/components/Sales/Event/Detail.d.ts +1 -0
- package/lib/components/Sales/Event/Detail.js +37 -12
- package/lib/components/Sales/Event/serve.d.ts +10 -0
- package/lib/components/Sales/Event/serve.js +7 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.js +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.js +13 -16
- package/lib/components/booking/info/client/index.js +4 -5
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
- package/lib/components/booking/info/service/Lists.js +23 -35
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info2/service/addService/utils.js +2 -4
- package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
- package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
- package/lib/components/booking/info2/service/editService/index.js +70 -132
- package/lib/components/booking/info2/service/index.js +9 -13
- package/lib/components/booking/materiels/duration/index.js +2 -7
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +3 -2
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.js +11 -0
- package/lib/components/eventBooking/index.less +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
- package/lib/components/shoppingCart/components/Cart/index.js +15 -18
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -143
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +3 -3
- package/es/components/Sales/Checkout/utils.d.ts +0 -40
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/utils.d.ts +0 -50
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/locales.d.ts +0 -828
- package/es/components/booking/model.d.ts +0 -108
- package/es/components/eftposPay/const.d.ts +0 -184
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/service.d.ts +0 -32
- package/es/components/eftposPay/manufacturer.d.ts +0 -7
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/index.d.ts +0 -26
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/components/walletList/index.d.ts +0 -28
- package/es/utils/index.d.ts +0 -23
- package/lib/components/Sales/Checkout/utils.d.ts +0 -40
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/utils.d.ts +0 -50
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/locales.d.ts +0 -828
- package/lib/components/booking/model.d.ts +0 -108
- package/lib/components/eftposPay/const.d.ts +0 -184
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/service.d.ts +0 -32
- package/lib/components/eftposPay/manufacturer.d.ts +0 -7
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/index.d.ts +0 -26
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/utils/index.d.ts +0 -23
@@ -35,122 +35,115 @@ 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");
|
39
38
|
var import_antd = require("antd");
|
40
39
|
var import_classnames = __toESM(require("classnames"));
|
41
40
|
var import_utils = require("@pisell/utils");
|
42
41
|
var import_index = require("./index.less");
|
43
42
|
var TimeBar = (props) => {
|
44
|
-
var _a, _b;
|
43
|
+
var _a, _b, _c, _d;
|
45
44
|
const { globalState: state, setGlobalState, locale } = props;
|
46
|
-
const _onClickNext = (
|
47
|
-
var _a2, _b2,
|
45
|
+
const _onClickNext = () => {
|
46
|
+
var _a2, _b2, _c2, _d2;
|
48
47
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
49
48
|
const newTime = currentTime["add"](1, "day");
|
50
|
-
(
|
51
|
-
(
|
52
|
-
}
|
53
|
-
const _onClickPre = (
|
54
|
-
var _a2, _b2,
|
49
|
+
(_c2 = props.onDateChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
50
|
+
(_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
|
51
|
+
};
|
52
|
+
const _onClickPre = () => {
|
53
|
+
var _a2, _b2, _c2, _d2;
|
55
54
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
56
55
|
const newTime = currentTime["subtract"](1, "day");
|
57
|
-
(
|
58
|
-
(
|
59
|
-
}
|
60
|
-
const _onClickToday = (
|
61
|
-
var _a2
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
66
|
-
});
|
67
|
-
const _onClickNow = (0, import_ahooks.useMemoizedFn)(() => {
|
56
|
+
(_c2 = props.onDateChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
57
|
+
(_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
|
58
|
+
};
|
59
|
+
const _onClickToday = () => {
|
60
|
+
var _a2;
|
61
|
+
(_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
|
62
|
+
};
|
63
|
+
const _onClickNow = () => {
|
68
64
|
var _a2;
|
69
65
|
(_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
|
70
|
-
}
|
71
|
-
const _onDateTimeChange = (
|
72
|
-
var _a2, _b2,
|
66
|
+
};
|
67
|
+
const _onDateTimeChange = (timeString) => {
|
68
|
+
var _a2, _b2, _c2, _d2;
|
73
69
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
74
70
|
const [hours, minutes] = timeString.split(":").map(Number);
|
75
71
|
const newTime = currentTime.hour(hours).minute(minutes).second(0);
|
76
|
-
(
|
72
|
+
(_c2 = props.onDateTimeChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
77
73
|
setGlobalState({
|
78
74
|
isTimeChange: true
|
79
75
|
});
|
80
|
-
(
|
81
|
-
}
|
82
|
-
return (
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
76
|
+
(_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
|
77
|
+
};
|
78
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-time-bar" }, /* @__PURE__ */ import_react.default.createElement(
|
79
|
+
import_antd.Button,
|
80
|
+
{
|
81
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null),
|
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,
|
93
103
|
{
|
94
|
-
|
104
|
+
inputReadOnly: true,
|
105
|
+
value: (_b = (_a = state == null ? void 0 : state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value,
|
106
|
+
format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
|
107
|
+
onChange: props == null ? void 0 : props.onDateChange,
|
95
108
|
size: "large",
|
96
|
-
style:
|
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"
|
109
|
+
style: { width: "100%" }
|
124
110
|
}
|
125
|
-
)
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
slice: 5
|
143
|
-
}
|
144
|
-
)
|
145
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
146
|
-
import_antd.Button,
|
111
|
+
)
|
112
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
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,
|
147
128
|
{
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
129
|
+
value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
|
130
|
+
onChange: _onDateTimeChange,
|
131
|
+
popoverProps: {
|
132
|
+
style: { zoom: 0.8 }
|
133
|
+
},
|
134
|
+
timePickerProps: {},
|
135
|
+
timeProps: {},
|
136
|
+
slice: 5
|
137
|
+
}
|
138
|
+
)
|
139
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
140
|
+
import_antd.Button,
|
141
|
+
{
|
142
|
+
onClick: _onClickNow,
|
143
|
+
size: "large",
|
144
|
+
style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
|
145
|
+
},
|
146
|
+
import_utils.locales.getText("pisell2.ticket-booking.now")
|
147
|
+
));
|
155
148
|
};
|
156
149
|
var timeBar_default = TimeBar;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.2.
|
3
|
+
"version": "6.2.13",
|
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",
|
62
63
|
"@pisell/date-picker": "3.0.4",
|
63
64
|
"@pisell/icon": "0.0.11",
|
64
|
-
"@pisell/materials": "3.3.39"
|
65
|
-
"@pisell/utils": "3.0.0"
|
65
|
+
"@pisell/materials": "3.3.39"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
68
68
|
"react": "^18.0.0",
|
@@ -1,40 +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
|
-
/**
|
20
|
-
* @title: 格式化下单接口数据
|
21
|
-
* @description:
|
22
|
-
* @param {any} state saledModel数据源
|
23
|
-
* @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
|
24
|
-
* @Author: xiangfeng.xue
|
25
|
-
* @Date: 2025-01-21 17:57
|
26
|
-
*/
|
27
|
-
export declare const formatValues: (params: {
|
28
|
-
state: any;
|
29
|
-
platform: 'h5' | 'pc';
|
30
|
-
excludeDisabled?: boolean;
|
31
|
-
extra?: Record<string, any>;
|
32
|
-
}) => any;
|
33
|
-
/**
|
34
|
-
* @title: 获取拉开表单弹窗参数
|
35
|
-
* @param state
|
36
|
-
*/
|
37
|
-
export declare const getFormParams: (state: any) => {
|
38
|
-
product_id: any;
|
39
|
-
appointment_type: string;
|
40
|
-
};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
interface CheckLoginParams {
|
2
|
-
isLogin: boolean;
|
3
|
-
openLoginModal: (params: {
|
4
|
-
callback: (status: string) => void;
|
5
|
-
}) => void;
|
6
|
-
isFormSubject: boolean;
|
7
|
-
utils: any;
|
8
|
-
accountLists: any[];
|
9
|
-
appointmentBooking: any;
|
10
|
-
getHolders: () => void;
|
11
|
-
}
|
12
|
-
export declare const checkLogin: ({ isLogin, openLoginModal, isFormSubject, utils, accountLists, appointmentBooking, getHolders, }: CheckLoginParams) => Promise<boolean>;
|
13
|
-
interface CheckHolderParams {
|
14
|
-
isFormSubject: boolean;
|
15
|
-
checkAccount: (type: string) => boolean;
|
16
|
-
carts: any[];
|
17
|
-
}
|
18
|
-
export declare const checkHolder: ({ isFormSubject, checkAccount, carts }: CheckHolderParams) => false | any[];
|
19
|
-
interface CheckResourceParams {
|
20
|
-
carts: any[];
|
21
|
-
resources: any[];
|
22
|
-
}
|
23
|
-
/**
|
24
|
-
* @title: 检测资源数据
|
25
|
-
* @description:
|
26
|
-
* @param {CheckResourceParams} param1
|
27
|
-
* @return {*}
|
28
|
-
* @Author: WangHan
|
29
|
-
* @Date: 2025-04-29 18:02
|
30
|
-
*/
|
31
|
-
export declare const checkResource: ({ carts, resources }: CheckResourceParams) => false | any[];
|
32
|
-
interface CheckResourceParams {
|
33
|
-
carts: any[];
|
34
|
-
}
|
35
|
-
export declare type StepKey = 'select-resource' | 'fill-form' | 'select-time' | 'confirm-information' | 'select-service' | 'select-date' | 'select-guest';
|
36
|
-
interface AddHolderParams {
|
37
|
-
res: any;
|
38
|
-
bookingSubject: any;
|
39
|
-
accountLists: any[];
|
40
|
-
cartItem: any;
|
41
|
-
getHolders: () => void;
|
42
|
-
appointmentBooking: any;
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* @title: 添加holder
|
46
|
-
* @description:
|
47
|
-
* @param {any} res
|
48
|
-
* @param {any} bookingSubject
|
49
|
-
* @param {any} accountLists
|
50
|
-
* @param {any} e
|
51
|
-
* @return {*}
|
52
|
-
* @Author: WangHan
|
53
|
-
* @Date: 2025-05-10 18:25
|
54
|
-
*/
|
55
|
-
export declare const handleAddHolder: ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }: AddHolderParams) => Promise<any>;
|
56
|
-
export {};
|
@@ -1,106 +0,0 @@
|
|
1
|
-
export declare const useAppointmentBooking: () => any;
|
2
|
-
export declare const useShopDiscount: () => any;
|
3
|
-
export declare const contextUtils: () => any;
|
4
|
-
/**
|
5
|
-
* @title: 监听步骤发生变化
|
6
|
-
* @description:
|
7
|
-
* @return {*}
|
8
|
-
* @Author: WangHan
|
9
|
-
* @Date: 2025-04-15 11:11
|
10
|
-
*/
|
11
|
-
export declare const useAppointmentBookingStep: () => {
|
12
|
-
getStepIndex: (type: string, skipNumber?: number) => any;
|
13
|
-
stepList: any;
|
14
|
-
removeStep: (key: string) => any;
|
15
|
-
addStep: (props: any, stepKey?: string) => any;
|
16
|
-
updateStep: (key: string, step: any) => void;
|
17
|
-
nextStep: () => any;
|
18
|
-
};
|
19
|
-
/**
|
20
|
-
* @title: 获取商品数据
|
21
|
-
* @description:
|
22
|
-
* @return {*}
|
23
|
-
* @Author: WangHan
|
24
|
-
* @Date: 2025-04-15 11:12
|
25
|
-
*/
|
26
|
-
export declare const useAppointmentBookingProduct: () => {
|
27
|
-
checkProductType: (productId: number) => Promise<any>;
|
28
|
-
getProducts: () => Promise<any>;
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* @title: 更新购物车数据
|
32
|
-
* @description:
|
33
|
-
* @return {*}
|
34
|
-
* @Author: WangHan
|
35
|
-
* @Date: 2025-04-15 11:12
|
36
|
-
*/
|
37
|
-
export declare const useAppointmentBookingCart: () => void;
|
38
|
-
/**
|
39
|
-
* @title: 获取登录状态
|
40
|
-
* @description:
|
41
|
-
* @return {*}
|
42
|
-
* @Author: WangHan
|
43
|
-
* @Date: 2025-04-15 11:14
|
44
|
-
*/
|
45
|
-
export declare const useAppointmentBookingLogin: () => {
|
46
|
-
isLogin: boolean;
|
47
|
-
openLoginModal: (params: {
|
48
|
-
callback: any;
|
49
|
-
}) => void;
|
50
|
-
};
|
51
|
-
/**
|
52
|
-
* @title: 获取账户
|
53
|
-
* @description:
|
54
|
-
* @return {*}
|
55
|
-
* @Author: WangHan
|
56
|
-
* @Date: 2025-04-15 11:15
|
57
|
-
*/
|
58
|
-
export declare const useAppointmentBookingAccount: () => {
|
59
|
-
accountLists: any;
|
60
|
-
getHolders: () => Promise<any>;
|
61
|
-
form_id: any;
|
62
|
-
addAccount: (val: any, type?: string) => Promise<any>;
|
63
|
-
checkAccount: (type: any) => any;
|
64
|
-
};
|
65
|
-
/**
|
66
|
-
* @title: 获取资源数据
|
67
|
-
* @description:
|
68
|
-
* @return {*}
|
69
|
-
* @Author: WangHan
|
70
|
-
* @Date: 2025-04-15 11:29
|
71
|
-
*/
|
72
|
-
export declare const useAppointmentBookingResource: () => {
|
73
|
-
getResourceTimeSlot: (index?: number) => Promise<void>;
|
74
|
-
getResourceList: () => {
|
75
|
-
resources: any;
|
76
|
-
resourceCodes: any;
|
77
|
-
};
|
78
|
-
};
|
79
|
-
/**
|
80
|
-
* @title: 是否跳过资源选择步骤
|
81
|
-
* @description:
|
82
|
-
* @return {*}
|
83
|
-
* @Author: WangHan
|
84
|
-
* @Date: 2025-04-21 11:47
|
85
|
-
*/
|
86
|
-
export declare const useIsSkipResourceStep: () => {
|
87
|
-
checkSkipResourceStep: () => Promise<boolean>;
|
88
|
-
};
|
89
|
-
/**
|
90
|
-
* @title: 获取预约配置
|
91
|
-
* @description:
|
92
|
-
* @return {*}
|
93
|
-
* @Author: WangHan
|
94
|
-
* @Date: 2025-04-24 18:15
|
95
|
-
*/
|
96
|
-
export declare const useAppointmentBookingSetting: () => {
|
97
|
-
isDateSelectedFirst: boolean;
|
98
|
-
isFormSubject: boolean;
|
99
|
-
isRetailTemplate: any;
|
100
|
-
customPageId: any;
|
101
|
-
channel: any;
|
102
|
-
bookingSubject: any;
|
103
|
-
setOtherData: (key: string, val: any) => any;
|
104
|
-
getOtherData: (key: string) => any;
|
105
|
-
formName: any;
|
106
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useIsBooking4Shop: (state: any) => any;
|
@@ -1,50 +0,0 @@
|
|
1
|
-
export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
|
2
|
-
export declare const uniqueByField: (arr: any[], field: string) => any[];
|
3
|
-
export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
|
4
|
-
/**
|
5
|
-
* @title: 判断两个时间是否在同一个时间段内
|
6
|
-
* @description:
|
7
|
-
* @param {number} time1 开始时间
|
8
|
-
* @param {number} time2 结束时间
|
9
|
-
* @param {number} interval 时间间隔
|
10
|
-
* @return {*}
|
11
|
-
* @Author: zhiwei.Wang
|
12
|
-
* @Date: 2024-08-13 19:37
|
13
|
-
*/
|
14
|
-
export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
|
15
|
-
/**
|
16
|
-
* @title: 根据时间间隔格式化服务列表
|
17
|
-
* @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
|
18
|
-
* @param {any} list 服务列表
|
19
|
-
* @return {*}
|
20
|
-
* @Author: zhiwei.Wang
|
21
|
-
* @Date: 2024-08-13 19:36
|
22
|
-
*/
|
23
|
-
export declare const formatServiceListByTime: (list: any[]) => any[];
|
24
|
-
export declare const isBooking4Shop: (shopId: number, renderType?: string, businessUtils?: any) => any;
|
25
|
-
declare type DataEntry = {
|
26
|
-
total: number;
|
27
|
-
origin_total: number;
|
28
|
-
num: number;
|
29
|
-
quotation_id: number;
|
30
|
-
start_date: string;
|
31
|
-
end_date: string;
|
32
|
-
};
|
33
|
-
declare type ResultStructure = Record<string, Record<string, any>>;
|
34
|
-
export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
|
35
|
-
/**
|
36
|
-
* @title: 是否是跨日预约
|
37
|
-
* @description:
|
38
|
-
* @param {number} shopId
|
39
|
-
* @return {*}
|
40
|
-
* @Author: WangHan
|
41
|
-
* @Date: 2024-11-29 11:19
|
42
|
-
*/
|
43
|
-
export declare const isDayBooking: (shopId: number) => boolean;
|
44
|
-
export declare const isOpenAddTime: (state: any) => boolean;
|
45
|
-
export declare const isShowAddTime: (state: any, currentService: any) => boolean;
|
46
|
-
export declare const editSessionProduct: (cacheItem: any, session: any) => {
|
47
|
-
duration: any;
|
48
|
-
start_time: any;
|
49
|
-
} | undefined;
|
50
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
2
|
-
import '../../../info/service/addService/index.less';
|
3
|
-
interface AddServiceProps {
|
4
|
-
onEdit: any;
|
5
|
-
dispatch?: any;
|
6
|
-
state?: any;
|
7
|
-
drawerProps?: PisellDrawerProps;
|
8
|
-
renderMode?: 'current' | 'drawer';
|
9
|
-
}
|
10
|
-
declare const Info: (props: AddServiceProps) => JSX.Element;
|
11
|
-
export default Info;
|