@pisell/private-materials 6.1.23 → 6.1.25
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 +150 -150
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/index.js +2 -2
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +4 -2
- package/es/components/walletList/index.js +1 -3
- package/es/hooks/useEngineContext.js +4 -1
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/index.js +5 -7
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +2 -2
- package/lib/hooks/useEngineContext.js +4 -3
- package/package.json +12 -12
- package/es/components/booking/components/tabPane/index.d.ts +0 -4
- 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/client/index.d.ts +0 -4
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/Lists.d.ts +0 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -251
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- 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/editService/index.d.ts +0 -7
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/es/components/booking/locales.d.ts +0 -906
- package/es/components/booking/materiels/duration/index.d.ts +0 -13
- package/es/components/booking/materiels/startTime/index.d.ts +0 -9
- package/es/components/booking/utils.d.ts +0 -174
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/es/components/pay/toB/components/Card/index.d.ts +0 -7
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/types/index.d.ts +0 -1
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -13
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/locales.d.ts +0 -180
- package/es/components/ticketBooking/serve.d.ts +0 -288
- package/es/components/ticketBooking/utils/index.d.ts +0 -62
- package/es/components/walletList/index.d.ts +0 -28
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/es/plus/clinetSearch/index.d.ts +0 -18
- package/es/pro/comprehensiveSearch/index.d.ts +0 -9
- package/es/pro/comprehensiveSearch/types.d.ts +0 -31
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/components/booking/components/tabPane/index.d.ts +0 -4
- 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/client/index.d.ts +0 -4
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/Lists.d.ts +0 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -251
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- 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/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/lib/components/booking/locales.d.ts +0 -906
- package/lib/components/booking/materiels/duration/index.d.ts +0 -13
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -9
- package/lib/components/booking/utils.d.ts +0 -174
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/types/index.d.ts +0 -1
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -13
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/locales.d.ts +0 -180
- package/lib/components/ticketBooking/serve.d.ts +0 -288
- package/lib/components/ticketBooking/utils/index.d.ts +0 -62
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/index.d.ts +0 -18
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
@@ -44,7 +44,7 @@ var defaultModules = {
|
|
44
44
|
};
|
45
45
|
locales.init(localeTexts, getLocale());
|
46
46
|
var Info = Provider(function (props) {
|
47
|
-
var _modal$state2, _modal$state3, _modal$state5,
|
47
|
+
var _modal$state2, _modal$state3, _modal$state5, _modal$state6;
|
48
48
|
// return <Payments {...props} />;
|
49
49
|
var style = props.style,
|
50
50
|
globalState = props.globalState,
|
@@ -267,7 +267,7 @@ var Info = Provider(function (props) {
|
|
267
267
|
}
|
268
268
|
}), !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane, {
|
269
269
|
style: {
|
270
|
-
height:
|
270
|
+
height: '100%'
|
271
271
|
},
|
272
272
|
header: header,
|
273
273
|
footer: /*#__PURE__*/React.createElement(Footer, {
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
8
8
|
*/
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
10
10
|
className?: string | undefined;
|
11
|
-
onChange?: ((status: "
|
11
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
12
12
|
[keys: string]: unknown;
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
14
14
|
onClose: () => void;
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
11
11
|
api: PayProps['api'];
|
12
12
|
className?: string | undefined;
|
13
|
-
onChange?: ((status: "
|
13
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
14
14
|
[keys: string]: unknown;
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
16
16
|
onClose: () => void;
|
@@ -295,7 +295,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
295
295
|
name?: string | undefined;
|
296
296
|
symbol?: string | undefined;
|
297
297
|
amount?: string | number | undefined;
|
298
|
-
mode?: "
|
298
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
300
|
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
@@ -303,7 +303,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | undefined;
|
305
305
|
subTitle?: string | undefined;
|
306
|
-
type?: "
|
306
|
+
type?: "step" | "unset" | undefined;
|
307
307
|
render?: boolean | undefined;
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
@@ -137,7 +137,9 @@ var initialState = {
|
|
137
137
|
export default (function (props) {
|
138
138
|
var _context$appHelper, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
|
139
139
|
var productExtensionType = props.productExtensionType,
|
140
|
-
bookingConfigParams = props.bookingConfigParams
|
140
|
+
bookingConfigParams = props.bookingConfigParams,
|
141
|
+
_props$isShowMenuBar = props.isShowMenuBar,
|
142
|
+
isShowMenuBar = _props$isShowMenuBar === void 0 ? true : _props$isShowMenuBar;
|
141
143
|
var storeRef = useRef(null);
|
142
144
|
var context = useEngineContext();
|
143
145
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
@@ -169,7 +171,7 @@ export default (function (props) {
|
|
169
171
|
}, []);
|
170
172
|
return /*#__PURE__*/React.createElement("div", {
|
171
173
|
className: "pisell-ticket-booking-wrapper"
|
172
|
-
}, /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
|
174
|
+
}, isShowMenuBar && /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
|
173
175
|
store: storeRef.current
|
174
176
|
}, /*#__PURE__*/React.createElement(TicketBooking, null)));
|
175
177
|
});
|
@@ -29,7 +29,7 @@ import localeTexts from "./locales";
|
|
29
29
|
import "./index.less";
|
30
30
|
import classNames from 'classnames';
|
31
31
|
// 导入所有类型
|
32
|
-
import {
|
32
|
+
import { DEFAULT_CARD_CONFIG } from "./types";
|
33
33
|
|
34
34
|
// 添加 localStorage 相关的操作函数
|
35
35
|
var STORAGE_KEY = 'pisell_wallet_list_data';
|
@@ -74,8 +74,6 @@ var getFromLocalStorage = function getFromLocalStorage(key) {
|
|
74
74
|
|
75
75
|
// @ts-ignore
|
76
76
|
|
77
|
-
// @ts-ignore
|
78
|
-
|
79
77
|
// 定义轮播图配置
|
80
78
|
var CAROUSEL_CONFIG = {
|
81
79
|
className: 'pisell-lowcode__walletList',
|
@@ -2,11 +2,14 @@ import { createContext, useContext } from "react";
|
|
2
2
|
var defaultContext = /*#__PURE__*/createContext({});
|
3
3
|
var useEngineContext = function useEngineContext() {
|
4
4
|
var context = useContext(window.__appContext || defaultContext);
|
5
|
+
if (!Object.keys(context).length) {
|
6
|
+
return window.__injectedContext;
|
7
|
+
}
|
5
8
|
return context || {};
|
6
9
|
};
|
7
10
|
export var usePisellOS = function usePisellOS() {
|
8
11
|
var _context$appHelper;
|
9
|
-
var context =
|
12
|
+
var context = useEngineContext();
|
10
13
|
var _ref = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
11
14
|
pisellos = _ref.pisellos;
|
12
15
|
return pisellos;
|
@@ -69,7 +69,7 @@ var defaultModules = {
|
|
69
69
|
};
|
70
70
|
import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
|
71
71
|
var Info = (0, import_model.Provider)((props) => {
|
72
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
73
73
|
const { style, globalState, modules = defaultModules, slot } = props;
|
74
74
|
const modal = (0, import_react.useContext)(import_model.Context);
|
75
75
|
const context = (0, import_useEngineContext.default)();
|
@@ -97,7 +97,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
97
97
|
}
|
98
98
|
}, []);
|
99
99
|
(0, import_react.useMemo)(() => {
|
100
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2,
|
100
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m;
|
101
101
|
const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
|
102
102
|
modal.dispatch({
|
103
103
|
type: "setState",
|
@@ -106,7 +106,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
106
106
|
...globalState,
|
107
107
|
isTerminal: (_g2 = (_f2 = (_e2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.isTerminal) == null ? void 0 : _g2.call(_f2),
|
108
108
|
isFranchisee,
|
109
|
-
timezone: (_m = (
|
109
|
+
timezone: (_m = (_l = (_k = (_j2 = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j2.getState()) == null ? void 0 : _k.global) == null ? void 0 : _l.globalConfig) == null ? void 0 : _m.timezone
|
110
110
|
}
|
111
111
|
});
|
112
112
|
}, [globalState]);
|
@@ -261,9 +261,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
261
261
|
), !!modal.state.setGlobalState ? /* @__PURE__ */ import_react.default.createElement(
|
262
262
|
import_tabPane.default,
|
263
263
|
{
|
264
|
-
style: {
|
265
|
-
height: ((_k = (_j = context == null ? void 0 : context.appHelper) == null ? void 0 : _j.utils) == null ? void 0 : _k.isMobile) ? "100%" : "100vh"
|
266
|
-
},
|
264
|
+
style: { height: "100%" },
|
267
265
|
header,
|
268
266
|
footer: /* @__PURE__ */ import_react.default.createElement(
|
269
267
|
import_footer.default,
|
@@ -297,7 +295,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
297
295
|
style: { color: "#fff", fontSize: 42 }
|
298
296
|
}
|
299
297
|
)
|
300
|
-
) : null), modules.holder && !((
|
298
|
+
) : null), modules.holder && !((_j = modal.state) == null ? void 0 : _j.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
|
301
299
|
import_antd.Skeleton,
|
302
300
|
{
|
303
301
|
loading: globalState.loading,
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
8
8
|
*/
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
10
10
|
className?: string | undefined;
|
11
|
-
onChange?: ((status: "
|
11
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
12
12
|
[keys: string]: unknown;
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
14
14
|
onClose: () => void;
|
@@ -10,7 +10,7 @@ import './device.less';
|
|
10
10
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
11
11
|
api: PayProps['api'];
|
12
12
|
className?: string | undefined;
|
13
|
-
onChange?: ((status: "
|
13
|
+
onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
14
14
|
[keys: string]: unknown;
|
15
15
|
} | undefined, other?: any) => void) | undefined;
|
16
16
|
onClose: () => void;
|
@@ -295,7 +295,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
295
295
|
name?: string | undefined;
|
296
296
|
symbol?: string | undefined;
|
297
297
|
amount?: string | number | undefined;
|
298
|
-
mode?: "
|
298
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
300
|
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
@@ -303,7 +303,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | undefined;
|
305
305
|
subTitle?: string | undefined;
|
306
|
-
type?: "
|
306
|
+
type?: "step" | "unset" | undefined;
|
307
307
|
render?: boolean | undefined;
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
@@ -187,7 +187,7 @@ var initialState = {
|
|
187
187
|
};
|
188
188
|
var ticketBooking_default = (props) => {
|
189
189
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
190
|
-
const { productExtensionType, bookingConfigParams } = props;
|
190
|
+
const { productExtensionType, bookingConfigParams, isShowMenuBar = true } = props;
|
191
191
|
const storeRef = (0, import_react.useRef)(null);
|
192
192
|
const context = (0, import_useEngineContext.default)();
|
193
193
|
const { pisellos, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
@@ -218,5 +218,5 @@ var ticketBooking_default = (props) => {
|
|
218
218
|
});
|
219
219
|
}
|
220
220
|
}, []);
|
221
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, null), /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current }, /* @__PURE__ */ import_react.default.createElement(import_ticketBooking.default, null)));
|
221
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, isShowMenuBar && /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, null), /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current }, /* @__PURE__ */ import_react.default.createElement(import_ticketBooking.default, null)));
|
222
222
|
};
|
@@ -29,13 +29,14 @@ var useEngineContext = () => {
|
|
29
29
|
const context = (0, import_react.useContext)(
|
30
30
|
window.__appContext || defaultContext
|
31
31
|
);
|
32
|
+
if (!Object.keys(context).length) {
|
33
|
+
return window.__injectedContext;
|
34
|
+
}
|
32
35
|
return context || {};
|
33
36
|
};
|
34
37
|
var usePisellOS = () => {
|
35
38
|
var _a;
|
36
|
-
const context = (
|
37
|
-
window.__appContext || defaultContext
|
38
|
-
);
|
39
|
+
const context = useEngineContext();
|
39
40
|
const { pisellos } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
|
40
41
|
return pisellos;
|
41
42
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.1.
|
3
|
+
"version": "6.1.25",
|
4
|
+
"scripts": {
|
5
|
+
"dev": "father dev",
|
6
|
+
"build": "father build",
|
7
|
+
"lowcode:dev": "build-scripts start --config ./build.lowcode.js",
|
8
|
+
"lowcode:build": " build-scripts build --config ./build.lowcode.js"
|
9
|
+
},
|
4
10
|
"main": "./lib/index.js",
|
5
11
|
"module": "./es/index.js",
|
6
12
|
"types": "./lib/index.d.ts",
|
@@ -50,6 +56,10 @@
|
|
50
56
|
"@dnd-kit/modifiers": "^6.0.1",
|
51
57
|
"@dnd-kit/sortable": "^7.0.2",
|
52
58
|
"@dnd-kit/utilities": "^3.2.1",
|
59
|
+
"@pisell/date-picker": "workspace:*",
|
60
|
+
"@pisell/icon": "workspace:*",
|
61
|
+
"@pisell/materials": "workspace:*",
|
62
|
+
"@pisell/utils": "workspace:*",
|
53
63
|
"ahooks": "^3.7.6",
|
54
64
|
"antd": "^5.6.3",
|
55
65
|
"classnames": "^2.3.2",
|
@@ -58,11 +68,7 @@
|
|
58
68
|
"rc-virtual-list": "^3.11.3",
|
59
69
|
"react-infinite-scroll-component": "^6.1.0",
|
60
70
|
"react-resizable": "^3.0.5",
|
61
|
-
"styled-components": "^6.0.0-rc.3"
|
62
|
-
"@pisell/date-picker": "3.0.4",
|
63
|
-
"@pisell/icon": "0.0.11",
|
64
|
-
"@pisell/utils": "3.0.0",
|
65
|
-
"@pisell/materials": "6.1.8"
|
71
|
+
"styled-components": "^6.0.0-rc.3"
|
66
72
|
},
|
67
73
|
"peerDependencies": {
|
68
74
|
"react": "^18.0.0",
|
@@ -70,11 +76,5 @@
|
|
70
76
|
},
|
71
77
|
"componentConfig": {
|
72
78
|
"materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
|
73
|
-
},
|
74
|
-
"scripts": {
|
75
|
-
"dev": "father dev",
|
76
|
-
"build": "father build",
|
77
|
-
"lowcode:dev": "build-scripts start --config ./build.lowcode.js",
|
78
|
-
"lowcode:build": " build-scripts build --config ./build.lowcode.js"
|
79
79
|
}
|
80
80
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useIsBooking4Shop: (state: any) => any;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const getWaiverTitle: (waiverForm: any[]) => string;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
interface VerticalClientProps {
|
4
|
-
globalState: any;
|
5
|
-
setGlobalState: any;
|
6
|
-
}
|
7
|
-
declare const VerticalClient: React.ForwardRefExoticComponent<VerticalClientProps & React.RefAttributes<unknown>>;
|
8
|
-
export default VerticalClient;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
2
|
-
import './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;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
export interface EditServiceRef {
|
4
|
-
init: (cacheItem?: any, open?: boolean, openEditProduct?: boolean) => void;
|
5
|
-
}
|
6
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
7
|
-
export default _default;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
|
2
|
-
renderMode?: any;
|
3
|
-
onEdit?: any;
|
4
|
-
state?: any;
|
5
|
-
dispatch?: any;
|
6
|
-
}) => {
|
7
|
-
createBookingData: ({ product }: any) => Promise<any>;
|
8
|
-
editBookingData: ({ changeValues }: {
|
9
|
-
changeValues: any;
|
10
|
-
}) => Promise<any>;
|
11
|
-
createBooking: ({ booking }: {
|
12
|
-
booking: any;
|
13
|
-
}) => Promise<void>;
|
14
|
-
editBooking: ({ booking }: {
|
15
|
-
booking: any;
|
16
|
-
}) => Promise<void>;
|
17
|
-
goEditPanel: ({ booking }: {
|
18
|
-
booking: any;
|
19
|
-
}) => void;
|
20
|
-
};
|