@pisell/private-materials 3.0.96 → 3.0.97
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 +16 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +15 -8
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +1 -2
- package/es/components/booking/model.d.ts +1 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/eftpos/const.d.ts +38 -0
- package/es/components/eftpos/const.js +79 -0
- package/es/components/eftpos/device.d.ts +8 -0
- package/es/components/eftpos/device.js +30 -0
- package/es/components/eftpos/form/index.d.ts +16 -0
- package/es/components/eftpos/form/index.js +113 -0
- package/es/components/eftpos/index.d.ts +37 -0
- package/es/components/eftpos/index.js +274 -0
- package/es/components/eftpos/index.less +153 -0
- package/es/components/eftpos/locales.d.ts +75 -0
- package/es/components/eftpos/locales.js +98 -0
- package/es/components/eftpos/pos.d.ts +9 -0
- package/es/components/eftpos/pos.js +33 -0
- package/es/components/eftpos/surcharge/index.css +17 -0
- package/es/components/eftpos/surcharge/index.d.ts +8 -0
- package/es/components/eftpos/surcharge/index.js +111 -0
- package/es/components/eftpos/table.d.ts +17 -0
- package/es/components/eftpos/table.js +236 -0
- package/es/components/eftposPay/amount.d.ts +14 -0
- package/es/components/eftposPay/amount.js +253 -0
- package/es/components/eftposPay/component/alert/index.d.ts +6 -0
- package/es/components/eftposPay/component/alert/index.js +11 -0
- package/es/components/eftposPay/component/alert/index.less +29 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/es/components/eftposPay/component/alert/warn.js +45 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/failCustom.js +95 -0
- package/es/components/eftposPay/component/fail/index.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.js +105 -0
- package/es/components/eftposPay/component/fail/network.d.ts +4 -0
- package/es/components/eftposPay/component/fail/network.js +48 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +4 -0
- package/es/components/eftposPay/component/fail/unknow.js +43 -0
- package/es/components/eftposPay/component/header/index.d.ts +9 -0
- package/es/components/eftposPay/component/header/index.js +66 -0
- package/es/components/eftposPay/component/header/index.less +44 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/es/components/eftposPay/component/header/titlebar.js +39 -0
- package/es/components/eftposPay/component/header/titlebar.less +17 -0
- package/es/components/eftposPay/component/manual/index.d.ts +5 -0
- package/es/components/eftposPay/component/manual/index.js +91 -0
- package/es/components/eftposPay/component/manual/index.less +96 -0
- package/es/components/eftposPay/component/signature/index.d.ts +4 -0
- package/es/components/eftposPay/component/signature/index.js +63 -0
- package/es/components/eftposPay/component/step/index.d.ts +12 -0
- package/es/components/eftposPay/component/step/index.js +31 -0
- package/es/components/eftposPay/component/step/step.d.ts +9 -0
- package/es/components/eftposPay/component/step/step.js +23 -0
- package/es/components/eftposPay/const.d.ts +131 -0
- package/es/components/eftposPay/const.js +48 -0
- package/es/components/eftposPay/device.d.ts +14 -0
- package/es/components/eftposPay/device.js +124 -0
- package/es/components/eftposPay/device.less +61 -0
- package/es/components/eftposPay/eftpos/config.d.ts +11 -0
- package/es/components/eftposPay/eftpos/config.js +178 -0
- package/es/components/eftposPay/eftpos/const.d.ts +10 -0
- package/es/components/eftposPay/eftpos/const.js +139 -0
- package/es/components/eftposPay/eftpos/index.d.ts +7 -0
- package/es/components/eftposPay/eftpos/index.js +35 -0
- package/es/components/eftposPay/helper.d.ts +3 -0
- package/es/components/eftposPay/helper.js +35 -0
- package/es/components/eftposPay/hooks.d.ts +4 -0
- package/es/components/eftposPay/hooks.js +153 -0
- package/es/components/eftposPay/index.d.ts +7 -0
- package/es/components/eftposPay/index.js +188 -0
- package/es/components/eftposPay/index.less +273 -0
- package/es/components/eftposPay/locales.d.ts +264 -0
- package/es/components/eftposPay/locales.js +384 -0
- package/es/components/eftposPay/manufacturer.d.ts +6 -0
- package/es/components/eftposPay/manufacturer.js +32 -0
- package/es/components/eftposPay/pay.d.ts +10 -0
- package/es/components/eftposPay/pay.js +108 -0
- package/es/components/eftposPay/payo/config.d.ts +11 -0
- package/es/components/eftposPay/payo/config.js +357 -0
- package/es/components/eftposPay/payo/const.d.ts +6 -0
- package/es/components/eftposPay/payo/const.js +93 -0
- package/es/components/eftposPay/payo/hooks.d.ts +5 -0
- package/es/components/eftposPay/payo/hooks.js +84 -0
- package/es/components/eftposPay/payo/index.d.ts +7 -0
- package/es/components/eftposPay/payo/index.js +35 -0
- package/es/components/eftposPay/store/index.d.ts +239 -0
- package/es/components/eftposPay/store/index.js +304 -0
- package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/es/components/eftposPay/store/useThunkReducer.js +31 -0
- package/es/components/eftposPay/windcave/action.d.ts +8 -0
- package/es/components/eftposPay/windcave/action.js +104 -0
- package/es/components/eftposPay/windcave/const.d.ts +104 -0
- package/es/components/eftposPay/windcave/const.js +253 -0
- package/es/components/eftposPay/windcave/helper.d.ts +9 -0
- package/es/components/eftposPay/windcave/helper.js +314 -0
- package/es/components/eftposPay/windcave/hook.d.ts +14 -0
- package/es/components/eftposPay/windcave/hook.js +144 -0
- package/es/components/eftposPay/windcave/index.d.ts +8 -0
- package/es/components/eftposPay/windcave/index.js +49 -0
- package/es/components/eftposPay/windcave/pos.d.ts +8 -0
- package/es/components/eftposPay/windcave/pos.js +180 -0
- package/es/components/eftposPay/windcave/pwd.d.ts +8 -0
- package/es/components/eftposPay/windcave/pwd.js +124 -0
- package/es/components/eftposPay/windcave/receipet.d.ts +6 -0
- package/es/components/eftposPay/windcave/receipet.js +67 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +11 -0
- package/es/components/eftposPay/windcave/receiptAction.js +326 -0
- package/es/components/eftposPay/windcave/timer.d.ts +17 -0
- package/es/components/eftposPay/windcave/timer.js +181 -0
- package/es/components/eftposPay/windcave/wait.d.ts +12 -0
- package/es/components/eftposPay/windcave/wait.js +139 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +6 -0
- package/es/components/eftposPay/windcave/windcave.js +283 -0
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/hooks/usePrefix.d.ts +1 -0
- package/es/hooks/usePrefix.js +10 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +1 -2
- package/lib/components/booking/model.d.ts +1 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/eftpos/const.d.ts +38 -0
- package/lib/components/eftpos/const.js +108 -0
- package/lib/components/eftpos/device.d.ts +8 -0
- package/lib/components/eftpos/device.js +55 -0
- package/lib/components/eftpos/form/index.d.ts +16 -0
- package/lib/components/eftpos/form/index.js +124 -0
- package/lib/components/eftpos/index.d.ts +37 -0
- package/lib/components/eftpos/index.js +279 -0
- package/lib/components/eftpos/index.less +153 -0
- package/lib/components/eftpos/locales.d.ts +75 -0
- package/lib/components/eftpos/locales.js +116 -0
- package/lib/components/eftpos/pos.d.ts +9 -0
- package/lib/components/eftpos/pos.js +55 -0
- package/lib/components/eftpos/surcharge/index.css +17 -0
- package/lib/components/eftpos/surcharge/index.d.ts +8 -0
- package/lib/components/eftpos/surcharge/index.js +125 -0
- package/lib/components/eftpos/table.d.ts +17 -0
- package/lib/components/eftpos/table.js +235 -0
- package/lib/components/eftposPay/amount.d.ts +14 -0
- package/lib/components/eftposPay/amount.js +239 -0
- package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
- package/lib/components/eftposPay/component/alert/index.js +38 -0
- package/lib/components/eftposPay/component/alert/index.less +29 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/lib/components/eftposPay/component/alert/warn.js +80 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +117 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.js +121 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/network.js +65 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/unknow.js +72 -0
- package/lib/components/eftposPay/component/header/index.d.ts +9 -0
- package/lib/components/eftposPay/component/header/index.js +92 -0
- package/lib/components/eftposPay/component/header/index.less +44 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/lib/components/eftposPay/component/header/titlebar.js +55 -0
- package/lib/components/eftposPay/component/header/titlebar.less +17 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +5 -0
- package/lib/components/eftposPay/component/manual/index.js +101 -0
- package/lib/components/eftposPay/component/manual/index.less +96 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +4 -0
- package/lib/components/eftposPay/component/signature/index.js +80 -0
- package/lib/components/eftposPay/component/step/index.d.ts +12 -0
- package/lib/components/eftposPay/component/step/index.js +71 -0
- package/lib/components/eftposPay/component/step/step.d.ts +9 -0
- package/lib/components/eftposPay/component/step/step.js +59 -0
- package/lib/components/eftposPay/const.d.ts +131 -0
- package/lib/components/eftposPay/const.js +86 -0
- package/lib/components/eftposPay/device.d.ts +14 -0
- package/lib/components/eftposPay/device.js +127 -0
- package/lib/components/eftposPay/device.less +61 -0
- package/lib/components/eftposPay/eftpos/config.d.ts +11 -0
- package/lib/components/eftposPay/eftpos/config.js +199 -0
- package/lib/components/eftposPay/eftpos/const.d.ts +10 -0
- package/lib/components/eftposPay/eftpos/const.js +165 -0
- package/lib/components/eftposPay/eftpos/index.d.ts +7 -0
- package/lib/components/eftposPay/eftpos/index.js +66 -0
- package/lib/components/eftposPay/helper.d.ts +3 -0
- package/lib/components/eftposPay/helper.js +62 -0
- package/lib/components/eftposPay/hooks.d.ts +4 -0
- package/lib/components/eftposPay/hooks.js +237 -0
- package/lib/components/eftposPay/index.d.ts +7 -0
- package/lib/components/eftposPay/index.js +189 -0
- package/lib/components/eftposPay/index.less +273 -0
- package/lib/components/eftposPay/locales.d.ts +264 -0
- package/lib/components/eftposPay/locales.js +304 -0
- package/lib/components/eftposPay/manufacturer.d.ts +6 -0
- package/lib/components/eftposPay/manufacturer.js +77 -0
- package/lib/components/eftposPay/pay.d.ts +10 -0
- package/lib/components/eftposPay/pay.js +120 -0
- package/lib/components/eftposPay/payo/config.d.ts +11 -0
- package/lib/components/eftposPay/payo/config.js +377 -0
- package/lib/components/eftposPay/payo/const.d.ts +6 -0
- package/lib/components/eftposPay/payo/const.js +112 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
- package/lib/components/eftposPay/payo/hooks.js +80 -0
- package/lib/components/eftposPay/payo/index.d.ts +7 -0
- package/lib/components/eftposPay/payo/index.js +63 -0
- package/lib/components/eftposPay/store/index.d.ts +239 -0
- package/lib/components/eftposPay/store/index.js +371 -0
- package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/lib/components/eftposPay/store/useThunkReducer.js +53 -0
- package/lib/components/eftposPay/windcave/action.d.ts +8 -0
- package/lib/components/eftposPay/windcave/action.js +143 -0
- package/lib/components/eftposPay/windcave/const.d.ts +104 -0
- package/lib/components/eftposPay/windcave/const.js +300 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +9 -0
- package/lib/components/eftposPay/windcave/helper.js +378 -0
- package/lib/components/eftposPay/windcave/hook.d.ts +14 -0
- package/lib/components/eftposPay/windcave/hook.js +139 -0
- package/lib/components/eftposPay/windcave/index.d.ts +8 -0
- package/lib/components/eftposPay/windcave/index.js +78 -0
- package/lib/components/eftposPay/windcave/pos.d.ts +8 -0
- package/lib/components/eftposPay/windcave/pos.js +197 -0
- package/lib/components/eftposPay/windcave/pwd.d.ts +8 -0
- package/lib/components/eftposPay/windcave/pwd.js +143 -0
- package/lib/components/eftposPay/windcave/receipet.d.ts +6 -0
- package/lib/components/eftposPay/windcave/receipet.js +93 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +11 -0
- package/lib/components/eftposPay/windcave/receiptAction.js +386 -0
- package/lib/components/eftposPay/windcave/timer.d.ts +17 -0
- package/lib/components/eftposPay/windcave/timer.js +126 -0
- package/lib/components/eftposPay/windcave/wait.d.ts +12 -0
- package/lib/components/eftposPay/windcave/wait.js +163 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +6 -0
- package/lib/components/eftposPay/windcave/windcave.js +283 -0
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/hooks/usePrefix.d.ts +1 -0
- package/lib/hooks/usePrefix.js +44 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lowcode/eftpos/meta.ts +187 -0
- package/lowcode/eftpos-pay/meta.ts +122 -0
- package/package.json +4 -3
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
.pisell-lowcode__pos_circle {
|
|
2
|
+
width: 50px;
|
|
3
|
+
height: 50px;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
background: currentColor;
|
|
6
|
+
background: #f2f2f7;
|
|
7
|
+
color: #acacac;
|
|
8
|
+
border: 1px solid #f2f2f7;
|
|
9
|
+
}
|
|
10
|
+
.pisell-lowcode__pos_circle.active {
|
|
11
|
+
background: var(--primary-600, #7f56d9);
|
|
12
|
+
color: #fff;
|
|
13
|
+
}
|
|
14
|
+
.pisell-lowcode__pos_circle:hover {
|
|
15
|
+
border-color: #d5d7da;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pisell-lowcode__pos_tabs {
|
|
19
|
+
display: flex;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
.pisell-lowcode__pos_tabs-nav {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
position: relative;
|
|
26
|
+
width: 130px;
|
|
27
|
+
align-items: center;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
}
|
|
30
|
+
.pisell-lowcode__pos_tabs-nav::after {
|
|
31
|
+
content: "";
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
width: 1px;
|
|
37
|
+
background-color: #ececec;
|
|
38
|
+
}
|
|
39
|
+
.pisell-lowcode__pos_tabs-tab-label {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
align-items: center;
|
|
43
|
+
width: 72px;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
padding: 16px 0;
|
|
47
|
+
}
|
|
48
|
+
.pisell-lowcode__pos_tabs-tab-label-tlt {
|
|
49
|
+
color: #0d1619;
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
line-height: 20px;
|
|
54
|
+
}
|
|
55
|
+
.pisell-lowcode__pos_tabs-tab-label-tlt.active {
|
|
56
|
+
color: #7f56d9;
|
|
57
|
+
color: var(--primary-600, #7f56d9);
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
line-height: 20px;
|
|
62
|
+
}
|
|
63
|
+
.pisell-lowcode__pos_tabs-tabpane {
|
|
64
|
+
display: none;
|
|
65
|
+
flex: 1;
|
|
66
|
+
}
|
|
67
|
+
.pisell-lowcode__pos_tabs-tabpane.active {
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
.pisell-lowcode__pos_tab-content {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pisell-lowcode__pos_box {
|
|
76
|
+
height: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pisell-lowcode__pos_drawer {
|
|
80
|
+
transform: translateZ(0);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pisell-lowcode__pos-form-box {
|
|
84
|
+
flex: 1;
|
|
85
|
+
padding: var(--pisell-lc-pos-padding-v, 0)
|
|
86
|
+
var(--pisell-lc-pos-padding-h, 24px);
|
|
87
|
+
height: 100%;
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.pisell-lowcode__pos-form {
|
|
93
|
+
flex: 1;
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.pisell-lowcode__pos-form-content {
|
|
101
|
+
overflow: auto;
|
|
102
|
+
flex: 1;
|
|
103
|
+
}
|
|
104
|
+
.pisell-lowcode__pos-form-btn {
|
|
105
|
+
height: 80px;
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
background: #fff;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.pisell-lowcode__pos-table {
|
|
113
|
+
flex: 1;
|
|
114
|
+
padding: var(--pisell-lc-pos-padding-v, 0)
|
|
115
|
+
var(--pisell-lc-pos-padding-h, 24px);
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
gap: 8px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pisell-lowcode__pos-table-act {
|
|
122
|
+
display: flex;
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
align-items: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.pisell-lowcode__pos-table-col {
|
|
128
|
+
word-wrap: break-word;
|
|
129
|
+
}
|
|
130
|
+
.pisell-lowcode__pos-title {
|
|
131
|
+
margin: 24px 0 16px !important;
|
|
132
|
+
color: var(--base-black, #000) !important;
|
|
133
|
+
font-size: 30px !important;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-weight: 500 !important;
|
|
136
|
+
line-height: 38px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.pisell-lowcode__pos-device {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
padding: 24px 32px 0 !important;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
}
|
|
145
|
+
.pisell-lowcode__pos-device-btn {
|
|
146
|
+
position: fixed;
|
|
147
|
+
left: 0;
|
|
148
|
+
right: 0;
|
|
149
|
+
bottom: 0;
|
|
150
|
+
margin: 24px 32px 0 !important;
|
|
151
|
+
background-color: #fff;
|
|
152
|
+
padding: 0 0 24px 0 !important;
|
|
153
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'page.eftpos.text.manufacturer': string;
|
|
4
|
+
'page.eftpos.text.description': string;
|
|
5
|
+
'page.eftpos.text.status': string;
|
|
6
|
+
'page.eftpos.text.operation': string;
|
|
7
|
+
'page.eftpos.text.device': string;
|
|
8
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
9
|
+
'page.eftpos.text.device.list': string;
|
|
10
|
+
'page.eftpos.text.device.name': string;
|
|
11
|
+
'page.eftpos.text.sucahrge': string;
|
|
12
|
+
'page.eftpos.text.paired': string;
|
|
13
|
+
'page.eftpos.text.unpaired': string;
|
|
14
|
+
'page.eftpos.text.repair': string;
|
|
15
|
+
'page.eftpos.text.edit': string;
|
|
16
|
+
'page.eftpos.text.delete': string;
|
|
17
|
+
'page.eftpos.text.save': string;
|
|
18
|
+
'page.eftpos.text.confim.delete': string;
|
|
19
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
20
|
+
'page.eftpos.text.confim.cancel': string;
|
|
21
|
+
'page.eftpos.text.table.name': string;
|
|
22
|
+
'page.eftpos.text.table.status': string;
|
|
23
|
+
'page.eftpos.text.table.surcharge': string;
|
|
24
|
+
'page.eftpos.text.table.opeartion': string;
|
|
25
|
+
};
|
|
26
|
+
'zh-CN': {
|
|
27
|
+
'page.eftpos.text.manufacturer': string;
|
|
28
|
+
'page.eftpos.text.description': string;
|
|
29
|
+
'page.eftpos.text.status': string;
|
|
30
|
+
'page.eftpos.text.operation': string;
|
|
31
|
+
'page.eftpos.text.device': string;
|
|
32
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
33
|
+
'page.eftpos.text.device.list': string;
|
|
34
|
+
'page.eftpos.text.device.name': string;
|
|
35
|
+
'page.eftpos.text.sucahrge': string;
|
|
36
|
+
'page.eftpos.text.paired': string;
|
|
37
|
+
'page.eftpos.text.unpaired': string;
|
|
38
|
+
'page.eftpos.text.repair': string;
|
|
39
|
+
'page.eftpos.text.edit': string;
|
|
40
|
+
'page.eftpos.text.delete': string;
|
|
41
|
+
'page.eftpos.text.save': string;
|
|
42
|
+
'page.eftpos.text.confim.delete': string;
|
|
43
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
44
|
+
'page.eftpos.text.confim.cancel': string;
|
|
45
|
+
'page.eftpos.text.table.name': string;
|
|
46
|
+
'page.eftpos.text.table.status': string;
|
|
47
|
+
'page.eftpos.text.table.surcharge': string;
|
|
48
|
+
'page.eftpos.text.table.opeartion': string;
|
|
49
|
+
};
|
|
50
|
+
'zh-HK': {
|
|
51
|
+
'page.eftpos.text.manufacturer': string;
|
|
52
|
+
'page.eftpos.text.description': string;
|
|
53
|
+
'page.eftpos.text.status': string;
|
|
54
|
+
'page.eftpos.text.operation': string;
|
|
55
|
+
'page.eftpos.text.device': string;
|
|
56
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
57
|
+
'page.eftpos.text.device.list': string;
|
|
58
|
+
'page.eftpos.text.device.name': string;
|
|
59
|
+
'page.eftpos.text.sucahrge': string;
|
|
60
|
+
'page.eftpos.text.paired': string;
|
|
61
|
+
'page.eftpos.text.unpaired': string;
|
|
62
|
+
'page.eftpos.text.repair': string;
|
|
63
|
+
'page.eftpos.text.edit': string;
|
|
64
|
+
'page.eftpos.text.delete': string;
|
|
65
|
+
'page.eftpos.text.save': string;
|
|
66
|
+
'page.eftpos.text.confim.delete': string;
|
|
67
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
68
|
+
'page.eftpos.text.confim.cancel': string;
|
|
69
|
+
'page.eftpos.text.table.name': string;
|
|
70
|
+
'page.eftpos.text.table.status': string;
|
|
71
|
+
'page.eftpos.text.table.surcharge': string;
|
|
72
|
+
'page.eftpos.text.table.opeartion': string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export default _default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/eftpos/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
"en": {
|
|
27
|
+
"page.eftpos.text.manufacturer": "Manufacturer",
|
|
28
|
+
"page.eftpos.text.description": "Description",
|
|
29
|
+
"page.eftpos.text.status": "status",
|
|
30
|
+
"page.eftpos.text.operation": "Operation",
|
|
31
|
+
"page.eftpos.text.device": "Device",
|
|
32
|
+
"page.eftpos.text.device.add": (status, name) => {
|
|
33
|
+
if (!name) {
|
|
34
|
+
return `Add device`;
|
|
35
|
+
}
|
|
36
|
+
const action = status == "add" ? "Add" : status == "edit" ? "Edit" : "Repair";
|
|
37
|
+
return `${action} ${name} device`;
|
|
38
|
+
},
|
|
39
|
+
"page.eftpos.text.device.list": "Device list",
|
|
40
|
+
"page.eftpos.text.device.name": "Device name",
|
|
41
|
+
"page.eftpos.text.sucahrge": "Sucahrge",
|
|
42
|
+
"page.eftpos.text.paired": "Paired",
|
|
43
|
+
"page.eftpos.text.unpaired": "Unpaired",
|
|
44
|
+
"page.eftpos.text.repair": "Repair",
|
|
45
|
+
"page.eftpos.text.edit": "Edit",
|
|
46
|
+
"page.eftpos.text.delete": "Delete",
|
|
47
|
+
"page.eftpos.text.save": "Save",
|
|
48
|
+
"page.eftpos.text.confim.delete": "Confirm delete",
|
|
49
|
+
"page.eftpos.text.confirm_delete-message": (x) => `Confirm delete ${x} Device`,
|
|
50
|
+
"page.eftpos.text.confim.cancel": "Cancel",
|
|
51
|
+
"page.eftpos.text.table.name": "Device name",
|
|
52
|
+
"page.eftpos.text.table.status": "Status",
|
|
53
|
+
"page.eftpos.text.table.surcharge": "Surcharge",
|
|
54
|
+
"page.eftpos.text.table.opeartion": "Opeartion"
|
|
55
|
+
},
|
|
56
|
+
"zh-CN": {
|
|
57
|
+
"page.eftpos.text.manufacturer": "厂商",
|
|
58
|
+
"page.eftpos.text.description": "描述",
|
|
59
|
+
"page.eftpos.text.status": "状态",
|
|
60
|
+
"page.eftpos.text.operation": "操作",
|
|
61
|
+
"page.eftpos.text.device": "设备",
|
|
62
|
+
"page.eftpos.text.device.add": (status, name) => {
|
|
63
|
+
if (!name) {
|
|
64
|
+
return `添加设备`;
|
|
65
|
+
}
|
|
66
|
+
const action = status == "add" ? "添加" : status == "edit" ? "编辑" : "重新配置";
|
|
67
|
+
return `${action} ${name} 设备`;
|
|
68
|
+
},
|
|
69
|
+
"page.eftpos.text.device.list": "设备列表",
|
|
70
|
+
"page.eftpos.text.device.name": "设备名称",
|
|
71
|
+
"page.eftpos.text.sucahrge": "支付手续费",
|
|
72
|
+
"page.eftpos.text.paired": "已配对",
|
|
73
|
+
"page.eftpos.text.unpaired": "未配对",
|
|
74
|
+
"page.eftpos.text.repair": "重新配置",
|
|
75
|
+
"page.eftpos.text.edit": "编辑",
|
|
76
|
+
"page.eftpos.text.delete": "删除",
|
|
77
|
+
"page.eftpos.text.save": "保存",
|
|
78
|
+
"page.eftpos.text.confim.delete": "确认删除",
|
|
79
|
+
"page.eftpos.text.confirm_delete-message": (x) => `确认删除 ${x} 设备吗?`,
|
|
80
|
+
"page.eftpos.text.confim.cancel": "取消",
|
|
81
|
+
"page.eftpos.text.table.name": "设备名称",
|
|
82
|
+
"page.eftpos.text.table.status": "状态",
|
|
83
|
+
"page.eftpos.text.table.surcharge": "支付手续费",
|
|
84
|
+
"page.eftpos.text.table.opeartion": "操作"
|
|
85
|
+
},
|
|
86
|
+
"zh-HK": {
|
|
87
|
+
"page.eftpos.text.manufacturer": "廠商",
|
|
88
|
+
"page.eftpos.text.description": "描述",
|
|
89
|
+
"page.eftpos.text.status": "狀態",
|
|
90
|
+
"page.eftpos.text.operation": "操作",
|
|
91
|
+
"page.eftpos.text.device": "設備",
|
|
92
|
+
"page.eftpos.text.device.add": (status, name) => {
|
|
93
|
+
if (!name) {
|
|
94
|
+
return `添加設備`;
|
|
95
|
+
}
|
|
96
|
+
const action = status == "add" ? "添加" : status == "edit" ? "編輯" : "重新配置";
|
|
97
|
+
return `${action} ${name} 設備`;
|
|
98
|
+
},
|
|
99
|
+
"page.eftpos.text.device.list": "設備列表",
|
|
100
|
+
"page.eftpos.text.device.name": "設備名稱",
|
|
101
|
+
"page.eftpos.text.sucahrge": "支付手續費",
|
|
102
|
+
"page.eftpos.text.paired": "已配對",
|
|
103
|
+
"page.eftpos.text.unpaired": "未配對",
|
|
104
|
+
"page.eftpos.text.repair": "重新配置",
|
|
105
|
+
"page.eftpos.text.edit": "編輯",
|
|
106
|
+
"page.eftpos.text.delete": "删除",
|
|
107
|
+
"page.eftpos.text.save": "保存",
|
|
108
|
+
"page.eftpos.text.confim.delete": "確認刪除",
|
|
109
|
+
"page.eftpos.text.confirm_delete-message": (x) => `確認刪除 ${x} 設備嗎?`,
|
|
110
|
+
"page.eftpos.text.confim.cancel": "取消",
|
|
111
|
+
"page.eftpos.text.table.name": "設備名稱",
|
|
112
|
+
"page.eftpos.text.table.status": "狀態",
|
|
113
|
+
"page.eftpos.text.table.surcharge": "支付手續費",
|
|
114
|
+
"page.eftpos.text.table.opeartion": "操作"
|
|
115
|
+
}
|
|
116
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DeviceProp } from "./const";
|
|
3
|
+
interface PosProps {
|
|
4
|
+
eftposName: string;
|
|
5
|
+
formItemList: any[];
|
|
6
|
+
onSave: (device: DeviceProp) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PosForm: ({ eftposName, onSave, formItemList }: PosProps) => React.JSX.Element;
|
|
9
|
+
export default PosForm;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/eftpos/pos.tsx
|
|
30
|
+
var pos_exports = {};
|
|
31
|
+
__export(pos_exports, {
|
|
32
|
+
default: () => pos_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pos_exports);
|
|
35
|
+
var import_antd = require("antd");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_const = require("./const");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_form = __toESM(require("./form"));
|
|
40
|
+
var { Title } = import_antd.Typography;
|
|
41
|
+
var PosForm = ({ eftposName, onSave, formItemList }) => {
|
|
42
|
+
const initialValues = (0, import_const.getDefaultValue)(formItemList);
|
|
43
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos-form-box" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 4, className: "pisell-lowcode__pos-title" }, eftposName, " Apikey"), /* @__PURE__ */ import_react.default.createElement(
|
|
44
|
+
import_antd.Form,
|
|
45
|
+
{
|
|
46
|
+
layout: "vertical",
|
|
47
|
+
onFinish: onSave,
|
|
48
|
+
initialValues,
|
|
49
|
+
className: "pisell-lowcode__pos-form"
|
|
50
|
+
},
|
|
51
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos-form-content" }, /* @__PURE__ */ import_react.default.createElement(import_form.default, { formItemList })),
|
|
52
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos-form-btn" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { htmlType: "submit", block: true }, import_utils.locales.getText("page.eftpos.text.save"))))
|
|
53
|
+
));
|
|
54
|
+
};
|
|
55
|
+
var pos_default = PosForm;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.pisell-lowcode__pos_sur_box{
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
.pisell-lowcode__pos_row ,
|
|
6
|
+
.pisell-lowcode__pos_sur {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap:8px
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pisell-lowcode__pos_sur {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
flex: 1;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
export declare const getCommName: (commConfig: any, name: string[]) => any;
|
|
4
|
+
export declare const getCommDefaultVal: (commConfig: any) => {
|
|
5
|
+
[x: number]: any;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/eftpos/surcharge/index.tsx
|
|
30
|
+
var surcharge_exports = {};
|
|
31
|
+
__export(surcharge_exports, {
|
|
32
|
+
default: () => surcharge_default,
|
|
33
|
+
getCommDefaultVal: () => getCommDefaultVal,
|
|
34
|
+
getCommName: () => getCommName
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(surcharge_exports);
|
|
37
|
+
var import_antd = require("antd");
|
|
38
|
+
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
40
|
+
var import_index = require("./index.css");
|
|
41
|
+
var getCommName = (commConfig, name) => {
|
|
42
|
+
commConfig.top.__sourceName = commConfig.top.name;
|
|
43
|
+
commConfig.left.__sourceName = commConfig.left.name;
|
|
44
|
+
commConfig.right.__sourceName = commConfig.right.name;
|
|
45
|
+
commConfig.top.name = name.length > 0 ? [...name, commConfig.top.name] : commConfig.top.name;
|
|
46
|
+
commConfig.left.name = name.length > 0 ? [...name, commConfig.left.name] : commConfig.left.name;
|
|
47
|
+
commConfig.right.name = name.length > 0 ? [...name, commConfig.right.name] : commConfig.right.name;
|
|
48
|
+
return commConfig;
|
|
49
|
+
};
|
|
50
|
+
var getCommDefaultVal = (commConfig) => {
|
|
51
|
+
let top = commConfig.top.input.defaultValue;
|
|
52
|
+
return {
|
|
53
|
+
[commConfig.top.__sourceName]: typeof top === "undefined" ? true : top,
|
|
54
|
+
[commConfig.left.__sourceName]: commConfig.left.input.defaultValue || 0,
|
|
55
|
+
[commConfig.right.__sourceName]: commConfig.right.input.defaultValue || 0
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
var surcharge_default = (props) => {
|
|
59
|
+
var _a, _b, _c, _d;
|
|
60
|
+
const { top, left, right } = props;
|
|
61
|
+
const leftRef = (0, import_react.useRef)(left.input.default || 0);
|
|
62
|
+
const rightRef = (0, import_react.useRef)(right.input.default || 0);
|
|
63
|
+
const [status, setStatus] = (0, import_react.useState)(top.input.defaultValue);
|
|
64
|
+
const context = (0, import_useEngineContext.default)();
|
|
65
|
+
const { store } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
66
|
+
const symbol = ((_d = (_c = (_b = store == null ? void 0 : store.getState) == null ? void 0 : _b.call(store)) == null ? void 0 : _c.global) == null ? void 0 : _d.symbol) || "$";
|
|
67
|
+
const onValueChange = (e) => {
|
|
68
|
+
setStatus(e.target.value);
|
|
69
|
+
};
|
|
70
|
+
const onChangeRate = (val) => {
|
|
71
|
+
leftRef.current = val;
|
|
72
|
+
};
|
|
73
|
+
const onChangeMoney = (val) => {
|
|
74
|
+
rightRef.current = val;
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos_sur_box" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { label: top.label, name: top.name, rules: top.rules || [] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Group, { value: top.input.defaultValue, onChange: onValueChange }, /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { direction: "vertical" }, top.input.options.map((item) => {
|
|
77
|
+
if (typeof item === "object") {
|
|
78
|
+
const { label, value, ...other } = item;
|
|
79
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { ...other, value, key: `${item.value}` }, label);
|
|
80
|
+
}
|
|
81
|
+
})))), status ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos_row" }, /* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
import_antd.Form.Item,
|
|
83
|
+
{
|
|
84
|
+
label: left.label,
|
|
85
|
+
name: left.name,
|
|
86
|
+
rules: left.rules || []
|
|
87
|
+
},
|
|
88
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
89
|
+
import_antd.InputNumber,
|
|
90
|
+
{
|
|
91
|
+
min: 0,
|
|
92
|
+
max: 100,
|
|
93
|
+
precision: 2,
|
|
94
|
+
addonAfter: "%",
|
|
95
|
+
controls: false,
|
|
96
|
+
defaultValue: leftRef.current,
|
|
97
|
+
onChange: onChangeRate
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos_sur" }, /* @__PURE__ */ import_react.default.createElement(
|
|
101
|
+
import_antd.Form.Item,
|
|
102
|
+
{
|
|
103
|
+
label: right.label,
|
|
104
|
+
name: right.name,
|
|
105
|
+
rules: right.rules || []
|
|
106
|
+
},
|
|
107
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
108
|
+
import_antd.InputNumber,
|
|
109
|
+
{
|
|
110
|
+
min: 0,
|
|
111
|
+
max: 1e5,
|
|
112
|
+
precision: 2,
|
|
113
|
+
addonBefore: symbol,
|
|
114
|
+
controls: false,
|
|
115
|
+
defaultValue: rightRef.current,
|
|
116
|
+
onChange: onChangeMoney
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
))) : null);
|
|
120
|
+
};
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
getCommDefaultVal,
|
|
124
|
+
getCommName
|
|
125
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Eftpos, DeviceProp } from './const';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
4
|
+
type: Eftpos;
|
|
5
|
+
eftposName: string;
|
|
6
|
+
tableSize?: number[] | undefined;
|
|
7
|
+
style?: React.CSSProperties | undefined;
|
|
8
|
+
getList: (params: {
|
|
9
|
+
type: Eftpos;
|
|
10
|
+
num: number;
|
|
11
|
+
skip: number;
|
|
12
|
+
}) => Promise<any>;
|
|
13
|
+
onEdit: (device?: DeviceProp | undefined) => void;
|
|
14
|
+
onDel: (id: string | number) => Promise<any>;
|
|
15
|
+
onRepair: (device: DeviceProp) => void;
|
|
16
|
+
} & React.RefAttributes<unknown>>;
|
|
17
|
+
export default _default;
|