@pisell/private-materials 6.4.20 → 6.4.22
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 +18 -10
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/info/main.js +2 -2
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/ticketBooking/components/ticketBooking/index.js +12 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/info/main.js +5 -5
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/ticketBooking/components/ticketBooking/index.js +8 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/package.json +2 -2
- package/es/hooks/useEngineContext.d.ts +0 -3
- package/lib/hooks/useEngineContext.d.ts +0 -3
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
30
30
|
* @return {*}
|
31
31
|
* @Author: xiangfeng.xue
|
32
32
|
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) =>
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
34
34
|
/**
|
35
35
|
* 计算所有价格明细
|
36
36
|
* @param items - 购物车商品数组
|
@@ -36,7 +36,7 @@ var defaultModules = {
|
|
36
36
|
};
|
37
37
|
locales.init(localeTexts, getLocale());
|
38
38
|
var Info = Provider(function (props) {
|
39
|
-
var _modal$state2, _modal$state3,
|
39
|
+
var _modal$state2, _modal$state3, _modal$state4;
|
40
40
|
var style = props.style,
|
41
41
|
globalState = props.globalState,
|
42
42
|
_props$modules = props.modules,
|
@@ -128,7 +128,7 @@ var Info = Provider(function (props) {
|
|
128
128
|
}, [modules.note, globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, globalState.render, (_modal$state3 = modal.state) === null || _modal$state3 === void 0 || (_modal$state3 = _modal$state3.notes) === null || _modal$state3 === void 0 ? void 0 : _modal$state3.orderNote]);
|
129
129
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane, {
|
130
130
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
131
|
-
height:
|
131
|
+
height: '100%'
|
132
132
|
}),
|
133
133
|
header: header,
|
134
134
|
footer: /*#__PURE__*/React.createElement(Footer, {
|
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
165
165
|
export declare const getDuration: (duration: number | {
|
166
166
|
type: string;
|
167
167
|
value: number;
|
168
|
-
}) => number |
|
168
|
+
}) => number | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
};
|
171
|
+
} | "flexible";
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
175
175
|
type: EActionTypes;
|
176
176
|
payload: {
|
177
|
-
status: "loading" | "
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -295,9 +295,9 @@ 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" | "fullPay" | "pay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "stripe" | "
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
310
310
|
form?: string | undefined;
|
311
|
-
status?: "loading" | "
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|
@@ -277,6 +277,18 @@ var TicketBooking = function TicketBooking() {
|
|
277
277
|
var buildNumberStr = terminalVersionMatch[1];
|
278
278
|
var buildNumber = parseInt(buildNumberStr, 10);
|
279
279
|
|
280
|
+
// 白标terminal
|
281
|
+
if (userAgent.includes('com.funtovia.pos') && !isNaN(buildNumber) && buildNumber > 0 && buildNumber < 7) {
|
282
|
+
setShowTerminalUpgradeModal(true);
|
283
|
+
return;
|
284
|
+
}
|
285
|
+
|
286
|
+
// 白标terminal
|
287
|
+
if (userAgent.includes('com.bbpet.pos') && !isNaN(buildNumber) && buildNumber > 0 && buildNumber < 6) {
|
288
|
+
setShowTerminalUpgradeModal(true);
|
289
|
+
return;
|
290
|
+
}
|
291
|
+
|
280
292
|
// 确保解析成功且是有效数字
|
281
293
|
if (!isNaN(buildNumber) && buildNumber > 0 && buildNumber < 766) {
|
282
294
|
setShowTerminalUpgradeModal(true);
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
30
30
|
* @return {*}
|
31
31
|
* @Author: xiangfeng.xue
|
32
32
|
*/
|
33
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) =>
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
34
34
|
/**
|
35
35
|
* 计算所有价格明细
|
36
36
|
* @param items - 购物车商品数组
|
@@ -64,7 +64,7 @@ var defaultModules = {
|
|
64
64
|
};
|
65
65
|
import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
|
66
66
|
var Info = (0, import_model.Provider)((props) => {
|
67
|
-
var _a, _b, _c, _d, _e, _f, _g
|
67
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
68
68
|
const { style, globalState, modules = defaultModules, slot } = props;
|
69
69
|
const modal = (0, import_react.useContext)(import_model.Context);
|
70
70
|
const context = (0, import_useEngineContext.default)();
|
@@ -90,7 +90,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
90
90
|
}
|
91
91
|
}, []);
|
92
92
|
(0, import_react.useEffect)(() => {
|
93
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2,
|
93
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m;
|
94
94
|
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");
|
95
95
|
modal.dispatch({
|
96
96
|
type: "setState",
|
@@ -99,7 +99,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
99
99
|
...globalState,
|
100
100
|
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),
|
101
101
|
isFranchisee,
|
102
|
-
timezone: (_m = (_l = (_k = (_j = (
|
102
|
+
timezone: (_m = (_l = (_k = (_j = (_i = (_h = context == null ? void 0 : context.appHelper) == null ? void 0 : _h.utils) == null ? void 0 : _i.store) == null ? void 0 : _j.getState()) == null ? void 0 : _k.global) == null ? void 0 : _l.globalConfig) == null ? void 0 : _m.timezone,
|
103
103
|
isDayBooking: (globalState == null ? void 0 : globalState.renderType) === "dayBooking"
|
104
104
|
}
|
105
105
|
});
|
@@ -152,7 +152,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
152
152
|
{
|
153
153
|
style: {
|
154
154
|
...style,
|
155
|
-
height:
|
155
|
+
height: "100%"
|
156
156
|
},
|
157
157
|
header,
|
158
158
|
footer: /* @__PURE__ */ import_react.default.createElement(
|
@@ -171,7 +171,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
171
171
|
dispatch: modal.dispatch,
|
172
172
|
source: "info"
|
173
173
|
},
|
174
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((
|
174
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((_g = modal.state) == null ? void 0 : _g.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(
|
175
175
|
import_antd.Skeleton,
|
176
176
|
{
|
177
177
|
loading: globalState.loading,
|
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
165
165
|
export declare const getDuration: (duration: number | {
|
166
166
|
type: string;
|
167
167
|
value: number;
|
168
|
-
}) => number |
|
168
|
+
}) => number | {
|
169
169
|
type: string;
|
170
170
|
value: number;
|
171
|
-
};
|
171
|
+
} | "flexible";
|
172
172
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
173
|
export declare const getIsEdit: (state: any) => boolean;
|
174
174
|
export {};
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
18
|
-
readonly statusRef: React.MutableRefObject<"loading" | "
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
175
175
|
type: EActionTypes;
|
176
176
|
payload: {
|
177
|
-
status: "loading" | "
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
178
178
|
};
|
179
179
|
};
|
180
180
|
/**
|
@@ -295,9 +295,9 @@ 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" | "fullPay" | "pay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "stripe" | "
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
308
308
|
net?: boolean | undefined;
|
309
309
|
component?: string | undefined;
|
310
310
|
form?: string | undefined;
|
311
|
-
status?: "loading" | "
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
312
312
|
warn?: string | undefined;
|
313
313
|
steps?: {
|
314
314
|
/** 用于重置当前步骤 */
|
@@ -282,6 +282,14 @@ var TicketBooking = () => {
|
|
282
282
|
if (terminalVersionMatch && terminalVersionMatch[1]) {
|
283
283
|
const buildNumberStr = terminalVersionMatch[1];
|
284
284
|
const buildNumber = parseInt(buildNumberStr, 10);
|
285
|
+
if (userAgent.includes("com.funtovia.pos") && !isNaN(buildNumber) && buildNumber > 0 && buildNumber < 7) {
|
286
|
+
setShowTerminalUpgradeModal(true);
|
287
|
+
return;
|
288
|
+
}
|
289
|
+
if (userAgent.includes("com.bbpet.pos") && !isNaN(buildNumber) && buildNumber > 0 && buildNumber < 6) {
|
290
|
+
setShowTerminalUpgradeModal(true);
|
291
|
+
return;
|
292
|
+
}
|
285
293
|
if (!isNaN(buildNumber) && buildNumber > 0 && buildNumber < 766) {
|
286
294
|
setShowTerminalUpgradeModal(true);
|
287
295
|
}
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.4.
|
3
|
+
"version": "6.4.22",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"module": "./es/index.js",
|
6
6
|
"types": "./lib/index.d.ts",
|
@@ -59,9 +59,9 @@
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
60
60
|
"react-resizable": "^3.0.5",
|
61
61
|
"styled-components": "^6.0.0-rc.3",
|
62
|
-
"@pisell/date-picker": "3.0.7",
|
63
62
|
"@pisell/materials": "6.4.3",
|
64
63
|
"@pisell/utils": "3.0.2",
|
64
|
+
"@pisell/date-picker": "3.0.7",
|
65
65
|
"@pisell/icon": "0.0.11"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|