@pisell/private-materials 3.0.136 → 3.0.138
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.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/forms/single/index.js +3 -0
- package/es/components/eftpos/const.d.ts +26 -0
- package/es/components/eftpos/const.js +40 -8
- package/es/components/eftpos/device.d.ts +3 -2
- package/es/components/eftpos/device.js +6 -5
- package/es/components/eftpos/form/index.d.ts +5 -0
- package/es/components/eftpos/form/index.js +8 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/{eftposPay/windcave/hook.js → eftpos/hooks.js} +96 -122
- package/es/components/eftpos/icon/apiKey.d.ts +5 -0
- package/es/components/eftpos/icon/apiKey.js +17 -0
- package/es/components/eftpos/icon/device.d.ts +5 -0
- package/es/components/eftpos/icon/device.js +19 -0
- package/es/components/eftpos/index.d.ts +10 -0
- package/es/components/eftpos/index.js +329 -46
- package/es/components/eftpos/index.less +38 -1
- package/es/components/eftpos/locales.d.ts +12 -0
- package/es/components/eftpos/locales.js +15 -3
- package/es/components/eftpos/log.d.ts +8 -0
- package/es/components/eftpos/log.js +85 -0
- package/es/components/eftpos/pos.d.ts +1 -1
- package/es/components/eftpos/pos.js +8 -5
- package/es/components/eftpos/surcharge/index.d.ts +25 -2
- package/es/components/eftpos/surcharge/index.js +100 -16
- package/es/components/eftpos/table.d.ts +4 -0
- package/es/components/eftpos/table.js +102 -10
- package/es/components/eftposPay/amount.d.ts +7 -1
- package/es/components/eftposPay/amount.js +65 -38
- package/es/components/eftposPay/component/fail/failCustom.js +65 -20
- package/es/components/eftposPay/component/fail/index.js +60 -30
- package/es/components/eftposPay/component/fail/network.d.ts +5 -0
- package/es/components/eftposPay/component/fail/network.js +13 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +6 -0
- package/es/components/eftposPay/component/fail/unknow.js +18 -3
- package/es/components/eftposPay/component/header/index.d.ts +2 -1
- package/es/components/eftposPay/component/header/index.js +4 -1
- package/es/components/eftposPay/component/header/index.less +1 -10
- package/es/components/eftposPay/component/manual/index.d.ts +6 -1
- package/es/components/eftposPay/component/manual/index.js +174 -23
- package/es/components/eftposPay/component/manual/index.less +42 -14
- package/es/components/eftposPay/component/signature/index.d.ts +5 -0
- package/es/components/eftposPay/component/signature/index.js +20 -2
- package/es/components/eftposPay/component/step/index.d.ts +7 -7
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/const.d.ts +19 -4
- package/es/components/eftposPay/const.js +4 -2
- package/es/components/eftposPay/device.d.ts +7 -0
- package/es/components/eftposPay/device.js +22 -0
- package/es/components/eftposPay/helper.d.ts +54 -0
- package/es/components/eftposPay/helper.js +93 -1
- package/es/components/eftposPay/hooks.d.ts +30 -1
- package/es/components/eftposPay/hooks.js +181 -26
- package/es/components/eftposPay/index.d.ts +2 -4
- package/es/components/eftposPay/index.js +119 -31
- package/es/components/eftposPay/index.less +27 -19
- package/es/components/eftposPay/locales.d.ts +45 -0
- package/es/components/eftposPay/locales.js +348 -3
- package/es/components/eftposPay/manufacturer.d.ts +2 -2
- package/es/components/eftposPay/manufacturer.js +9 -10
- package/es/components/eftposPay/pay.d.ts +10 -1
- package/es/components/eftposPay/pay.js +112 -34
- package/es/components/eftposPay/payo/config.js +137 -270
- package/es/components/eftposPay/payo/const.d.ts +22 -2
- package/es/components/eftposPay/payo/const.js +83 -33
- package/es/components/eftposPay/payo/hooks.d.ts +5 -0
- package/es/components/eftposPay/payo/hooks.js +19 -2
- package/es/components/eftposPay/store/index.d.ts +154 -53
- package/es/components/eftposPay/store/index.js +112 -60
- package/es/components/eftposPay/tyro/const.d.ts +17 -0
- package/es/components/eftposPay/{eftpos → tyro}/const.js +71 -90
- package/es/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/es/components/eftposPay/tyro/hooks.js +40 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/tyro/index.js +575 -0
- package/es/components/eftposPay/windcave/const.d.ts +24 -9
- package/es/components/eftposPay/windcave/const.js +90 -81
- package/es/components/eftposPay/windcave/helper.d.ts +16 -2
- package/es/components/eftposPay/windcave/helper.js +175 -42
- package/es/components/eftposPay/windcave/receiptAction.d.ts +12 -0
- package/es/components/eftposPay/windcave/receiptAction.js +91 -43
- package/es/components/eftposPay/windcave/timer.d.ts +13 -1
- package/es/components/eftposPay/windcave/timer.js +18 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +2 -1
- package/es/components/eftposPay/windcave/windcave.js +155 -139
- package/es/utils/load.d.ts +11 -0
- package/es/utils/load.js +85 -0
- package/lib/components/booking/forms/single/index.js +1 -0
- package/lib/components/eftpos/const.d.ts +26 -0
- package/lib/components/eftpos/const.js +13 -1
- package/lib/components/eftpos/device.d.ts +3 -2
- package/lib/components/eftpos/device.js +2 -2
- package/lib/components/eftpos/form/index.d.ts +5 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/hooks.js +106 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +5 -0
- package/lib/components/eftpos/icon/apiKey.js +57 -0
- package/lib/components/eftpos/icon/device.d.ts +5 -0
- package/lib/components/eftpos/icon/device.js +57 -0
- package/lib/components/eftpos/index.d.ts +10 -0
- package/lib/components/eftpos/index.js +262 -97
- package/lib/components/eftpos/index.less +38 -1
- package/lib/components/eftpos/locales.d.ts +12 -0
- package/lib/components/eftpos/locales.js +15 -3
- package/lib/components/eftpos/log.d.ts +8 -0
- package/lib/components/eftpos/log.js +87 -0
- package/lib/components/eftpos/pos.d.ts +1 -1
- package/lib/components/eftpos/pos.js +5 -4
- package/lib/components/eftpos/surcharge/index.d.ts +25 -2
- package/lib/components/eftpos/surcharge/index.js +36 -6
- package/lib/components/eftpos/table.d.ts +4 -0
- package/lib/components/eftpos/table.js +40 -8
- package/lib/components/eftposPay/amount.d.ts +7 -1
- package/lib/components/eftposPay/amount.js +10 -33
- package/lib/components/eftposPay/component/fail/failCustom.js +27 -6
- package/lib/components/eftposPay/component/fail/index.js +39 -18
- package/lib/components/eftposPay/component/fail/network.d.ts +5 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +6 -0
- package/lib/components/eftposPay/component/fail/unknow.js +3 -3
- package/lib/components/eftposPay/component/header/index.d.ts +2 -1
- package/lib/components/eftposPay/component/header/index.js +2 -1
- package/lib/components/eftposPay/component/header/index.less +1 -10
- package/lib/components/eftposPay/component/manual/index.d.ts +6 -1
- package/lib/components/eftposPay/component/manual/index.js +122 -31
- package/lib/components/eftposPay/component/manual/index.less +42 -14
- package/lib/components/eftposPay/component/signature/index.d.ts +5 -0
- package/lib/components/eftposPay/component/signature/index.js +2 -2
- package/lib/components/eftposPay/component/step/index.d.ts +7 -7
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/const.d.ts +19 -4
- package/lib/components/eftposPay/const.js +3 -1
- package/lib/components/eftposPay/device.d.ts +7 -0
- package/lib/components/eftposPay/helper.d.ts +54 -0
- package/lib/components/eftposPay/helper.js +64 -0
- package/lib/components/eftposPay/hooks.d.ts +30 -1
- package/lib/components/eftposPay/hooks.js +182 -44
- package/lib/components/eftposPay/index.d.ts +2 -4
- package/lib/components/eftposPay/index.js +74 -27
- package/lib/components/eftposPay/index.less +27 -19
- package/lib/components/eftposPay/locales.d.ts +45 -0
- package/lib/components/eftposPay/locales.js +352 -3
- package/lib/components/eftposPay/manufacturer.d.ts +2 -2
- package/lib/components/eftposPay/manufacturer.js +13 -13
- package/lib/components/eftposPay/pay.d.ts +10 -1
- package/lib/components/eftposPay/pay.js +86 -25
- package/lib/components/eftposPay/payo/config.js +121 -268
- package/lib/components/eftposPay/payo/const.d.ts +22 -2
- package/lib/components/eftposPay/payo/const.js +55 -36
- package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
- package/lib/components/eftposPay/payo/hooks.js +1 -1
- package/lib/components/eftposPay/store/index.d.ts +154 -53
- package/lib/components/eftposPay/store/index.js +7 -66
- package/lib/components/eftposPay/tyro/const.d.ts +17 -0
- package/lib/components/eftposPay/tyro/const.js +114 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/lib/components/eftposPay/{eftpos/index.js → tyro/hooks.js} +31 -36
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/tyro/index.js +558 -0
- package/lib/components/eftposPay/windcave/const.d.ts +24 -9
- package/lib/components/eftposPay/windcave/const.js +53 -104
- package/lib/components/eftposPay/windcave/helper.d.ts +16 -2
- package/lib/components/eftposPay/windcave/helper.js +163 -48
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +12 -0
- package/lib/components/eftposPay/windcave/receiptAction.js +15 -47
- package/lib/components/eftposPay/windcave/timer.d.ts +13 -1
- package/lib/components/eftposPay/windcave/timer.js +5 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +2 -1
- package/lib/components/eftposPay/windcave/windcave.js +130 -130
- package/lib/utils/load.d.ts +11 -0
- package/lib/utils/load.js +100 -0
- package/lowcode/eftpos/meta.ts +202 -160
- package/lowcode/eftpos-pay/meta.ts +45 -12
- package/package.json +4 -4
- package/es/components/eftposPay/eftpos/config.d.ts +0 -11
- package/es/components/eftposPay/eftpos/config.js +0 -178
- package/es/components/eftposPay/eftpos/const.d.ts +0 -10
- package/es/components/eftposPay/eftpos/index.d.ts +0 -7
- package/es/components/eftposPay/eftpos/index.js +0 -35
- package/es/components/eftposPay/windcave/action.d.ts +0 -8
- package/es/components/eftposPay/windcave/action.js +0 -104
- package/es/components/eftposPay/windcave/hook.d.ts +0 -14
- package/es/components/eftposPay/windcave/index.d.ts +0 -8
- package/es/components/eftposPay/windcave/index.js +0 -49
- package/es/components/eftposPay/windcave/pos.d.ts +0 -8
- package/es/components/eftposPay/windcave/pos.js +0 -180
- package/es/components/eftposPay/windcave/pwd.d.ts +0 -8
- package/es/components/eftposPay/windcave/pwd.js +0 -124
- package/es/components/eftposPay/windcave/receipet.d.ts +0 -6
- package/es/components/eftposPay/windcave/receipet.js +0 -67
- package/es/components/eftposPay/windcave/wait.d.ts +0 -12
- package/es/components/eftposPay/windcave/wait.js +0 -139
- package/lib/components/eftposPay/eftpos/config.d.ts +0 -11
- package/lib/components/eftposPay/eftpos/config.js +0 -199
- package/lib/components/eftposPay/eftpos/const.d.ts +0 -10
- package/lib/components/eftposPay/eftpos/const.js +0 -165
- package/lib/components/eftposPay/eftpos/index.d.ts +0 -7
- package/lib/components/eftposPay/windcave/action.d.ts +0 -8
- package/lib/components/eftposPay/windcave/action.js +0 -143
- package/lib/components/eftposPay/windcave/hook.d.ts +0 -14
- package/lib/components/eftposPay/windcave/hook.js +0 -139
- package/lib/components/eftposPay/windcave/index.d.ts +0 -8
- package/lib/components/eftposPay/windcave/index.js +0 -78
- package/lib/components/eftposPay/windcave/pos.d.ts +0 -8
- package/lib/components/eftposPay/windcave/pos.js +0 -197
- package/lib/components/eftposPay/windcave/pwd.d.ts +0 -8
- package/lib/components/eftposPay/windcave/pwd.js +0 -143
- package/lib/components/eftposPay/windcave/receipet.d.ts +0 -6
- package/lib/components/eftposPay/windcave/receipet.js +0 -93
- package/lib/components/eftposPay/windcave/wait.d.ts +0 -12
- package/lib/components/eftposPay/windcave/wait.js +0 -163
package/lowcode/eftpos/meta.ts
CHANGED
|
@@ -1,187 +1,229 @@
|
|
|
1
|
-
|
|
2
1
|
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
2
|
const EftposMeta: ComponentMetadata = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
componentName: 'Eftpos',
|
|
4
|
+
title: 'Eftpos',
|
|
5
|
+
docUrl: '',
|
|
6
|
+
screenshot: '',
|
|
7
|
+
devMode: 'proCode',
|
|
8
|
+
npm: {
|
|
9
|
+
package: '@pisell/private-materials',
|
|
10
|
+
version: '1.0.4',
|
|
11
|
+
exportName: 'Eftpos',
|
|
12
|
+
main: 'src/index.ts',
|
|
13
|
+
destructuring: true,
|
|
14
|
+
subName: '',
|
|
16
15
|
},
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
configure: {
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
title: {
|
|
20
|
+
label: {
|
|
21
|
+
type: 'i18n',
|
|
22
|
+
'en-US': 'type',
|
|
23
|
+
'zh-CN': 'type',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
name: 'type',
|
|
27
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: {
|
|
31
|
+
label: {
|
|
32
|
+
type: 'i18n',
|
|
33
|
+
'en-US': 'name',
|
|
34
|
+
'zh-CN': 'name',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
name: 'name',
|
|
38
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
{
|
|
42
|
+
title: {
|
|
43
|
+
label: {
|
|
44
|
+
type: 'i18n',
|
|
45
|
+
'en-US': 'config',
|
|
46
|
+
'zh-CN': 'config',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
name: 'config',
|
|
50
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: {
|
|
54
|
+
label: {
|
|
55
|
+
type: 'i18n',
|
|
56
|
+
'en-US': 'tyroUrl',
|
|
57
|
+
'zh-CN': 'tyroUrl',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
name: 'tyroUrl',
|
|
61
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: {
|
|
65
|
+
label: {
|
|
66
|
+
type: 'i18n',
|
|
67
|
+
'en-US': 'tyroVersion',
|
|
68
|
+
'zh-CN': 'tyroVersion',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
name: 'tyroVersion',
|
|
72
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: {
|
|
76
|
+
label: {
|
|
77
|
+
type: 'i18n',
|
|
78
|
+
'en-US': 'useTyroLog',
|
|
79
|
+
'zh-CN': 'useTyroLog',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
name: 'useTyroLog',
|
|
83
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: {
|
|
87
|
+
label: {
|
|
88
|
+
type: 'i18n',
|
|
89
|
+
'en-US': 'tableSize',
|
|
90
|
+
'zh-CN': 'tableSize',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
name: 'tableSize',
|
|
94
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: {
|
|
98
|
+
label: {
|
|
99
|
+
type: 'i18n',
|
|
100
|
+
'en-US': 'zIndex',
|
|
101
|
+
'zh-CN': 'zIndex',
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
name: 'zIndex',
|
|
105
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: {
|
|
109
|
+
label: {
|
|
110
|
+
type: 'i18n',
|
|
111
|
+
'en-US': 'getField',
|
|
112
|
+
'zh-CN': 'getField',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
name: 'getField',
|
|
116
|
+
setter: ['FunctionSetter'],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: {
|
|
120
|
+
label: {
|
|
121
|
+
type: 'i18n',
|
|
122
|
+
'en-US': 'getComm',
|
|
123
|
+
'zh-CN': 'getComm',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
name: 'getComm',
|
|
127
|
+
setter: ['FunctionSetter'],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
title: {
|
|
131
|
+
label: {
|
|
132
|
+
type: 'i18n',
|
|
133
|
+
'en-US': 'getEfdId',
|
|
134
|
+
'zh-CN': 'getEfdId',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
name: 'getEfdId',
|
|
138
|
+
setter: ['FunctionSetter'],
|
|
139
|
+
},
|
|
19
140
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"title": {
|
|
32
|
-
"label": {
|
|
33
|
-
"type": "i18n",
|
|
34
|
-
"en-US": "name",
|
|
35
|
-
"zh-CN": "name"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"name": "name",
|
|
39
|
-
"setter": ["JsonSetter", "VariableSetter"],
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"title": {
|
|
43
|
-
"label": {
|
|
44
|
-
"type": "i18n",
|
|
45
|
-
"en-US": "tableSize",
|
|
46
|
-
"zh-CN": "tableSize"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"name": "tableSize",
|
|
50
|
-
"setter": ["JsonSetter", "VariableSetter"],
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"title": {
|
|
54
|
-
"label": {
|
|
55
|
-
"type": "i18n",
|
|
56
|
-
"en-US": "zIndex",
|
|
57
|
-
"zh-CN": "zIndex"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"name": "zIndex",
|
|
61
|
-
"setter": ["JsonSetter", "VariableSetter"],
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"title": {
|
|
65
|
-
"label": {
|
|
66
|
-
"type": "i18n",
|
|
67
|
-
"en-US": "getField",
|
|
68
|
-
"zh-CN": "getField"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"name": "getField",
|
|
72
|
-
"setter": [ "FunctionSetter"],
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"title": {
|
|
76
|
-
"label": {
|
|
77
|
-
"type": "i18n",
|
|
78
|
-
"en-US": "getComm",
|
|
79
|
-
"zh-CN": "getComm"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"name": "getComm",
|
|
83
|
-
"setter": ["FunctionSetter"],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"title": {
|
|
87
|
-
"label": {
|
|
88
|
-
"type": "i18n",
|
|
89
|
-
"en-US": "getEfdId",
|
|
90
|
-
"zh-CN": "getEfdId"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"name": "getEfdId",
|
|
94
|
-
"setter": [ "FunctionSetter"],
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"title": {
|
|
98
|
-
"label": {
|
|
99
|
-
"type": "i18n",
|
|
100
|
-
"en-US": "getList",
|
|
101
|
-
"zh-CN": "getList"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"name": "getList",
|
|
105
|
-
"setter": ["FunctionSetter"],
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"title": {
|
|
109
|
-
"label": {
|
|
110
|
-
"type": "i18n",
|
|
111
|
-
"en-US": "onEdit",
|
|
112
|
-
"zh-CN": "onEdit"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"name": "onEdit",
|
|
116
|
-
"setter": ["FunctionSetter"],
|
|
117
|
-
},
|
|
118
|
-
|
|
141
|
+
title: {
|
|
142
|
+
label: {
|
|
143
|
+
type: 'i18n',
|
|
144
|
+
'en-US': 'getList',
|
|
145
|
+
'zh-CN': 'getList',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
name: 'getList',
|
|
149
|
+
setter: ['FunctionSetter'],
|
|
150
|
+
},
|
|
119
151
|
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
152
|
+
title: {
|
|
153
|
+
label: {
|
|
154
|
+
type: 'i18n',
|
|
155
|
+
'en-US': 'onEdit',
|
|
156
|
+
'zh-CN': 'onEdit',
|
|
157
|
+
},
|
|
126
158
|
},
|
|
127
|
-
|
|
128
|
-
|
|
159
|
+
name: 'onEdit',
|
|
160
|
+
setter: ['FunctionSetter'],
|
|
129
161
|
},
|
|
130
162
|
|
|
131
163
|
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
164
|
+
title: {
|
|
165
|
+
label: {
|
|
166
|
+
type: 'i18n',
|
|
167
|
+
'en-US': 'onDel',
|
|
168
|
+
'zh-CN': 'onDel',
|
|
169
|
+
},
|
|
138
170
|
},
|
|
139
|
-
|
|
140
|
-
|
|
171
|
+
name: 'onDel',
|
|
172
|
+
setter: ['FunctionSetter'],
|
|
141
173
|
},
|
|
174
|
+
|
|
142
175
|
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
176
|
+
title: {
|
|
177
|
+
label: {
|
|
178
|
+
type: 'i18n',
|
|
179
|
+
'en-US': 'onEditKey',
|
|
180
|
+
'zh-CN': 'onEditKey',
|
|
181
|
+
},
|
|
149
182
|
},
|
|
150
|
-
|
|
151
|
-
|
|
183
|
+
name: 'onEditKey',
|
|
184
|
+
setter: ['FunctionSetter'],
|
|
152
185
|
},
|
|
153
186
|
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
187
|
+
title: {
|
|
188
|
+
label: {
|
|
189
|
+
type: 'i18n',
|
|
190
|
+
'en-US': 'getPosComm',
|
|
191
|
+
'zh-CN': 'getPosComm',
|
|
192
|
+
},
|
|
160
193
|
},
|
|
161
|
-
|
|
162
|
-
|
|
194
|
+
name: 'getPosComm',
|
|
195
|
+
setter: ['FunctionSetter'],
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
title: {
|
|
199
|
+
label: {
|
|
200
|
+
type: 'i18n',
|
|
201
|
+
'en-US': 'savePos',
|
|
202
|
+
'zh-CN': 'savePos',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
name: 'savePos',
|
|
206
|
+
setter: ['FunctionSetter'],
|
|
163
207
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
208
|
],
|
|
167
|
-
|
|
168
|
-
|
|
209
|
+
supports: {
|
|
210
|
+
style: true,
|
|
169
211
|
},
|
|
170
|
-
|
|
171
|
-
}
|
|
212
|
+
component: {},
|
|
213
|
+
},
|
|
172
214
|
};
|
|
173
215
|
const snippets: Snippet[] = [
|
|
174
216
|
{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
}
|
|
217
|
+
title: 'Eftpos',
|
|
218
|
+
screenshot: '',
|
|
219
|
+
schema: {
|
|
220
|
+
componentName: 'Eftpos',
|
|
221
|
+
props: {},
|
|
222
|
+
},
|
|
223
|
+
},
|
|
182
224
|
];
|
|
183
225
|
|
|
184
226
|
export default {
|
|
185
227
|
...EftposMeta,
|
|
186
|
-
snippets
|
|
228
|
+
snippets,
|
|
187
229
|
};
|
|
@@ -31,11 +31,33 @@ const PayMeta: ComponentMetadata = {
|
|
|
31
31
|
title: {
|
|
32
32
|
label: {
|
|
33
33
|
type: 'i18n',
|
|
34
|
-
'en-US': '
|
|
35
|
-
'zh-CN': '
|
|
34
|
+
'en-US': 'tyroUrl',
|
|
35
|
+
'zh-CN': 'tyroUrl',
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
-
name: '
|
|
38
|
+
name: 'tyroUrl',
|
|
39
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: {
|
|
43
|
+
label: {
|
|
44
|
+
type: 'i18n',
|
|
45
|
+
'en-US': 'tyroVersion',
|
|
46
|
+
'zh-CN': 'tyroVersion',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
name: 'tyroVersion',
|
|
50
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: {
|
|
54
|
+
label: {
|
|
55
|
+
type: 'i18n',
|
|
56
|
+
'en-US': 'source',
|
|
57
|
+
'zh-CN': 'source',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
name: 'source',
|
|
39
61
|
setter: ['JsonSetter', 'VariableSetter'],
|
|
40
62
|
},
|
|
41
63
|
{
|
|
@@ -71,6 +93,17 @@ const PayMeta: ComponentMetadata = {
|
|
|
71
93
|
name: 'onChangeStatus',
|
|
72
94
|
setter: ['FunctionSetter'],
|
|
73
95
|
},
|
|
96
|
+
{
|
|
97
|
+
title: {
|
|
98
|
+
label: {
|
|
99
|
+
type: 'i18n',
|
|
100
|
+
'en-US': 'onChangeParams',
|
|
101
|
+
'zh-CN': 'onChangeParams',
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
name: 'onChangeParams',
|
|
105
|
+
setter: ['FunctionSetter'],
|
|
106
|
+
},
|
|
74
107
|
{
|
|
75
108
|
title: {
|
|
76
109
|
label: {
|
|
@@ -83,16 +116,16 @@ const PayMeta: ComponentMetadata = {
|
|
|
83
116
|
setter: ['FunctionSetter'],
|
|
84
117
|
},
|
|
85
118
|
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
119
|
+
title: {
|
|
120
|
+
label: {
|
|
121
|
+
type: 'i18n',
|
|
122
|
+
'en-US': 'params',
|
|
123
|
+
'zh-CN': 'params',
|
|
124
|
+
},
|
|
92
125
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
126
|
+
name: 'params',
|
|
127
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
128
|
+
},
|
|
96
129
|
],
|
|
97
130
|
supports: {
|
|
98
131
|
style: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.138",
|
|
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/
|
|
63
|
-
"@pisell/materials": "3.0.47",
|
|
62
|
+
"@pisell/date-picker": "1.0.100",
|
|
64
63
|
"@pisell/utils": "1.0.42",
|
|
65
|
-
"@pisell/
|
|
64
|
+
"@pisell/icon": "0.0.11",
|
|
65
|
+
"@pisell/materials": "3.0.47"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const POS: () => React.JSX.Element;
|
|
3
|
-
export declare const Surcharge: () => React.JSX.Element;
|
|
4
|
-
export declare const Card: () => React.JSX.Element;
|
|
5
|
-
export declare const Pwd: () => React.JSX.Element;
|
|
6
|
-
export declare const Receipet: () => React.JSX.Element;
|
|
7
|
-
export declare const ReceipetAgain: () => React.JSX.Element;
|
|
8
|
-
export declare const Wait: () => React.JSX.Element;
|
|
9
|
-
export declare const Action: ({ index }: {
|
|
10
|
-
index: number;
|
|
11
|
-
}) => React.JSX.Element;
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
var _excluded = ["key"],
|
|
2
|
-
_excluded2 = ["key"],
|
|
3
|
-
_excluded3 = ["key"],
|
|
4
|
-
_excluded4 = ["key"],
|
|
5
|
-
_excluded5 = ["key"],
|
|
6
|
-
_excluded6 = ["key"],
|
|
7
|
-
_excluded7 = ["key"];
|
|
8
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
/* eslint-disable no-unused-vars */
|
|
11
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
12
|
-
import { locales } from '@pisell/utils';
|
|
13
|
-
import { Button } from 'antd';
|
|
14
|
-
import React, { useEffect } from 'react';
|
|
15
|
-
import Step from "../component/step";
|
|
16
|
-
import { useContextData, useDispatch, updateNextStep, updateStatus, updateComponent, updateSteps, updateWarn, updateStep, updateState } from "../store";
|
|
17
|
-
export var POS = function POS() {
|
|
18
|
-
var dispatch = useDispatch();
|
|
19
|
-
var _useContextData = useContextData(),
|
|
20
|
-
steps = _useContextData.steps;
|
|
21
|
-
var _steps$ = steps[0],
|
|
22
|
-
key = _steps$.key,
|
|
23
|
-
props = _objectWithoutProperties(_steps$, _excluded);
|
|
24
|
-
useEffect(function () {
|
|
25
|
-
setTimeout(function () {
|
|
26
|
-
dispatch(updateStep({
|
|
27
|
-
step: 1
|
|
28
|
-
}));
|
|
29
|
-
}, 2000);
|
|
30
|
-
}, []);
|
|
31
|
-
return /*#__PURE__*/React.createElement(Step, props);
|
|
32
|
-
};
|
|
33
|
-
export var Surcharge = function Surcharge() {
|
|
34
|
-
var dispatch = useDispatch();
|
|
35
|
-
var _useContextData2 = useContextData(),
|
|
36
|
-
steps = _useContextData2.steps;
|
|
37
|
-
var _steps$2 = steps[1],
|
|
38
|
-
key = _steps$2.key,
|
|
39
|
-
props = _objectWithoutProperties(_steps$2, _excluded2);
|
|
40
|
-
useEffect(function () {
|
|
41
|
-
setTimeout(function () {
|
|
42
|
-
dispatch(updateStep({
|
|
43
|
-
step: 2
|
|
44
|
-
}));
|
|
45
|
-
}, 4000);
|
|
46
|
-
}, []);
|
|
47
|
-
return /*#__PURE__*/React.createElement(Step, props);
|
|
48
|
-
};
|
|
49
|
-
export var Card = function Card() {
|
|
50
|
-
var dispatch = useDispatch();
|
|
51
|
-
var _useContextData3 = useContextData(),
|
|
52
|
-
steps = _useContextData3.steps;
|
|
53
|
-
var _steps$3 = steps[2],
|
|
54
|
-
key = _steps$3.key,
|
|
55
|
-
props = _objectWithoutProperties(_steps$3, _excluded3);
|
|
56
|
-
useEffect(function () {
|
|
57
|
-
setTimeout(function () {
|
|
58
|
-
dispatch(updateStep({
|
|
59
|
-
step: 3
|
|
60
|
-
}));
|
|
61
|
-
}, 200);
|
|
62
|
-
}, []);
|
|
63
|
-
return /*#__PURE__*/React.createElement(Step, props);
|
|
64
|
-
};
|
|
65
|
-
export var Pwd = function Pwd() {
|
|
66
|
-
var dispatch = useDispatch();
|
|
67
|
-
var _useContextData4 = useContextData(),
|
|
68
|
-
steps = _useContextData4.steps;
|
|
69
|
-
var _steps$4 = steps[3],
|
|
70
|
-
key = _steps$4.key,
|
|
71
|
-
props = _objectWithoutProperties(_steps$4, _excluded4);
|
|
72
|
-
useEffect(function () {
|
|
73
|
-
setTimeout(function () {
|
|
74
|
-
dispatch(updateStep({
|
|
75
|
-
step: 4
|
|
76
|
-
}));
|
|
77
|
-
}, 200);
|
|
78
|
-
}, []);
|
|
79
|
-
return /*#__PURE__*/React.createElement(Step, props);
|
|
80
|
-
};
|
|
81
|
-
//
|
|
82
|
-
export var Receipet = function Receipet() {
|
|
83
|
-
var dispatch = useDispatch();
|
|
84
|
-
var _useContextData5 = useContextData(),
|
|
85
|
-
steps = _useContextData5.steps;
|
|
86
|
-
var _steps$5 = steps[4],
|
|
87
|
-
key = _steps$5.key,
|
|
88
|
-
props = _objectWithoutProperties(_steps$5, _excluded5);
|
|
89
|
-
useEffect(function () {
|
|
90
|
-
setTimeout(function () {
|
|
91
|
-
dispatch(updateStep({
|
|
92
|
-
step: 5
|
|
93
|
-
}));
|
|
94
|
-
dispatch(updateStatus('warn'));
|
|
95
|
-
dispatch(updateWarn(locales.getText('page.eftpos-pay.text.receipt.again.text')));
|
|
96
|
-
}, 200);
|
|
97
|
-
}, []);
|
|
98
|
-
return /*#__PURE__*/React.createElement(Step, props);
|
|
99
|
-
};
|
|
100
|
-
export var ReceipetAgain = function ReceipetAgain() {
|
|
101
|
-
var _useContextData6 = useContextData(),
|
|
102
|
-
steps = _useContextData6.steps;
|
|
103
|
-
var _steps$6 = steps[5],
|
|
104
|
-
key = _steps$6.key,
|
|
105
|
-
props = _objectWithoutProperties(_steps$6, _excluded6);
|
|
106
|
-
return /*#__PURE__*/React.createElement(Step, props);
|
|
107
|
-
};
|
|
108
|
-
export var Wait = function Wait() {
|
|
109
|
-
var dispatch = useDispatch();
|
|
110
|
-
var _useContextData7 = useContextData(),
|
|
111
|
-
steps = _useContextData7.steps,
|
|
112
|
-
mode = _useContextData7.mode;
|
|
113
|
-
var _steps$7 = steps[6],
|
|
114
|
-
key = _steps$7.key,
|
|
115
|
-
props = _objectWithoutProperties(_steps$7, _excluded7);
|
|
116
|
-
useEffect(function () {
|
|
117
|
-
setTimeout(function () {
|
|
118
|
-
dispatch(updateNextStep());
|
|
119
|
-
}, 200);
|
|
120
|
-
}, []);
|
|
121
|
-
return /*#__PURE__*/React.createElement(Step, props);
|
|
122
|
-
};
|
|
123
|
-
export var Action = function Action(_ref) {
|
|
124
|
-
var index = _ref.index;
|
|
125
|
-
var dispatch = useDispatch();
|
|
126
|
-
var data = useContextData();
|
|
127
|
-
var onCancel = function onCancel() {
|
|
128
|
-
dispatch(updateComponent('Fail'));
|
|
129
|
-
data.steps[index].fail = locales.getText('page.eftpos-pay.text.cancel');
|
|
130
|
-
dispatch(updateSteps(data.steps));
|
|
131
|
-
};
|
|
132
|
-
var onAccept = function onAccept() {
|
|
133
|
-
console.log('index 内 = ', index);
|
|
134
|
-
dispatch(updateNextStep());
|
|
135
|
-
};
|
|
136
|
-
var onDecline = function onDecline() {
|
|
137
|
-
dispatch(updateComponent('Signature'));
|
|
138
|
-
};
|
|
139
|
-
var onManually = function onManually() {
|
|
140
|
-
dispatch(updateState({
|
|
141
|
-
manual: {
|
|
142
|
-
title: locales.getText('page.eftpos-pay.text.request.title')(data.mode),
|
|
143
|
-
text: locales.getText('page.eftpos-pay.text.request.text')(data.mode)
|
|
144
|
-
}
|
|
145
|
-
}));
|
|
146
|
-
dispatch(updateComponent('Manual'));
|
|
147
|
-
};
|
|
148
|
-
if (index < 5) {
|
|
149
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
150
|
-
className: "pisell-lowcode__eft-pay-step-item-btns"
|
|
151
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
152
|
-
block: true,
|
|
153
|
-
className: "pisell-lowcode__eft-pay-step-item-btn",
|
|
154
|
-
onClick: onCancel
|
|
155
|
-
}, locales.getText('page.eftpos-pay.text.cancel')));
|
|
156
|
-
}
|
|
157
|
-
if (index === 5) {
|
|
158
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
159
|
-
className: "pisell-lowcode__eft-pay-step-item-btns"
|
|
160
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
161
|
-
block: true,
|
|
162
|
-
className: "pisell-lowcode__eft-pay-step-item-btn",
|
|
163
|
-
onClick: onDecline
|
|
164
|
-
}, locales.getText('page.eftpos-pay.text.decline')), /*#__PURE__*/React.createElement(Button, {
|
|
165
|
-
block: true,
|
|
166
|
-
type: "primary",
|
|
167
|
-
className: "pisell-lowcode__eft-pay-step-item-btn",
|
|
168
|
-
onClick: onAccept
|
|
169
|
-
}, locales.getText('page.eftpos-pay.text.accept')));
|
|
170
|
-
}
|
|
171
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
172
|
-
className: "pisell-lowcode__eft-pay-step-item-btns"
|
|
173
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
174
|
-
block: true,
|
|
175
|
-
className: "pisell-lowcode__eft-pay-step-item-btn",
|
|
176
|
-
onClick: onManually
|
|
177
|
-
}, locales.getText('page.eftpos-pay.text.manual.marking')));
|
|
178
|
-
};
|