@pisell/private-materials 6.6.60 → 6.6.62
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 +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/booking/components/footer/amount.js +3 -4
- package/es/components/booking/components/footer/utils.js +82 -85
- package/es/components/booking/components/voucher/index.js +1 -1
- package/es/components/booking/dashboard/index.d.ts +5 -0
- package/es/components/booking/dashboard/index.js +9 -6
- package/es/components/booking/info/service2/Group/utils.js +30 -1
- package/es/components/booking/info2/service/editService/index.js +6 -49
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -1
- package/es/components/booking/info2/service/editService/utils.js +0 -16
- package/es/components/booking/payments/index.js +1 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +23 -15
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
- package/es/components/pisellCashCounting/PisellCashCounting.js +121 -0
- package/es/components/pisellCashCounting/PisellCashCounting.less +263 -0
- package/es/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
- package/es/components/pisellCashCounting/components/CashCountingModal/index.js +250 -0
- package/es/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
- package/es/components/pisellCashCounting/hooks.d.ts +21 -0
- package/es/components/pisellCashCounting/hooks.js +193 -0
- package/es/components/pisellCashCounting/index.d.ts +2 -0
- package/es/components/pisellCashCounting/index.js +1 -0
- package/es/components/pisellCashCounting/locales.d.ts +118 -0
- package/es/components/pisellCashCounting/locales.js +117 -0
- package/es/components/pisellCashCounting/types.d.ts +85 -0
- package/es/components/pisellCashCounting/types.js +1 -0
- package/es/components/pisellCashCounting/utils.d.ts +10 -0
- package/es/components/pisellCashCounting/utils.js +40 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +2 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +5 -2
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +2 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +5 -2
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +2 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +156 -37
- package/es/components/ticketBooking/index.js +7 -1
- package/es/components/ticketBooking/utils/formatProductMessage.js +47 -2
- package/es/hooks/useResponsive.d.ts +8 -0
- package/es/hooks/useResponsive.js +43 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useThemeTokens.js +20 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/pro/Login2.0/components/phoneValidation.js +65 -58
- package/es/pro/NumericStepper/index.d.ts +75 -0
- package/es/pro/NumericStepper/index.js +301 -0
- package/es/pro/NumericStepper/index.less +364 -0
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/locales.js +57 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
- package/lib/components/booking/components/footer/amount.js +3 -3
- package/lib/components/booking/components/footer/utils.js +11 -15
- package/lib/components/booking/components/voucher/index.js +1 -1
- package/lib/components/booking/dashboard/index.d.ts +5 -0
- package/lib/components/booking/dashboard/index.js +6 -5
- package/lib/components/booking/info/service2/Group/utils.js +42 -3
- package/lib/components/booking/info2/service/editService/index.js +5 -39
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/utils.js +0 -16
- package/lib/components/booking/payments/index.js +1 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +23 -16
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
- package/lib/components/pisellCashCounting/PisellCashCounting.js +168 -0
- package/lib/components/pisellCashCounting/PisellCashCounting.less +263 -0
- package/lib/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
- package/lib/components/pisellCashCounting/components/CashCountingModal/index.js +171 -0
- package/lib/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
- package/lib/components/pisellCashCounting/hooks.d.ts +21 -0
- package/lib/components/pisellCashCounting/hooks.js +189 -0
- package/lib/components/pisellCashCounting/index.d.ts +2 -0
- package/lib/components/pisellCashCounting/index.js +35 -0
- package/lib/components/pisellCashCounting/locales.d.ts +118 -0
- package/lib/components/pisellCashCounting/locales.js +141 -0
- package/lib/components/pisellCashCounting/types.d.ts +85 -0
- package/lib/components/pisellCashCounting/types.js +17 -0
- package/lib/components/pisellCashCounting/utils.d.ts +10 -0
- package/lib/components/pisellCashCounting/utils.js +59 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +2 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +3 -2
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +2 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +10 -3
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +10 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +114 -14
- package/lib/components/ticketBooking/index.js +11 -1
- package/lib/components/ticketBooking/utils/formatProductMessage.js +44 -2
- package/lib/hooks/useResponsive.d.ts +8 -0
- package/lib/hooks/useResponsive.js +48 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useThemeTokens.js +40 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/pro/Login2.0/components/phoneValidation.js +4 -2
- package/lib/pro/NumericStepper/index.d.ts +75 -0
- package/lib/pro/NumericStepper/index.js +338 -0
- package/lib/pro/NumericStepper/index.less +364 -0
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/locales.js +61 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
- package/lowcode/pisell-cash-counting/meta.ts +167 -0
- package/lowcode/pisell-cash-counting/snippets.ts +13 -0
- package/package.json +4 -4
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
snippets,
|
|
6
|
+
componentName: 'PisellCashCounting',
|
|
7
|
+
title: 'PisellCashCounting',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/private-materials',
|
|
13
|
+
version: '1.1.558',
|
|
14
|
+
exportName: 'PisellCashCounting',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'currencyCode',
|
|
22
|
+
title: {
|
|
23
|
+
label: { type: 'i18n', 'en-US': 'Currency code', 'zh-CN': '币种代码' },
|
|
24
|
+
tip: 'currencyCode | 如 AUD、JPY、CNY, 默认当前店铺币种',
|
|
25
|
+
},
|
|
26
|
+
propType: 'string',
|
|
27
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
28
|
+
defaultValue: '',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'currencySymbol',
|
|
32
|
+
title: {
|
|
33
|
+
label: { type: 'i18n', 'en-US': 'Currency symbol', 'zh-CN': '货币符号' },
|
|
34
|
+
tip: 'currencySymbol | 展示用,如 $、¥,默认当前店铺币种符号',
|
|
35
|
+
},
|
|
36
|
+
propType: 'string',
|
|
37
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
38
|
+
defaultValue: '',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'value',
|
|
42
|
+
title: {
|
|
43
|
+
label: { type: 'i18n', 'en-US': 'Amount', 'zh-CN': '金额' },
|
|
44
|
+
tip: 'value | 受控金额',
|
|
45
|
+
},
|
|
46
|
+
propType: 'number',
|
|
47
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'amountPrecision',
|
|
51
|
+
title: {
|
|
52
|
+
label: { type: 'i18n', 'en-US': 'Amount decimals', 'zh-CN': '金额小数位' },
|
|
53
|
+
tip: 'amountPrecision | 主输入与键盘精度,不传则默认取列表的第一个decimal_places值',
|
|
54
|
+
},
|
|
55
|
+
propType: 'number',
|
|
56
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'denominations',
|
|
60
|
+
title: {
|
|
61
|
+
label: { type: 'i18n', 'en-US': 'Denominations List', 'zh-CN': '面额配置列表' },
|
|
62
|
+
tip: 'denominations | 接口返回的币种面额列表',
|
|
63
|
+
},
|
|
64
|
+
propType: 'object',
|
|
65
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'modalWidth',
|
|
69
|
+
title: {
|
|
70
|
+
label: { type: 'i18n', 'en-US': 'Modal width', 'zh-CN': '弹窗宽度' },
|
|
71
|
+
},
|
|
72
|
+
propType: 'oneOfType',
|
|
73
|
+
setter: ['NumberSetter', 'StringSetter', 'VariableSetter'],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'disabled',
|
|
77
|
+
title: { label: { type: 'i18n', 'en-US': 'Disabled', 'zh-CN': '禁用' } },
|
|
78
|
+
propType: 'bool',
|
|
79
|
+
setter: 'BoolSetter',
|
|
80
|
+
defaultValue: false,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'countDisabled',
|
|
84
|
+
title: {
|
|
85
|
+
label: { type: 'i18n', 'en-US': 'Disable count button', 'zh-CN': '禁用数钱按钮' },
|
|
86
|
+
},
|
|
87
|
+
propType: 'bool',
|
|
88
|
+
setter: 'BoolSetter',
|
|
89
|
+
defaultValue: false,
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'keyboardShowCurrencySymbol',
|
|
93
|
+
title: {
|
|
94
|
+
label: { type: 'i18n', 'en-US': 'Keyboard show symbol', 'zh-CN': '键盘显示货币符号' },
|
|
95
|
+
},
|
|
96
|
+
propType: 'bool',
|
|
97
|
+
setter: 'BoolSetter',
|
|
98
|
+
defaultValue: true,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'keyboardUseThousandsSeparator',
|
|
102
|
+
title: {
|
|
103
|
+
label: { type: 'i18n', 'en-US': 'Keyboard thousands sep.', 'zh-CN': '键盘千分位' },
|
|
104
|
+
},
|
|
105
|
+
propType: 'bool',
|
|
106
|
+
setter: 'BoolSetter',
|
|
107
|
+
defaultValue: false,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'placeholder',
|
|
111
|
+
title: {
|
|
112
|
+
label: { type: 'i18n', 'en-US': 'Placeholder', 'zh-CN': '占位' },
|
|
113
|
+
},
|
|
114
|
+
propType: 'string',
|
|
115
|
+
setter: ['PisellI18nSetter', 'StringSetter', 'VariableSetter'],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'layout',
|
|
119
|
+
title: {
|
|
120
|
+
label: { type: 'i18n', 'en-US': 'Field layout', 'zh-CN': '输入区布局' },
|
|
121
|
+
tip: 'layout | vertical 上下(默认)、horizontal 输入框与数钱按钮左右排列',
|
|
122
|
+
},
|
|
123
|
+
propType: { type: 'oneOf', value: ['vertical', 'horizontal'] },
|
|
124
|
+
setter: {
|
|
125
|
+
componentName: 'RadioGroupSetter',
|
|
126
|
+
props: {
|
|
127
|
+
options: [
|
|
128
|
+
{ label: '上下', value: 'vertical' },
|
|
129
|
+
{ label: '左右', value: 'horizontal' },
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
defaultValue: 'vertical',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'countCashButtonText',
|
|
137
|
+
title: {
|
|
138
|
+
label: { type: 'i18n', 'en-US': 'Count button text', 'zh-CN': '数钱按钮文案' },
|
|
139
|
+
},
|
|
140
|
+
propType: 'string',
|
|
141
|
+
setter: ['PisellI18nSetter', 'StringSetter', 'VariableSetter'],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
configure: {
|
|
145
|
+
component: { isContainer: false },
|
|
146
|
+
supports: {
|
|
147
|
+
style: true,
|
|
148
|
+
className: true,
|
|
149
|
+
events: [
|
|
150
|
+
{
|
|
151
|
+
name: 'onChange',
|
|
152
|
+
template:
|
|
153
|
+
"onChange(amount,${extParams}){\nconsole.log('amount', amount);\n}",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'onCountConfirm',
|
|
157
|
+
template:
|
|
158
|
+
"onCountConfirm(payload,${extParams}){\nconsole.log('cash count', payload);\n}",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'onCountCancel',
|
|
162
|
+
template: "onCountCancel(${extParams}){\nconsole.log('cancel');\n}",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.62",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
64
|
"@pisell/utils": "3.0.2",
|
|
65
|
-
"@pisell/
|
|
66
|
-
"@pisell/
|
|
67
|
-
"@pisell/
|
|
65
|
+
"@pisell/date-picker": "3.0.7",
|
|
66
|
+
"@pisell/materials": "6.6.17",
|
|
67
|
+
"@pisell/icon": "0.0.11"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|