@pisell/materials 3.0.48 → 3.0.49

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 (84) 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 +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +14 -14
  11. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +10 -0
  12. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.js +62 -0
  13. package/es/components/pisellAdjustPrice/index.d.ts +10 -0
  14. package/es/components/pisellAdjustPrice/index.js +148 -0
  15. package/es/components/pisellAdjustPrice/index.less +30 -0
  16. package/es/components/segmented/index.d.ts +1 -0
  17. package/es/components/segmented/index.js +1 -0
  18. package/es/components/segmented/index.less +3 -0
  19. package/es/components/virtual-keyboard/Amount/index.d.ts +22 -0
  20. package/es/components/virtual-keyboard/Amount/index.js +65 -0
  21. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +12 -0
  22. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +22 -0
  23. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +18 -0
  24. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  25. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +213 -0
  26. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.less +9 -0
  27. package/es/components/virtual-keyboard/Keyboard/index.d.ts +8 -6
  28. package/es/components/virtual-keyboard/Keyboard/index.js +59 -15
  29. package/es/components/virtual-keyboard/Keyboard/index.less +35 -24
  30. package/es/components/virtual-keyboard/Number/index.d.ts +14 -0
  31. package/es/components/virtual-keyboard/Number/index.js +35 -0
  32. package/es/components/virtual-keyboard/VirtualInput/index.d.ts +9 -0
  33. package/es/components/virtual-keyboard/VirtualInput/index.js +41 -0
  34. package/es/components/virtual-keyboard/VirtualInput/index.less +46 -0
  35. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +6 -3
  36. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +27 -20
  37. package/es/index.d.ts +4 -0
  38. package/es/index.js +5 -1
  39. package/es/locales/en-US.d.ts +6 -0
  40. package/es/locales/en-US.js +8 -1
  41. package/es/locales/zh-CN.d.ts +6 -0
  42. package/es/locales/zh-CN.js +8 -1
  43. package/es/locales/zh-TW.d.ts +6 -0
  44. package/es/locales/zh-TW.js +8 -1
  45. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +10 -0
  46. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.js +84 -0
  47. package/lib/components/pisellAdjustPrice/index.d.ts +10 -0
  48. package/lib/components/pisellAdjustPrice/index.js +156 -0
  49. package/lib/components/pisellAdjustPrice/index.less +30 -0
  50. package/lib/components/segmented/index.d.ts +1 -0
  51. package/lib/components/segmented/index.js +1 -0
  52. package/lib/components/segmented/index.less +3 -0
  53. package/lib/components/virtual-keyboard/Amount/index.d.ts +22 -0
  54. package/lib/components/virtual-keyboard/Amount/index.js +96 -0
  55. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +12 -0
  56. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +46 -0
  57. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +18 -0
  58. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  59. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +245 -0
  60. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.less +9 -0
  61. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +8 -6
  62. package/lib/components/virtual-keyboard/Keyboard/index.js +51 -4
  63. package/lib/components/virtual-keyboard/Keyboard/index.less +35 -24
  64. package/lib/components/virtual-keyboard/Number/index.d.ts +14 -0
  65. package/lib/components/virtual-keyboard/Number/index.js +65 -0
  66. package/lib/components/virtual-keyboard/VirtualInput/index.d.ts +9 -0
  67. package/lib/components/virtual-keyboard/VirtualInput/index.js +63 -0
  68. package/lib/components/virtual-keyboard/VirtualInput/index.less +46 -0
  69. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +6 -3
  70. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +20 -11
  71. package/lib/index.d.ts +4 -0
  72. package/lib/index.js +12 -0
  73. package/lib/locales/en-US.d.ts +6 -0
  74. package/lib/locales/en-US.js +8 -1
  75. package/lib/locales/zh-CN.d.ts +6 -0
  76. package/lib/locales/zh-CN.js +8 -1
  77. package/lib/locales/zh-TW.d.ts +6 -0
  78. package/lib/locales/zh-TW.js +8 -1
  79. package/lowcode/pisell-adjust-price/meta.ts +58 -0
  80. package/lowcode/pisell-adjust-price/snippets.ts +10 -0
  81. package/lowcode/pisell-adjust-price-input-number/meta.ts +245 -0
  82. package/lowcode/pisell-number-keyboard/meta.ts +98 -0
  83. package/lowcode/pisell-price-keyboard/meta.ts +174 -0
  84. package/package.json +2 -2
