@pisell/private-materials 6.4.42 → 6.4.43
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 +146 -146
- 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 +8 -8
- package/es/components/booking/components/actionButtons/index.js +37 -42
- package/es/components/booking/components/actionButtons/index.less +0 -28
- package/es/components/booking/components/footer/amount.d.ts +3 -3
- package/es/components/booking/components/footer/amount.js +13 -2
- package/es/components/booking/components/footer/index.js +168 -68
- package/es/components/booking/components/footer/utils.js +62 -33
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/addService/index.js +2 -1
- package/es/components/booking/info2/index.js +42 -2
- package/es/components/booking/info2/service/addService/index.js +2 -1
- package/es/components/booking/info2/service/editService/index.js +12 -4
- package/es/components/checkout/PaymentModal.d.ts +2 -0
- package/es/components/checkout/PaymentModal.js +395 -240
- package/es/components/checkout/components/AdditionalModule/index.less +1 -1
- package/es/components/checkout/components/AmountSummary/index.js +161 -54
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/es/components/checkout/components/CashPaymentModule/index.js +114 -137
- package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +210 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
- package/es/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
- package/es/components/checkout/components/WalletPassModule/index.js +3 -2
- package/es/components/checkout/components/WalletPassModule/utils.js +6 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +2 -0
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +33 -0
- package/es/components/checkout/locales.js +39 -3
- package/es/components/checkout/types.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +143 -71
- package/es/components/shoppingCart/components/Cart/index.js +1 -1
- package/es/components/shoppingCart/components/Cart/index.less +31 -0
- package/es/components/shoppingCart/locales.d.ts +3 -0
- package/es/components/shoppingCart/locales.js +12 -3
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +310 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +442 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
- package/es/pro/priceKeyboard/index.d.ts +3 -0
- package/es/pro/priceKeyboard/index.js +3 -0
- package/es/pro/priceKeyboard/index.less +215 -0
- package/es/pro/priceKeyboard/utils.d.ts +31 -0
- package/es/pro/priceKeyboard/utils.js +51 -0
- package/es/pro/skuDetailModal/index.js +19 -16
- package/lib/components/booking/components/actionButtons/index.js +31 -28
- package/lib/components/booking/components/actionButtons/index.less +0 -28
- package/lib/components/booking/components/footer/amount.d.ts +3 -3
- package/lib/components/booking/components/footer/amount.js +10 -4
- package/lib/components/booking/components/footer/index.js +107 -40
- package/lib/components/booking/components/footer/utils.js +35 -7
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/addService/index.js +2 -1
- package/lib/components/booking/info2/index.js +18 -1
- package/lib/components/booking/info2/service/addService/index.js +2 -1
- package/lib/components/booking/info2/service/editService/index.js +12 -4
- package/lib/components/checkout/PaymentModal.d.ts +2 -0
- package/lib/components/checkout/PaymentModal.js +152 -73
- package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
- package/lib/components/checkout/components/AmountSummary/index.js +114 -40
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/lib/components/checkout/components/CashPaymentModule/index.js +103 -140
- package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +172 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
- package/lib/components/checkout/components/WalletPassModule/index.js +3 -2
- package/lib/components/checkout/components/WalletPassModule/utils.js +4 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +2 -0
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +33 -0
- package/lib/components/checkout/locales.js +39 -3
- package/lib/components/checkout/types.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
- package/lib/components/shoppingCart/components/Cart/index.js +1 -1
- package/lib/components/shoppingCart/components/Cart/index.less +31 -0
- package/lib/components/shoppingCart/locales.d.ts +3 -0
- package/lib/components/shoppingCart/locales.js +6 -3
- package/lib/components/ticketBooking/index.js +5 -1
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +332 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +485 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
- package/lib/pro/priceKeyboard/index.d.ts +3 -0
- package/lib/pro/priceKeyboard/index.js +45 -0
- package/lib/pro/priceKeyboard/index.less +215 -0
- package/lib/pro/priceKeyboard/utils.d.ts +31 -0
- package/lib/pro/priceKeyboard/utils.js +75 -0
- package/lib/pro/skuDetailModal/index.js +18 -22
- package/package.json +4 -4
@@ -0,0 +1,399 @@
|
|
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/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.tsx
|
30
|
+
var CashKeyboardSimple_exports = {};
|
31
|
+
__export(CashKeyboardSimple_exports, {
|
32
|
+
default: () => CashKeyboardSimple_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(CashKeyboardSimple_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_ahooks = require("ahooks");
|
37
|
+
var import_decimal = __toESM(require("decimal.js"));
|
38
|
+
var import_lodash = require("lodash");
|
39
|
+
var import_utils = require("@pisell/utils");
|
40
|
+
var import_antd = require("antd");
|
41
|
+
var import_materials = require("@pisell/materials");
|
42
|
+
var import_shortcuts = __toESM(require("../shortcuts"));
|
43
|
+
var import_rightItems = __toESM(require("../../hooks/rightItems"));
|
44
|
+
var import_keyActions = __toESM(require("../../hooks/keyActions"));
|
45
|
+
var import_utils2 = require("../../utils");
|
46
|
+
var import_index = require("./index.less");
|
47
|
+
var CashKeyboardBase = (props) => {
|
48
|
+
var _a, _b, _c;
|
49
|
+
const {
|
50
|
+
amountSymbol,
|
51
|
+
titleArea,
|
52
|
+
originalValue = "",
|
53
|
+
displayField,
|
54
|
+
presets,
|
55
|
+
keyboardProps,
|
56
|
+
style,
|
57
|
+
min,
|
58
|
+
max,
|
59
|
+
selectType = "light",
|
60
|
+
placeholder = "",
|
61
|
+
doneText,
|
62
|
+
resetText
|
63
|
+
} = props;
|
64
|
+
const [internalValue, setInternalValue] = (0, import_ahooks.useControllableValue)(props);
|
65
|
+
const uniqueId = (0, import_react.useId)();
|
66
|
+
const uniqueKeyboardId = `virtual-keyboard-${uniqueId.replace(/:/g, "-")}`;
|
67
|
+
const shortcutsRef = (0, import_react.useRef)(null);
|
68
|
+
const [isFirstInput, setIsFirstInput] = (0, import_react.useState)(true);
|
69
|
+
const changeDue = (0, import_react.useMemo)(() => {
|
70
|
+
return Math.max(
|
71
|
+
0,
|
72
|
+
new import_decimal.default(internalValue || 0).minus(new import_decimal.default(originalValue || 0)).toNumber()
|
73
|
+
);
|
74
|
+
}, [internalValue, originalValue]);
|
75
|
+
(0, import_react.useEffect)(() => {
|
76
|
+
(0, import_utils2.setKeyboardTheme)(selectType);
|
77
|
+
}, [selectType]);
|
78
|
+
const onReset = (0, import_react.useCallback)(() => {
|
79
|
+
var _a2;
|
80
|
+
setInternalValue(String(originalValue));
|
81
|
+
setIsFirstInput(true);
|
82
|
+
(_a2 = props == null ? void 0 : props.onReset) == null ? void 0 : _a2.call(props);
|
83
|
+
}, [props == null ? void 0 : props.onReset, setInternalValue, originalValue]);
|
84
|
+
const _handleValChange = (0, import_react.useCallback)((val) => {
|
85
|
+
setInternalValue(val);
|
86
|
+
setIsFirstInput(false);
|
87
|
+
}, []);
|
88
|
+
const { handleChange } = (0, import_keyActions.default)({
|
89
|
+
onEnter: props.onEnter,
|
90
|
+
onReset,
|
91
|
+
onChange: _handleValChange,
|
92
|
+
value: internalValue,
|
93
|
+
min,
|
94
|
+
max,
|
95
|
+
scale: 2,
|
96
|
+
mode: isFirstInput ? "replace" : "append"
|
97
|
+
});
|
98
|
+
const rightItems = (0, import_rightItems.default)({
|
99
|
+
rightItemsStyle: {},
|
100
|
+
doneText: doneText || import_utils.locales.getText("cash-keyboard-pay"),
|
101
|
+
resetText: resetText || import_utils.locales.getText("cash-keyboard-reset")
|
102
|
+
});
|
103
|
+
const getDefaultPresets = (0, import_react.useCallback)(() => {
|
104
|
+
const userPresets = presets || [];
|
105
|
+
const limitedPresets = userPresets.slice(0, 4);
|
106
|
+
while (limitedPresets.length < 4) {
|
107
|
+
limitedPresets.push({
|
108
|
+
label: "",
|
109
|
+
value: "",
|
110
|
+
style: {
|
111
|
+
visibility: "hidden",
|
112
|
+
pointerEvents: "none"
|
113
|
+
}
|
114
|
+
});
|
115
|
+
}
|
116
|
+
return limitedPresets;
|
117
|
+
}, [presets]);
|
118
|
+
const getDefaultDisplayField = (0, import_react.useCallback)(() => {
|
119
|
+
return {
|
120
|
+
cashReceived: {
|
121
|
+
visible: true,
|
122
|
+
label: import_utils.locales.getText("cash-keyboard-cash-received")
|
123
|
+
},
|
124
|
+
balanceDue: {
|
125
|
+
visible: true,
|
126
|
+
label: import_utils.locales.getText("cash-keyboard-balance-due")
|
127
|
+
},
|
128
|
+
changeDue: {
|
129
|
+
visible: true,
|
130
|
+
label: import_utils.locales.getText("cash-keyboard-change-due")
|
131
|
+
},
|
132
|
+
gridRatio: [2, 1, 1]
|
133
|
+
// Cash Received 占 2 份,其他各占 1 份
|
134
|
+
};
|
135
|
+
}, []);
|
136
|
+
const defaultTitleArea = {
|
137
|
+
title: {
|
138
|
+
visible: true
|
139
|
+
},
|
140
|
+
subtitle: {
|
141
|
+
visible: true
|
142
|
+
},
|
143
|
+
alignment: "space-between",
|
144
|
+
padding: "0px"
|
145
|
+
};
|
146
|
+
const mergedTitleArea = (0, import_react.useMemo)(
|
147
|
+
() => (0, import_lodash.merge)({}, defaultTitleArea, titleArea),
|
148
|
+
[titleArea]
|
149
|
+
);
|
150
|
+
const mergedDisplayField = (0, import_react.useMemo)(
|
151
|
+
() => (0, import_lodash.merge)({}, getDefaultDisplayField(), displayField),
|
152
|
+
[getDefaultDisplayField, displayField]
|
153
|
+
);
|
154
|
+
const renderTitleArea = (0, import_react.useCallback)(() => {
|
155
|
+
const { title, subtitle } = mergedTitleArea || {};
|
156
|
+
if (!(title == null ? void 0 : title.visible) && !(subtitle == null ? void 0 : subtitle.visible)) {
|
157
|
+
return null;
|
158
|
+
}
|
159
|
+
if (!(title == null ? void 0 : title.text) && !(subtitle == null ? void 0 : subtitle.text)) {
|
160
|
+
return null;
|
161
|
+
}
|
162
|
+
const titleStyle = {
|
163
|
+
display: "flex",
|
164
|
+
justifyContent: mergedTitleArea.alignment,
|
165
|
+
alignItems: "center",
|
166
|
+
padding: mergedTitleArea.padding
|
167
|
+
};
|
168
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: titleStyle, className: "pisell-cash-keyboard-title" }, (title == null ? void 0 : title.visible) && /* @__PURE__ */ import_react.default.createElement(
|
169
|
+
"div",
|
170
|
+
{
|
171
|
+
style: {
|
172
|
+
fontSize: title.fontSize,
|
173
|
+
color: title.color,
|
174
|
+
fontWeight: title.fontWeight
|
175
|
+
}
|
176
|
+
},
|
177
|
+
title.text
|
178
|
+
), (subtitle == null ? void 0 : subtitle.visible) && /* @__PURE__ */ import_react.default.createElement(
|
179
|
+
"div",
|
180
|
+
{
|
181
|
+
className: "pisell-cash-keyboard-subtitle",
|
182
|
+
style: {
|
183
|
+
fontSize: subtitle.fontSize,
|
184
|
+
color: subtitle.color,
|
185
|
+
fontWeight: subtitle.fontWeight
|
186
|
+
}
|
187
|
+
},
|
188
|
+
mergedTitleArea.subtitle.text
|
189
|
+
));
|
190
|
+
}, [mergedTitleArea]);
|
191
|
+
const getGridStyle = (0, import_react.useCallback)(
|
192
|
+
(index) => {
|
193
|
+
if (!mergedDisplayField.gridRatio) {
|
194
|
+
return { flex: 1 };
|
195
|
+
}
|
196
|
+
const ratio = mergedDisplayField.gridRatio[index] || 1;
|
197
|
+
return { flex: ratio };
|
198
|
+
},
|
199
|
+
[mergedDisplayField]
|
200
|
+
);
|
201
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
202
|
+
"div",
|
203
|
+
{
|
204
|
+
className: "pisell-cash-keyboard pisell-cash-keyboard-simple",
|
205
|
+
style: { ...style || {} }
|
206
|
+
},
|
207
|
+
renderTitleArea(),
|
208
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", gap: "8px" } }, ((_a = mergedDisplayField.cashReceived) == null ? void 0 : _a.visible) && /* @__PURE__ */ import_react.default.createElement(
|
209
|
+
import_materials.VirtualInput,
|
210
|
+
{
|
211
|
+
focused: true,
|
212
|
+
wrapperStyle: {
|
213
|
+
padding: "12px 20px",
|
214
|
+
borderRadius: "8px",
|
215
|
+
backgroundColor: "white",
|
216
|
+
boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.06)",
|
217
|
+
...getGridStyle(0),
|
218
|
+
overflow: "hidden"
|
219
|
+
},
|
220
|
+
topContent: /* @__PURE__ */ import_react.default.createElement(
|
221
|
+
"div",
|
222
|
+
{
|
223
|
+
style: {
|
224
|
+
color: "#667085",
|
225
|
+
fontSize: "12px",
|
226
|
+
fontWeight: 500,
|
227
|
+
lineHeight: "18px"
|
228
|
+
}
|
229
|
+
},
|
230
|
+
mergedDisplayField.cashReceived.label
|
231
|
+
),
|
232
|
+
value: internalValue ? `${amountSymbol || ""}${internalValue}` : "",
|
233
|
+
placeholder,
|
234
|
+
style: {
|
235
|
+
fontSize: "24px",
|
236
|
+
fontWeight: "bold",
|
237
|
+
border: "none",
|
238
|
+
background: "transparent",
|
239
|
+
width: "100%"
|
240
|
+
},
|
241
|
+
preventBlurElements: [`#${uniqueKeyboardId}`, shortcutsRef]
|
242
|
+
}
|
243
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
244
|
+
"div",
|
245
|
+
{
|
246
|
+
style: {
|
247
|
+
display: "flex",
|
248
|
+
flexDirection: "column",
|
249
|
+
flex: 1,
|
250
|
+
borderRadius: "8px",
|
251
|
+
backgroundColor: "#ffffff",
|
252
|
+
padding: 8,
|
253
|
+
boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.06)",
|
254
|
+
overflow: "hidden"
|
255
|
+
}
|
256
|
+
},
|
257
|
+
((_b = mergedDisplayField.balanceDue) == null ? void 0 : _b.visible) && /* @__PURE__ */ import_react.default.createElement(
|
258
|
+
"div",
|
259
|
+
{
|
260
|
+
style: {
|
261
|
+
...getGridStyle(1)
|
262
|
+
}
|
263
|
+
},
|
264
|
+
/* @__PURE__ */ import_react.default.createElement(
|
265
|
+
"div",
|
266
|
+
{
|
267
|
+
style: {
|
268
|
+
color: "#667085",
|
269
|
+
fontSize: "12px",
|
270
|
+
fontWeight: 500,
|
271
|
+
lineHeight: "18px"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
mergedDisplayField.balanceDue.label
|
275
|
+
),
|
276
|
+
/* @__PURE__ */ import_react.default.createElement(
|
277
|
+
"div",
|
278
|
+
{
|
279
|
+
style: {
|
280
|
+
color: "#475467",
|
281
|
+
fontSize: "14px",
|
282
|
+
fontWeight: 700,
|
283
|
+
lineHeight: "20px"
|
284
|
+
}
|
285
|
+
},
|
286
|
+
/* @__PURE__ */ import_react.default.createElement(
|
287
|
+
import_materials.PisellText.Amount,
|
288
|
+
{
|
289
|
+
value: originalValue,
|
290
|
+
hideDecimalForWholeNumbers: false,
|
291
|
+
precision: 2
|
292
|
+
}
|
293
|
+
)
|
294
|
+
)
|
295
|
+
),
|
296
|
+
((_c = mergedDisplayField.changeDue) == null ? void 0 : _c.visible) && /* @__PURE__ */ import_react.default.createElement(
|
297
|
+
"div",
|
298
|
+
{
|
299
|
+
style: {
|
300
|
+
...getGridStyle(2)
|
301
|
+
}
|
302
|
+
},
|
303
|
+
/* @__PURE__ */ import_react.default.createElement(
|
304
|
+
"div",
|
305
|
+
{
|
306
|
+
style: {
|
307
|
+
color: "#667085",
|
308
|
+
fontSize: "12px",
|
309
|
+
fontWeight: 500,
|
310
|
+
lineHeight: "18px"
|
311
|
+
}
|
312
|
+
},
|
313
|
+
mergedDisplayField.changeDue.label
|
314
|
+
),
|
315
|
+
/* @__PURE__ */ import_react.default.createElement(
|
316
|
+
"div",
|
317
|
+
{
|
318
|
+
style: {
|
319
|
+
color: "#475467",
|
320
|
+
fontSize: "14px",
|
321
|
+
fontWeight: 700,
|
322
|
+
lineHeight: "20px"
|
323
|
+
}
|
324
|
+
},
|
325
|
+
/* @__PURE__ */ import_react.default.createElement(
|
326
|
+
import_materials.PisellText.Amount,
|
327
|
+
{
|
328
|
+
value: changeDue,
|
329
|
+
hideDecimalForWholeNumbers: false,
|
330
|
+
precision: 2
|
331
|
+
}
|
332
|
+
)
|
333
|
+
)
|
334
|
+
)
|
335
|
+
)),
|
336
|
+
/* @__PURE__ */ import_react.default.createElement(
|
337
|
+
import_shortcuts.default,
|
338
|
+
{
|
339
|
+
ref: shortcutsRef,
|
340
|
+
presets: getDefaultPresets(),
|
341
|
+
onChange: (v) => {
|
342
|
+
setInternalValue(v);
|
343
|
+
}
|
344
|
+
}
|
345
|
+
),
|
346
|
+
/* @__PURE__ */ import_react.default.createElement(
|
347
|
+
import_materials.Keyboard,
|
348
|
+
{
|
349
|
+
...keyboardProps,
|
350
|
+
rightItems,
|
351
|
+
onChange: handleChange,
|
352
|
+
id: uniqueKeyboardId
|
353
|
+
}
|
354
|
+
)
|
355
|
+
);
|
356
|
+
};
|
357
|
+
var CashKeyboardSimple = (props) => {
|
358
|
+
const { containerProps, children, ...keyboardProps } = props;
|
359
|
+
const { renderType, open, ...restProps } = containerProps || {};
|
360
|
+
if (!containerProps) {
|
361
|
+
return /* @__PURE__ */ import_react.default.createElement(CashKeyboardBase, { ...keyboardProps });
|
362
|
+
}
|
363
|
+
if (renderType === "popover") {
|
364
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
365
|
+
import_antd.Popover,
|
366
|
+
{
|
367
|
+
key: `${open}`,
|
368
|
+
open,
|
369
|
+
trigger: "click",
|
370
|
+
className: "pisell-cash-keyboard-container pisell-cash-keyboard-popover",
|
371
|
+
...restProps,
|
372
|
+
content: /* @__PURE__ */ import_react.default.createElement(CashKeyboardBase, { ...keyboardProps })
|
373
|
+
},
|
374
|
+
children
|
375
|
+
);
|
376
|
+
}
|
377
|
+
if (renderType === "modal") {
|
378
|
+
return open ? /* @__PURE__ */ import_react.default.createElement(
|
379
|
+
import_materials.PisellModal,
|
380
|
+
{
|
381
|
+
platform: "pc",
|
382
|
+
open: true,
|
383
|
+
width: "unset",
|
384
|
+
header: null,
|
385
|
+
footer: false,
|
386
|
+
mask: false,
|
387
|
+
maskClosable: true,
|
388
|
+
bodyStyle: { padding: "0px", backgroundColor: "transparent" },
|
389
|
+
closeIcon: null,
|
390
|
+
className: "pisell-payment-keyboard-container pisell-payment-keyboard-modal",
|
391
|
+
destroyOnHidden: true,
|
392
|
+
...restProps
|
393
|
+
},
|
394
|
+
/* @__PURE__ */ import_react.default.createElement(CashKeyboardBase, { ...keyboardProps })
|
395
|
+
) : null;
|
396
|
+
}
|
397
|
+
return /* @__PURE__ */ import_react.default.createElement(CashKeyboardBase, { ...keyboardProps });
|
398
|
+
};
|
399
|
+
var CashKeyboardSimple_default = CashKeyboardSimple;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { CashKeyboardBaseProps } from './types';
|
2
|
+
export interface CashKeyboardProps extends CashKeyboardBaseProps {
|
3
|
+
containerProps?: {
|
4
|
+
renderType: 'modal' | 'popover';
|
5
|
+
open: boolean;
|
6
|
+
[key: string]: any;
|
7
|
+
};
|
8
|
+
variant?: 'intact' | 'simple';
|
9
|
+
}
|
10
|
+
declare const CashKeyboard: (props: CashKeyboardProps) => JSX.Element;
|
11
|
+
export default CashKeyboard;
|
@@ -0,0 +1,76 @@
|
|
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/pro/priceKeyboard/components/cashKeyboard/index.tsx
|
30
|
+
var cashKeyboard_exports = {};
|
31
|
+
__export(cashKeyboard_exports, {
|
32
|
+
default: () => cashKeyboard_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(cashKeyboard_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_ahooks = require("ahooks");
|
37
|
+
var import_utils = require("@pisell/utils");
|
38
|
+
var import_CashKeyboardSimple = __toESM(require("./CashKeyboardSimple"));
|
39
|
+
var import_CashKeyboardIntact = __toESM(require("./CashKeyboardIntact"));
|
40
|
+
var import_locales = __toESM(require("./locales"));
|
41
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
42
|
+
var CashKeyboard = (props) => {
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
44
|
+
const context = (0, import_useEngineContext.default)();
|
45
|
+
import_utils.locales.init(
|
46
|
+
import_locales.default,
|
47
|
+
((_e = (_d = (_c = (_b = (_a = context.appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.locales) == null ? void 0 : _d.getLocale) == null ? void 0 : _e.call(_d)) || ((_g = (_f = context.appHelper.utils) == null ? void 0 : _f.storage) == null ? void 0 : _g.get("umi_locale")) || "en"
|
48
|
+
);
|
49
|
+
const { getData } = context.appHelper.utils;
|
50
|
+
const amountSymbol = props.amountSymbol || (getData == null ? void 0 : getData("shop_symbol")) || "$";
|
51
|
+
const { variant = "intact", value, onChange, ...otherProps } = props;
|
52
|
+
const [internalValue, setInternalValue] = (0, import_ahooks.useControllableValue)(props);
|
53
|
+
if (variant === "intact") {
|
54
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
55
|
+
import_CashKeyboardIntact.default,
|
56
|
+
{
|
57
|
+
...otherProps,
|
58
|
+
amountSymbol,
|
59
|
+
value: internalValue,
|
60
|
+
placeholder: `${amountSymbol}0`,
|
61
|
+
onChange: setInternalValue
|
62
|
+
}
|
63
|
+
);
|
64
|
+
}
|
65
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
66
|
+
import_CashKeyboardSimple.default,
|
67
|
+
{
|
68
|
+
...otherProps,
|
69
|
+
amountSymbol,
|
70
|
+
placeholder: `${amountSymbol}0`,
|
71
|
+
value: internalValue,
|
72
|
+
onChange: setInternalValue
|
73
|
+
}
|
74
|
+
);
|
75
|
+
};
|
76
|
+
var cashKeyboard_default = CashKeyboard;
|
@@ -0,0 +1,103 @@
|
|
1
|
+
.pisell-cash-keyboard {
|
2
|
+
&-title {
|
3
|
+
font-size: 16px;
|
4
|
+
font-weight: 600;
|
5
|
+
line-height: 24px;
|
6
|
+
}
|
7
|
+
&-subtitle {
|
8
|
+
font-size: 14px;
|
9
|
+
font-weight: 400;
|
10
|
+
line-height: 20px;
|
11
|
+
}
|
12
|
+
|
13
|
+
&-intact {
|
14
|
+
width: 402px;
|
15
|
+
background-color: #fcfcfd;
|
16
|
+
display: flex;
|
17
|
+
flex-direction: column;
|
18
|
+
gap: 8px;
|
19
|
+
|
20
|
+
.pisell-cash-keyboard-title {
|
21
|
+
color: '#101828';
|
22
|
+
}
|
23
|
+
|
24
|
+
.pisell-cash-keyboard-subtitle {
|
25
|
+
color: '#101828';
|
26
|
+
}
|
27
|
+
|
28
|
+
&.disabled {
|
29
|
+
.pisell-cash-keyboard-intact-container {
|
30
|
+
border: 1px solid #d0d5dd !important;
|
31
|
+
}
|
32
|
+
.pisell-virtual-input-wrapper {
|
33
|
+
background-color: #eaecf0 !important;
|
34
|
+
border: 0 !important;
|
35
|
+
box-shadow: none !important;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.pisell-cash-keyboard-intact-container {
|
40
|
+
width: unset;
|
41
|
+
border: 1px solid #7f56da;
|
42
|
+
border-radius: 8px;
|
43
|
+
padding: 8px;
|
44
|
+
display: flex;
|
45
|
+
flex-direction: column;
|
46
|
+
gap: 4px;
|
47
|
+
|
48
|
+
.pisell-cash-keyboard-intact-container-top {
|
49
|
+
display: flex;
|
50
|
+
flex-direction: column;
|
51
|
+
justify-content: center;
|
52
|
+
gap: 4px;
|
53
|
+
padding-top: 4px;
|
54
|
+
|
55
|
+
.pisell-cash-keyboard-intact-container-top-label {
|
56
|
+
font-size: 14px;
|
57
|
+
color: #667085;
|
58
|
+
}
|
59
|
+
|
60
|
+
.pisell-cash-keyboard-intact-container-top-value {
|
61
|
+
font-size: 18px;
|
62
|
+
font-weight: bold;
|
63
|
+
color: #475467;
|
64
|
+
flex: 1;
|
65
|
+
overflow: hidden;
|
66
|
+
display: -webkit-box;
|
67
|
+
-webkit-line-clamp: 2;
|
68
|
+
-webkit-box-orient: vertical;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
&-simple {
|
75
|
+
padding: 10px;
|
76
|
+
width: 360px;
|
77
|
+
border-radius: 10px;
|
78
|
+
display: flex;
|
79
|
+
flex-direction: column;
|
80
|
+
gap: 8px;
|
81
|
+
background-color: var(
|
82
|
+
--pisell-pro-price-keyboard-wrapper-bg-color,
|
83
|
+
#eaecf0
|
84
|
+
);
|
85
|
+
|
86
|
+
.pisell-cash-keyboard-title {
|
87
|
+
color: var(--pisell-pro-price-keyboard-title-color, #101828);
|
88
|
+
}
|
89
|
+
.pisell-cash-keyboard-subtitle {
|
90
|
+
color: var(--pisell-pro-price-keyboard-subtitle-color, #667085);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
.pisell-case-keyboard-simple-modal {
|
96
|
+
.pisell-lowcode-modal-content {
|
97
|
+
background-color: transparent;
|
98
|
+
}
|
99
|
+
|
100
|
+
.pisell-lowcode-modal-close {
|
101
|
+
display: none;
|
102
|
+
}
|
103
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
en: {
|
3
|
+
'cash-keyboard-title': string;
|
4
|
+
'cash-keyboard-balance-due': string;
|
5
|
+
'cash-keyboard-cash-received': string;
|
6
|
+
'cash-keyboard-change-due': string;
|
7
|
+
'cash-keyboard-rounding': string;
|
8
|
+
'cash-keyboard-other': string;
|
9
|
+
'cash-keyboard-reset': string;
|
10
|
+
'cash-keyboard-done': string;
|
11
|
+
'cash-keyboard-pay': string;
|
12
|
+
'cash-keyboard-amount-cannot-be-zero': string;
|
13
|
+
};
|
14
|
+
'zh-CN': {
|
15
|
+
'cash-keyboard-title': string;
|
16
|
+
'cash-keyboard-balance-due': string;
|
17
|
+
'cash-keyboard-cash-received': string;
|
18
|
+
'cash-keyboard-change-due': string;
|
19
|
+
'cash-keyboard-rounding': string;
|
20
|
+
'cash-keyboard-other': string;
|
21
|
+
'cash-keyboard-reset': string;
|
22
|
+
'cash-keyboard-done': string;
|
23
|
+
'cash-keyboard-pay': string;
|
24
|
+
'cash-keyboard-amount-cannot-be-zero': string;
|
25
|
+
};
|
26
|
+
'zh-HK': {
|
27
|
+
'cash-keyboard-title': string;
|
28
|
+
'cash-keyboard-balance-due': string;
|
29
|
+
'cash-keyboard-cash-received': string;
|
30
|
+
'cash-keyboard-change-due': string;
|
31
|
+
'cash-keyboard-rounding': string;
|
32
|
+
'cash-keyboard-other': string;
|
33
|
+
'cash-keyboard-reset': string;
|
34
|
+
'cash-keyboard-done': string;
|
35
|
+
'cash-keyboard-pay': string;
|
36
|
+
'cash-keyboard-amount-cannot-be-zero': string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
export default _default;
|
@@ -0,0 +1,65 @@
|
|
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/pro/priceKeyboard/components/cashKeyboard/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
|
+
// Cash Payment Module
|
28
|
+
"cash-keyboard-title": "Cash Payment",
|
29
|
+
"cash-keyboard-balance-due": "Balance Due",
|
30
|
+
"cash-keyboard-cash-received": "Cash Received",
|
31
|
+
"cash-keyboard-change-due": "Change Due",
|
32
|
+
"cash-keyboard-rounding": "Rounding",
|
33
|
+
"cash-keyboard-other": "Other",
|
34
|
+
"cash-keyboard-reset": "Reset",
|
35
|
+
"cash-keyboard-done": "Done",
|
36
|
+
"cash-keyboard-pay": "Pay",
|
37
|
+
"cash-keyboard-amount-cannot-be-zero": "The amount cannot be 0"
|
38
|
+
},
|
39
|
+
"zh-CN": {
|
40
|
+
// 现金支付模块
|
41
|
+
"cash-keyboard-title": "现金支付",
|
42
|
+
"cash-keyboard-balance-due": "待支付金额",
|
43
|
+
"cash-keyboard-cash-received": "实收金额",
|
44
|
+
"cash-keyboard-change-due": "找零",
|
45
|
+
"cash-keyboard-rounding": "抹零",
|
46
|
+
"cash-keyboard-other": "其他金额",
|
47
|
+
"cash-keyboard-reset": "重置",
|
48
|
+
"cash-keyboard-done": "确认",
|
49
|
+
"cash-keyboard-pay": "支付",
|
50
|
+
"cash-keyboard-amount-cannot-be-zero": "金额不能为0"
|
51
|
+
},
|
52
|
+
"zh-HK": {
|
53
|
+
// 現金支付模組
|
54
|
+
"cash-keyboard-title": "現金支付",
|
55
|
+
"cash-keyboard-balance-due": "待支付金額",
|
56
|
+
"cash-keyboard-cash-received": "實收金額",
|
57
|
+
"cash-keyboard-change-due": "找零",
|
58
|
+
"cash-keyboard-rounding": "抹零",
|
59
|
+
"cash-keyboard-other": "其他金額",
|
60
|
+
"cash-keyboard-reset": "重置",
|
61
|
+
"cash-keyboard-done": "確認",
|
62
|
+
"cash-keyboard-pay": "支付",
|
63
|
+
"cash-keyboard-amount-cannot-be-zero": "金額不能為0"
|
64
|
+
}
|
65
|
+
};
|