@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.
Files changed (133) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/booking/components/footer/amount.js +3 -4
  12. package/es/components/booking/components/footer/utils.js +82 -85
  13. package/es/components/booking/components/voucher/index.js +1 -1
  14. package/es/components/booking/dashboard/index.d.ts +5 -0
  15. package/es/components/booking/dashboard/index.js +9 -6
  16. package/es/components/booking/info/service2/Group/utils.js +30 -1
  17. package/es/components/booking/info2/service/editService/index.js +6 -49
  18. package/es/components/booking/info2/service/editService/utils.d.ts +0 -1
  19. package/es/components/booking/info2/service/editService/utils.js +0 -16
  20. package/es/components/booking/payments/index.js +1 -1
  21. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  22. package/es/components/checkout/hooks/useWalletPass.js +23 -15
  23. package/es/components/index.d.ts +2 -1
  24. package/es/components/index.js +2 -1
  25. package/es/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
  26. package/es/components/pisellCashCounting/PisellCashCounting.js +121 -0
  27. package/es/components/pisellCashCounting/PisellCashCounting.less +263 -0
  28. package/es/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
  29. package/es/components/pisellCashCounting/components/CashCountingModal/index.js +250 -0
  30. package/es/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
  31. package/es/components/pisellCashCounting/hooks.d.ts +21 -0
  32. package/es/components/pisellCashCounting/hooks.js +193 -0
  33. package/es/components/pisellCashCounting/index.d.ts +2 -0
  34. package/es/components/pisellCashCounting/index.js +1 -0
  35. package/es/components/pisellCashCounting/locales.d.ts +118 -0
  36. package/es/components/pisellCashCounting/locales.js +117 -0
  37. package/es/components/pisellCashCounting/types.d.ts +85 -0
  38. package/es/components/pisellCashCounting/types.js +1 -0
  39. package/es/components/pisellCashCounting/utils.d.ts +10 -0
  40. package/es/components/pisellCashCounting/utils.js +40 -0
  41. package/es/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  42. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +2 -0
  43. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +5 -2
  44. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +2 -0
  45. package/es/components/ticketBooking/components/bookingDataPanel/index.js +5 -2
  46. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +2 -1
  47. package/es/components/ticketBooking/components/ticketBooking/index.js +156 -37
  48. package/es/components/ticketBooking/index.js +7 -1
  49. package/es/components/ticketBooking/utils/formatProductMessage.js +47 -2
  50. package/es/hooks/useResponsive.d.ts +8 -0
  51. package/es/hooks/useResponsive.js +43 -0
  52. package/es/hooks/useThemeTokens.d.ts +7 -0
  53. package/es/hooks/useThemeTokens.js +20 -0
  54. package/es/index.d.ts +1 -0
  55. package/es/index.js +2 -1
  56. package/es/pro/Login2.0/components/phoneValidation.js +65 -58
  57. package/es/pro/NumericStepper/index.d.ts +75 -0
  58. package/es/pro/NumericStepper/index.js +301 -0
  59. package/es/pro/NumericStepper/index.less +364 -0
  60. package/es/pro/keyboards/index.d.ts +2 -0
  61. package/es/pro/keyboards/index.js +1 -0
  62. package/es/pro/keyboards/locales.d.ts +38 -0
  63. package/es/pro/keyboards/locales.js +57 -0
  64. package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  65. package/es/pro/keyboards/numberKeyboard/index.js +523 -0
  66. package/es/pro/keyboards/numberKeyboard/index.less +59 -0
  67. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  68. package/es/pro/keyboards/numberKeyboard/types.js +1 -0
  69. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
  70. package/es/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
  71. package/lib/components/booking/components/footer/amount.js +3 -3
  72. package/lib/components/booking/components/footer/utils.js +11 -15
  73. package/lib/components/booking/components/voucher/index.js +1 -1
  74. package/lib/components/booking/dashboard/index.d.ts +5 -0
  75. package/lib/components/booking/dashboard/index.js +6 -5
  76. package/lib/components/booking/info/service2/Group/utils.js +42 -3
  77. package/lib/components/booking/info2/service/editService/index.js +5 -39
  78. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -1
  79. package/lib/components/booking/info2/service/editService/utils.js +0 -16
  80. package/lib/components/booking/payments/index.js +1 -1
  81. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  82. package/lib/components/checkout/hooks/useWalletPass.js +23 -16
  83. package/lib/components/index.d.ts +2 -1
  84. package/lib/components/index.js +3 -0
  85. package/lib/components/pisellCashCounting/PisellCashCounting.d.ts +5 -0
  86. package/lib/components/pisellCashCounting/PisellCashCounting.js +168 -0
  87. package/lib/components/pisellCashCounting/PisellCashCounting.less +263 -0
  88. package/lib/components/pisellCashCounting/components/CashCountingModal/index.d.ts +20 -0
  89. package/lib/components/pisellCashCounting/components/CashCountingModal/index.js +171 -0
  90. package/lib/components/pisellCashCounting/components/CashCountingModal/index.less +279 -0
  91. package/lib/components/pisellCashCounting/hooks.d.ts +21 -0
  92. package/lib/components/pisellCashCounting/hooks.js +189 -0
  93. package/lib/components/pisellCashCounting/index.d.ts +2 -0
  94. package/lib/components/pisellCashCounting/index.js +35 -0
  95. package/lib/components/pisellCashCounting/locales.d.ts +118 -0
  96. package/lib/components/pisellCashCounting/locales.js +141 -0
  97. package/lib/components/pisellCashCounting/types.d.ts +85 -0
  98. package/lib/components/pisellCashCounting/types.js +17 -0
  99. package/lib/components/pisellCashCounting/utils.d.ts +10 -0
  100. package/lib/components/pisellCashCounting/utils.js +59 -0
  101. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  102. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +2 -0
  103. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +3 -2
  104. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +2 -0
  105. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +10 -3
  106. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +10 -1
  107. package/lib/components/ticketBooking/components/ticketBooking/index.js +114 -14
  108. package/lib/components/ticketBooking/index.js +11 -1
  109. package/lib/components/ticketBooking/utils/formatProductMessage.js +44 -2
  110. package/lib/hooks/useResponsive.d.ts +8 -0
  111. package/lib/hooks/useResponsive.js +48 -0
  112. package/lib/hooks/useThemeTokens.d.ts +7 -0
  113. package/lib/hooks/useThemeTokens.js +40 -0
  114. package/lib/index.d.ts +1 -0
  115. package/lib/index.js +3 -0
  116. package/lib/pro/Login2.0/components/phoneValidation.js +4 -2
  117. package/lib/pro/NumericStepper/index.d.ts +75 -0
  118. package/lib/pro/NumericStepper/index.js +338 -0
  119. package/lib/pro/NumericStepper/index.less +364 -0
  120. package/lib/pro/keyboards/index.d.ts +2 -0
  121. package/lib/pro/keyboards/index.js +39 -0
  122. package/lib/pro/keyboards/locales.d.ts +38 -0
  123. package/lib/pro/keyboards/locales.js +61 -0
  124. package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  125. package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
  126. package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
  127. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  128. package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
  129. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +3 -1
  130. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +2 -0
  131. package/lowcode/pisell-cash-counting/meta.ts +167 -0
  132. package/lowcode/pisell-cash-counting/snippets.ts +13 -0
  133. 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
+ };
@@ -0,0 +1,13 @@
1
+ export default [
2
+ {
3
+ title: 'PisellCashCounting',
4
+ schema: {
5
+ componentName: 'PisellCashCounting',
6
+ props: {
7
+ currencyCode: '',
8
+ currencySymbol: '',
9
+ layout: 'vertical',
10
+ },
11
+ },
12
+ },
13
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.6.60",
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/materials": "6.6.15",
66
- "@pisell/icon": "0.0.11",
67
- "@pisell/date-picker": "3.0.7"
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",