@pisell/private-materials 3.0.141 → 3.0.142
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 +4 -4
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/eftposPay/amount.js +1 -1
- package/es/components/eftposPay/component/fail/failCustom.js +5 -6
- package/es/components/eftposPay/component/fail/index.js +5 -5
- package/es/components/eftposPay/component/manual/index.js +1 -1
- package/es/components/eftposPay/const.d.ts +2 -0
- package/es/components/eftposPay/const.js +1 -0
- package/es/components/eftposPay/device.d.ts +3 -2
- package/es/components/eftposPay/device.js +100 -38
- package/es/components/eftposPay/device.less +37 -4
- package/es/components/eftposPay/helper.d.ts +11 -0
- package/es/components/eftposPay/helper.js +29 -6
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +4 -1
- package/es/components/eftposPay/index.js +22 -11
- package/es/components/eftposPay/locales.js +45 -45
- package/es/components/eftposPay/payo/config.js +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/index.js +8 -2
- package/es/components/eftposPay/windcave/windcave.js +2 -2
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +2 -1
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/eftposPay/amount.js +2 -6
- package/lib/components/eftposPay/component/fail/failCustom.js +5 -6
- package/lib/components/eftposPay/component/fail/index.js +5 -5
- package/lib/components/eftposPay/component/manual/index.js +1 -1
- package/lib/components/eftposPay/const.d.ts +2 -0
- package/lib/components/eftposPay/const.js +1 -0
- package/lib/components/eftposPay/device.d.ts +3 -2
- package/lib/components/eftposPay/device.js +73 -32
- package/lib/components/eftposPay/device.less +37 -4
- package/lib/components/eftposPay/helper.d.ts +11 -0
- package/lib/components/eftposPay/helper.js +26 -4
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +4 -1
- package/lib/components/eftposPay/index.js +16 -6
- package/lib/components/eftposPay/locales.js +45 -45
- package/lib/components/eftposPay/payo/config.js +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/index.js +9 -8
- package/lib/components/eftposPay/windcave/windcave.js +2 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +2 -1
- package/lowcode/eftpos-pay/meta.ts +11 -0
- package/lowcode/vertical-add-service/meta.ts +71 -0
- package/package.json +4 -4
|
@@ -258,9 +258,7 @@ var tyro_default = ({
|
|
|
258
258
|
dispatch(
|
|
259
259
|
(0, import_store.updateState)({
|
|
260
260
|
status: "loading",
|
|
261
|
-
title: import_utils.locales.getText("page.eftpos-pay.text.loading")(
|
|
262
|
-
modeRef.current || import_const.ModeEnum.Pay
|
|
263
|
-
),
|
|
261
|
+
title: import_utils.locales.getText("page.eftpos-pay.text.loading")(modeRef.current),
|
|
264
262
|
subTitle: ""
|
|
265
263
|
})
|
|
266
264
|
);
|
|
@@ -288,7 +286,7 @@ var tyro_default = ({
|
|
|
288
286
|
);
|
|
289
287
|
};
|
|
290
288
|
const transactionCompleteCallbackImpl = (response) => {
|
|
291
|
-
var _a;
|
|
289
|
+
var _a, _b;
|
|
292
290
|
setStatus(-1);
|
|
293
291
|
setManually(false);
|
|
294
292
|
console.log(
|
|
@@ -358,6 +356,11 @@ var tyro_default = ({
|
|
|
358
356
|
});
|
|
359
357
|
}, 1e3);
|
|
360
358
|
return;
|
|
359
|
+
} else {
|
|
360
|
+
const current = ((_b = deviceRef.current) == null ? void 0 : _b.setting.receipts) ? [] : receipt;
|
|
361
|
+
if (current.length > 0) {
|
|
362
|
+
onChange("print", current);
|
|
363
|
+
}
|
|
361
364
|
}
|
|
362
365
|
if (response.result === "UNKNOWN") {
|
|
363
366
|
dispatch(
|
|
@@ -401,7 +404,7 @@ var tyro_default = ({
|
|
|
401
404
|
return;
|
|
402
405
|
}
|
|
403
406
|
if (!numRef.current) {
|
|
404
|
-
if (modeRef.current === import_const.ModeEnum.Pay) {
|
|
407
|
+
if (modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay) {
|
|
405
408
|
getTerminalInfo(payOrder);
|
|
406
409
|
} else if (modeRef.current === import_const.ModeEnum.Refund) {
|
|
407
410
|
getTerminalInfo(refundOrder);
|
|
@@ -498,9 +501,7 @@ var tyro_default = ({
|
|
|
498
501
|
(0, import_store.updateCustom)({
|
|
499
502
|
failCustom: {
|
|
500
503
|
status: "fail",
|
|
501
|
-
fail: import_utils.locales.getText(
|
|
502
|
-
"page.eftpos-pay.text.transaction.fail.cancel"
|
|
503
|
-
),
|
|
504
|
+
fail: import_utils.locales.getText("page.eftpos-pay.text.transaction.fail.cancel"),
|
|
504
505
|
title: import_utils.locales.getText(
|
|
505
506
|
"page.eftpos-pay.text.transaction.fail.cancel.title"
|
|
506
507
|
),
|
|
@@ -158,7 +158,7 @@ var windcave_default = ({
|
|
|
158
158
|
number: numRef.current
|
|
159
159
|
})
|
|
160
160
|
);
|
|
161
|
-
const resultPromise = modeRef.current === import_const.ModeEnum.Pay ? api.pay(
|
|
161
|
+
const resultPromise = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay ? api.pay(
|
|
162
162
|
{
|
|
163
163
|
order_id: orderIdRef.current,
|
|
164
164
|
amount: payRef.current.total,
|
|
@@ -231,7 +231,7 @@ var windcave_default = ({
|
|
|
231
231
|
var _a;
|
|
232
232
|
if (listRef.current.length === 0) {
|
|
233
233
|
let totalUnit = "";
|
|
234
|
-
if (modeRef.current === import_const.ModeEnum.Pay) {
|
|
234
|
+
if (modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay) {
|
|
235
235
|
totalUnit = (_a = payRef.current) == null ? void 0 : _a.totalUnit;
|
|
236
236
|
} else if (modeRef.current === import_const.ModeEnum.Refund) {
|
|
237
237
|
if (payRef.current) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,7 +69,7 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
72
73
|
state: FormState;
|
|
73
74
|
} & {
|
|
74
75
|
dispatch: (params: {
|
|
@@ -27,6 +27,17 @@ const PayMeta: ComponentMetadata = {
|
|
|
27
27
|
name: 'type',
|
|
28
28
|
setter: ['JsonSetter', 'VariableSetter'],
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
title: {
|
|
32
|
+
label: {
|
|
33
|
+
type: 'i18n',
|
|
34
|
+
'en-US': 'key',
|
|
35
|
+
'zh-CN': 'key',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
name: 'key',
|
|
39
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
40
|
+
},
|
|
30
41
|
{
|
|
31
42
|
title: {
|
|
32
43
|
label: {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const VerticalAddServiceMeta: ComponentMetadata = {
|
|
5
|
+
"componentName": "VerticalAddService",
|
|
6
|
+
"title": "VerticalAddService",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@pisell/private-materials",
|
|
12
|
+
"version": "3.0.141",
|
|
13
|
+
"exportName": "VerticalAddService",
|
|
14
|
+
"main": "src/index.ts",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "globalState",
|
|
25
|
+
"zh-CN": "globalState"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "globalState",
|
|
29
|
+
"setter": {
|
|
30
|
+
"componentName": "MixedSetter",
|
|
31
|
+
"isRequired": true,
|
|
32
|
+
"props": {}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": {
|
|
37
|
+
"label": {
|
|
38
|
+
"type": "i18n",
|
|
39
|
+
"en-US": "setGlobalState",
|
|
40
|
+
"zh-CN": "setGlobalState"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"name": "setGlobalState",
|
|
44
|
+
"setter": {
|
|
45
|
+
"componentName": "MixedSetter",
|
|
46
|
+
"isRequired": true,
|
|
47
|
+
"props": {}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"supports": {
|
|
52
|
+
"style": true
|
|
53
|
+
},
|
|
54
|
+
"component": {}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const snippets: Snippet[] = [
|
|
58
|
+
{
|
|
59
|
+
"title": "VerticalAddService",
|
|
60
|
+
"screenshot": "",
|
|
61
|
+
"schema": {
|
|
62
|
+
"componentName": "VerticalAddService",
|
|
63
|
+
"props": {}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
export default {
|
|
69
|
+
...VerticalAddServiceMeta,
|
|
70
|
+
snippets
|
|
71
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.142",
|
|
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": "1.0.42",
|
|
63
|
-
"@pisell/materials": "3.0.47",
|
|
64
62
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/
|
|
63
|
+
"@pisell/utils": "1.0.42",
|
|
64
|
+
"@pisell/date-picker": "1.0.100",
|
|
65
|
+
"@pisell/materials": "3.0.47"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|