@@ -0,0 +1,174 @@
1
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
+
3
+ const PisellPriceKeyboardMeta: ComponentMetadata = {
4
+ componentName: 'PisellPriceKeyboard',
5
+ title: 'PisellPriceKeyboard',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ package: '@pisell/materials',
11
+ version: '1.0.3',
12
+ exportName: 'PisellPriceKeyboard',
13
+ main: 'src/index.tsx',
14
+ destructuring: true,
15
+ subName: '',
16
+ },
17
+ props: [
18
+ {
19
+ name: 'defaultValue',
20
+ title: { label: '默认值', tip: '默认值' },
21
+ propType: 'number',
22
+ setter: 'NumberSetter',
23
+ },
24
+ {
25
+ name: 'max',
26
+ title: { label: '最大值', tip: '最大值' },
27
+ propType: 'number',
28
+ setter: 'NumberSetter',
29
+ },
30
+ {
31
+ name: 'min',
32
+ title: { label: '最小值', tip: '最小值' },
33
+ propType: 'number',
34
+ setter: 'NumberSetter',
35
+ },
36
+ {
37
+ name: 'doneText',
38
+ title: { label: '确认按钮文案', tip: '确认按钮文案' },
39
+ propType: 'string',
40
+ defaultValue: 'Done',
41
+ setter: 'PisellI18nSetter',
42
+ },
43
+ {
44
+ name: 'resetText',
45
+ title: { label: '重置按钮文案', tip: '重置按钮文案' },
46
+ propType: 'string',
47
+ defaultValue: 'Reset',
48
+ setter: 'PisellI18nSetter',
49
+ },
50
+ {
51
+ name: 'placeholder',
52
+ title: { label: '展位文字placeholder', tip: 'placeholder' },
53
+ propType: 'string',
54
+ setter: 'PisellI18nSetter',
55
+ },
56
+ {
57
+ title: {
58
+ label: '金额配置',
59
+ },
60
+ display: 'block',
61
+ type: 'group',
62
+ items: [
63
+ {
64
+ name: 'amountProps.precision',
65
+ title: {
66
+ label: '小数点后位数',
67
+ tip: '小数点后位数 默认是小数点后2位',
68
+ },
69
+ propType: 'number',
70
+ setter: 'NumberSetter',
71
+ },
72
+ {
73
+ name: 'amountProps.showCurrencySymbol',
74
+ title: {
75
+ label: '显示货币符号',
76
+ tip: '显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示',
77
+ },
78
+ propType: 'bool',
79
+ defaultValue: true,
80
+ setter: 'BoolSetter',
81
+ },
82
+ {
83
+ name: 'amountProps.useThousandsSeparator',
84
+ title: {
85
+ label: '千分位',
86
+ tip: '千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭',
87
+ },
88
+ propType: 'bool',
89
+ defaultValue: false,
90
+ setter: 'BoolSetter',
91
+ },
92
+ {
93
+ name: 'presets',
94
+ title: {
95
+ label: '快捷金额',
96
+ tip: '快捷金额',
97
+ },
98
+ setter: {
99
+ componentName: 'ArraySetter',
100
+ props: {
101
+ itemSetter: {
102
+ componentName: 'ObjectSetter',
103
+ props: {
104
+ config: {
105
+ items: [
106
+ {
107
+ name: 'value',
108
+ title: 'value',
109
+ setter: 'StringSetter',
110
+ isRequired: true,
111
+ },
112
+ {
113
+ name: 'label',
114
+ title: 'label',
115
+ setter: 'StringSetter',
116
+ isRequired: true,
117
+ },
118
+ ],
119
+ },
120
+ },
121
+ initialValue: () => {
122
+ return {
123
+ value: '100',
124
+ label: '100',
125
+ };
126
+ },
127
+ },
128
+ },
129
+ },
130
+ },
131
+ ],
132
+ },
133
+ ],
134
+ configure: {
135
+ supports: {
136
+ style: true,
137
+ events: [
138
+ {
139
+ name: 'onClick',
140
+ template:
141
+ "onClick(event,${extParams}){\n// 点击时的回调\nconsole.log('onClick', event);}",
142
+ },
143
+ {
144
+ name: 'onChange',
145
+ template:
146
+ "onChange(value,${extParams}){\nconsole.log('onChange', value);}",
147
+ },
148
+ {
149
+ name: 'onEnter',
150
+ template:
151
+ "onEnter(value,${extParams}){\nconsole.log('onEnter', value);}",
152
+ },
153
+ ],
154
+ },
155
+ component: {
156
+ isContainer: true,
157
+ },
158
+ },
159
+ };
160
+ const snippets: Snippet[] = [
161
+ {
162
+ title: 'PisellPriceKeyboard',
163
+ screenshot: '',
164
+ schema: {
165
+ componentName: 'PisellPriceKeyboard',
166
+ props: {},
167
+ },
168
+ },
169
+ ];
170
+
171
+ export default {
172
+ ...PisellPriceKeyboardMeta,
173
+ snippets,
174
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "3.0.48",
3
+ "version": "3.0.49",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -63,8 +63,8 @@
63
63
  "react-virtualized-auto-sizer": "^1.0.20",
64
64
  "crypto-js": "^4.2.0",
65
65
  "@zxing/library": "0.21.2",
66
- "@pisell/utils": "1.0.42",
67
66
  "@pisell/icon": "0.0.11",
67
+ "@pisell/utils": "1.0.42",
68
68
  "@pisell/date-picker": "1.0.100"
69
69
  },
70
70
  "peerDependencies": {