@pisell/materials 6.2.24 → 6.2.25

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 (194) 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 +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +36 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +41 -32
  11. package/es/components/DragSortList/index.js +6 -6
  12. package/es/components/classicLayout/index.js +4 -5
  13. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  14. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  16. package/es/components/icon/index.js +5 -5
  17. package/es/components/iconfont/index.js +1 -1
  18. package/es/components/list/index.js +6 -6
  19. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  20. package/es/components/pisellAdjustPrice/index.js +64 -8
  21. package/es/components/pisellAdjustPrice/index.less +35 -6
  22. package/es/components/pisellAdjustPrice/status.js +32 -0
  23. package/es/components/pisellAdjustPrice/type.js +1 -0
  24. package/es/components/pisellToast/index.js +3 -0
  25. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  26. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
  27. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  28. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  29. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  30. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  31. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  32. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  33. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  34. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  35. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  36. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  37. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  38. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  39. package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
  40. package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  41. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  42. package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
  43. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  44. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  45. package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
  46. package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  47. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  48. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
  49. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  50. package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
  51. package/es/components/productCard/cartSkuCard/index.js +195 -0
  52. package/es/components/productCard/cartSkuCard/index.less +69 -0
  53. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  54. package/es/components/productCard/components/Header/index.js +4 -3
  55. package/es/components/productCard/components/Sales/index.js +2 -2
  56. package/es/components/productCard/index.d.ts +3 -1
  57. package/es/components/productCard/index.js +2 -0
  58. package/es/components/qrcode/index.js +1 -1
  59. package/es/components/sort/components/InlineMenu/index.js +1 -1
  60. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  61. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  62. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  63. package/es/components/table/Header/Buttons/index.js +5 -5
  64. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  65. package/es/components/table/Table/SelectField/index.js +4 -4
  66. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  67. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  68. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  69. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  70. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  71. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  72. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  73. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  74. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  75. package/es/components/table/Table/utils.d.ts +1 -1
  76. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  77. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  78. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  79. package/es/components/translation/utils.js +5 -5
  80. package/es/components/virtual-keyboard/Amount/index.d.ts +3 -20
  81. package/es/components/virtual-keyboard/Amount/index.js +79 -7
  82. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  83. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  84. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  85. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  86. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  87. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  88. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  89. package/es/components/virtual-keyboard/Number/index.d.ts +3 -11
  90. package/es/components/virtual-keyboard/Number/index.js +77 -7
  91. package/es/components/virtual-keyboard/Number/index.less +39 -0
  92. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  93. package/es/components/virtual-keyboard/Number/types.js +1 -0
  94. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  95. package/es/components/virtual-keyboard/index.d.ts +11 -0
  96. package/es/components/virtual-keyboard/index.js +88 -3
  97. package/es/components/virtual-keyboard/index.less +33 -1
  98. package/es/hooks/useResponsive.js +2 -2
  99. package/es/utils/hoc.js +1 -1
  100. package/es/utils/miniRedux.js +8 -9
  101. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  102. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  103. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  104. package/lib/components/iconfont/index.js +1 -1
  105. package/lib/components/lowCodePage/index.js +1 -2
  106. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  107. package/lib/components/pisellAdjustPrice/index.js +119 -57
  108. package/lib/components/pisellAdjustPrice/index.less +35 -6
  109. package/lib/components/pisellAdjustPrice/status.js +60 -0
  110. package/lib/components/pisellAdjustPrice/type.js +17 -0
  111. package/lib/components/pisellToast/index.js +3 -0
  112. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  113. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
  114. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  115. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  116. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  117. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  118. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  119. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  120. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  121. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  122. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  123. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  124. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  125. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  126. package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
  127. package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  128. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  129. package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
  130. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  131. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  132. package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
  133. package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  134. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  135. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
  136. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  137. package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
  138. package/lib/components/productCard/cartSkuCard/index.js +216 -0
  139. package/lib/components/productCard/cartSkuCard/index.less +69 -0
  140. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  141. package/lib/components/productCard/components/Header/index.js +4 -3
  142. package/lib/components/productCard/components/Sales/index.js +2 -2
  143. package/lib/components/productCard/index.d.ts +3 -1
  144. package/lib/components/productCard/index.js +2 -0
  145. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  146. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  147. package/lib/components/table/Table/fields/utils/index.js +1 -2
  148. package/lib/components/table/Table/utils.d.ts +1 -1
  149. package/lib/components/virtual-keyboard/Amount/index.d.ts +3 -20
  150. package/lib/components/virtual-keyboard/Amount/index.js +72 -16
  151. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  152. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  153. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  154. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  155. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  156. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  157. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  158. package/lib/components/virtual-keyboard/Number/index.d.ts +3 -11
  159. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  160. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  161. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  162. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  163. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -20
  164. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  165. package/lib/components/virtual-keyboard/index.js +60 -2
  166. package/lib/components/virtual-keyboard/index.less +33 -1
  167. package/lib/hooks/useResponsive.js +3 -6
  168. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  169. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  170. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  171. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  172. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  173. package/lowcode/virtual-keyboard/meta.ts +131 -0
  174. package/package.json +1 -1
  175. package/dist/umd/materials.min.css +0 -1
  176. package/dist/umd/materials.min.js +0 -1
  177. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  178. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  179. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  180. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  181. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  182. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  183. package/es/components/iconfont/index.d.ts +0 -8
  184. package/es/components/productCard/locales.d.ts +0 -84
  185. package/es/components/productCard/status.d.ts +0 -32
  186. package/es/components/productCard/types.d.ts +0 -84
  187. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  188. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  189. package/lib/components/iconfont/index.d.ts +0 -8
  190. package/lib/components/productCard/locales.d.ts +0 -84
  191. package/lib/components/productCard/status.d.ts +0 -32
  192. package/lib/components/productCard/types.d.ts +0 -84
  193. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  194. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
@@ -54,6 +54,173 @@ const PisellNumberKeyboardMeta: ComponentMetadata = {
54
54
  propType: "string",
55
55
  setter: "PisellI18nSetter",
56
56
  },
57
+ {
58
+ name: 'selectType',
59
+ title: { label: '选择类型', tip: 'selectType | 选择类型' },
60
+ setter: {
61
+ componentName: 'RadioGroupSetter',
62
+ props: {
63
+ options: [
64
+ { title: 'Light', value: 'light' },
65
+ { title: 'Dark', value: 'dark' },
66
+ ],
67
+ },
68
+ },
69
+ defaultValue: 'light',
70
+ extraProps: {
71
+ onChange: (value: string, target: any) => {
72
+ // 根据主题切换自动设置颜色
73
+ const isLight = value === 'light';
74
+
75
+ target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
76
+ target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
77
+ target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
78
+ target.getProps().setPropValue('textColor', "#000000");
79
+ target.getProps().setPropValue('resetButtonBackgroundColor', '#ffffff');
80
+ target.getProps().setPropValue('resetButtonTextColor', "#d92d20");
81
+ target.getProps().setPropValue('doneButtonBackgroundColor', "#4ca30d");
82
+ target.getProps().setPropValue('doneButtonTextColor', "#ffffff");
83
+ target.getProps().setPropValue('isDoneButtonFollowTheme', true);
84
+ target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
85
+ target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
86
+ target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
87
+ target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
88
+ }
89
+ }
90
+ },
91
+ {
92
+ name: "backgroundColor",
93
+ title: {
94
+ label: "背景色",
95
+ tip: "backgroundColor | 背景色",
96
+ },
97
+ propType: "string",
98
+ setter: "ColorSetter",
99
+ defaultValue: "#ffffff",
100
+ },
101
+ {
102
+ name: "containerBackgroundColor",
103
+ title: {
104
+ label: "容器背景色",
105
+ tip: "containerBackgroundColor | 容器背景色",
106
+ },
107
+ propType: "string",
108
+ setter: "ColorSetter",
109
+ defaultValue: "#d0d5dd",
110
+ },
111
+ {
112
+ name: "buttonBackgroundColor",
113
+ title: {
114
+ label: "按钮背景色",
115
+ tip: "buttonBackgroundColor | 按钮背景色",
116
+ },
117
+ propType: "string",
118
+ setter: "ColorSetter",
119
+ defaultValue: "#ffffff",
120
+ },
121
+ {
122
+ name: "textColor",
123
+ title: {
124
+ label: "文本颜色",
125
+ tip: "textColor | 文本颜色",
126
+ },
127
+ propType: "string",
128
+ setter: "ColorSetter",
129
+ defaultValue: "#000000",
130
+ },
131
+ {
132
+ name: "resetButtonBackgroundColor",
133
+ title: {
134
+ label: "重置按钮背景色",
135
+ tip: "resetButtonBackgroundColor | 重置按钮背景色",
136
+ },
137
+ propType: "string",
138
+ setter: "ColorSetter",
139
+ defaultValue: "#ffffff",
140
+ },
141
+ {
142
+ name: "resetButtonTextColor",
143
+ title: {
144
+ label: "重置按钮文本颜色",
145
+ tip: "resetButtonTextColor | 重置按钮文本颜色",
146
+ },
147
+ propType: "string",
148
+ setter: "ColorSetter",
149
+ defaultValue: "#d92d20",
150
+ },
151
+ {
152
+ name: 'isDoneButtonFollowTheme',
153
+ title: { label: 'Done按钮颜色跟随主题色', tip: 'isDoneButtonFollowTheme | Done按钮颜色跟随主题色' },
154
+ propType: 'bool',
155
+ defaultValue: true,
156
+ setter: 'BoolSetter'
157
+ },
158
+ {
159
+ name: "doneButtonBackgroundColor",
160
+ title: {
161
+ label: "Done按钮背景色",
162
+ tip: "doneButtonBackgroundColor | Done按钮背景色",
163
+ },
164
+ propType: "string",
165
+ setter: "ColorSetter",
166
+ defaultValue: "#4ca30d",
167
+ condition(target: any) {
168
+ return !target.getProps().getPropValue("isDoneButtonFollowTheme");
169
+ },
170
+ },
171
+ {
172
+ name: "doneButtonTextColor",
173
+ title: {
174
+ label: "Done按钮文本颜色",
175
+ tip: "doneButtonTextColor | Done按钮文本颜色",
176
+ },
177
+ propType: "string",
178
+ setter: "ColorSetter",
179
+ defaultValue: "#ffffff",
180
+ condition(target: any) {
181
+ return !target.getProps().getPropValue("isDoneButtonFollowTheme");
182
+ },
183
+ },
184
+ {
185
+ name: "keyboardBackgroundColor",
186
+ title: {
187
+ label: "键盘背景色",
188
+ tip: "keyboardBackgroundColor | 键盘背景色",
189
+ },
190
+ propType: "string",
191
+ setter: "ColorSetter",
192
+ defaultValue: "#f9f9f9",
193
+ },
194
+ {
195
+ name: "keyboardButtonBackgroundColor",
196
+ title: {
197
+ label: "键盘按钮背景色",
198
+ tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
199
+ },
200
+ propType: "string",
201
+ setter: "ColorSetter",
202
+ defaultValue: "#ffffff",
203
+ },
204
+ {
205
+ name: "keyboardButtonTextColor",
206
+ title: {
207
+ label: "键盘按钮文本颜色",
208
+ tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
209
+ },
210
+ propType: "string",
211
+ setter: "ColorSetter",
212
+ defaultValue: "#000000",
213
+ },
214
+ {
215
+ name: "keyboardButtonHoverColor",
216
+ title: {
217
+ label: "键盘按钮悬停颜色",
218
+ tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
219
+ },
220
+ propType: "string",
221
+ setter: "ColorSetter",
222
+ defaultValue: "#f5f5f5",
223
+ },
57
224
  ],
58
225
  configure: {
59
226
  supports: {
@@ -130,6 +130,173 @@ const PisellPriceKeyboardMeta: ComponentMetadata = {
130
130
  },
131
131
  ],
132
132
  },
133
+ {
134
+ name: 'selectType',
135
+ title: { label: '选择类型', tip: 'selectType | 选择类型' },
136
+ setter: {
137
+ componentName: 'RadioGroupSetter',
138
+ props: {
139
+ options: [
140
+ { title: 'Light', value: 'light' },
141
+ { title: 'Dark', value: 'dark' },
142
+ ],
143
+ },
144
+ },
145
+ defaultValue: 'light',
146
+ extraProps: {
147
+ onChange: (value: string, target: any) => {
148
+ // 根据主题切换自动设置颜色
149
+ const isLight = value === 'light';
150
+
151
+ target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
152
+ target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
153
+ target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
154
+ target.getProps().setPropValue('textColor', "#000000");
155
+ target.getProps().setPropValue('resetButtonBackgroundColor', '#ffffff');
156
+ target.getProps().setPropValue('resetButtonTextColor', "#d92d20");
157
+ target.getProps().setPropValue('doneButtonBackgroundColor', "#4ca30d");
158
+ target.getProps().setPropValue('doneButtonTextColor', "#ffffff");
159
+ target.getProps().setPropValue('isDoneButtonFollowTheme', true);
160
+ target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
161
+ target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
162
+ target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
163
+ target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
164
+ }
165
+ }
166
+ },
167
+ {
168
+ name: "backgroundColor",
169
+ title: {
170
+ label: "背景色",
171
+ tip: "backgroundColor | 背景色",
172
+ },
173
+ propType: "string",
174
+ setter: "ColorSetter",
175
+ defaultValue: "#ffffff",
176
+ },
177
+ {
178
+ name: "containerBackgroundColor",
179
+ title: {
180
+ label: "容器背景色",
181
+ tip: "containerBackgroundColor | 容器背景色",
182
+ },
183
+ propType: "string",
184
+ setter: "ColorSetter",
185
+ defaultValue: "#d0d5dd",
186
+ },
187
+ {
188
+ name: "buttonBackgroundColor",
189
+ title: {
190
+ label: "按钮背景色",
191
+ tip: "buttonBackgroundColor | 按钮背景色",
192
+ },
193
+ propType: "string",
194
+ setter: "ColorSetter",
195
+ defaultValue: "#ffffff",
196
+ },
197
+ {
198
+ name: "textColor",
199
+ title: {
200
+ label: "文本颜色",
201
+ tip: "textColor | 文本颜色",
202
+ },
203
+ propType: "string",
204
+ setter: "ColorSetter",
205
+ defaultValue: "#000000",
206
+ },
207
+ {
208
+ name: "resetButtonBackgroundColor",
209
+ title: {
210
+ label: "重置按钮背景色",
211
+ tip: "resetButtonBackgroundColor | 重置按钮背景色",
212
+ },
213
+ propType: "string",
214
+ setter: "ColorSetter",
215
+ defaultValue: "#ffffff",
216
+ },
217
+ {
218
+ name: "resetButtonTextColor",
219
+ title: {
220
+ label: "重置按钮文本颜色",
221
+ tip: "resetButtonTextColor | 重置按钮文本颜色",
222
+ },
223
+ propType: "string",
224
+ setter: "ColorSetter",
225
+ defaultValue: "#d92d20",
226
+ },
227
+ {
228
+ name: 'isDoneButtonFollowTheme',
229
+ title: { label: 'Done按钮颜色跟随主题色', tip: 'isDoneButtonFollowTheme | Done按钮颜色跟随主题色' },
230
+ propType: 'bool',
231
+ defaultValue: true,
232
+ setter: 'BoolSetter'
233
+ },
234
+ {
235
+ name: "doneButtonBackgroundColor",
236
+ title: {
237
+ label: "Done按钮背景色",
238
+ tip: "doneButtonBackgroundColor | Done按钮背景色",
239
+ },
240
+ propType: "string",
241
+ setter: "ColorSetter",
242
+ defaultValue: "#4ca30d",
243
+ condition(target: any) {
244
+ return !target.getProps().getPropValue("isDoneButtonFollowTheme");
245
+ },
246
+ },
247
+ {
248
+ name: "doneButtonTextColor",
249
+ title: {
250
+ label: "Done按钮文本颜色",
251
+ tip: "doneButtonTextColor | Done按钮文本颜色",
252
+ },
253
+ propType: "string",
254
+ setter: "ColorSetter",
255
+ defaultValue: "#ffffff",
256
+ condition(target: any) {
257
+ return !target.getProps().getPropValue("isDoneButtonFollowTheme");
258
+ },
259
+ },
260
+ {
261
+ name: "keyboardBackgroundColor",
262
+ title: {
263
+ label: "键盘背景色",
264
+ tip: "keyboardBackgroundColor | 键盘背景色",
265
+ },
266
+ propType: "string",
267
+ setter: "ColorSetter",
268
+ defaultValue: "#f9f9f9",
269
+ },
270
+ {
271
+ name: "keyboardButtonBackgroundColor",
272
+ title: {
273
+ label: "键盘按钮背景色",
274
+ tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
275
+ },
276
+ propType: "string",
277
+ setter: "ColorSetter",
278
+ defaultValue: "#ffffff",
279
+ },
280
+ {
281
+ name: "keyboardButtonTextColor",
282
+ title: {
283
+ label: "键盘按钮文本颜色",
284
+ tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
285
+ },
286
+ propType: "string",
287
+ setter: "ColorSetter",
288
+ defaultValue: "#000000",
289
+ },
290
+ {
291
+ name: "keyboardButtonHoverColor",
292
+ title: {
293
+ label: "键盘按钮悬停颜色",
294
+ tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
295
+ },
296
+ propType: "string",
297
+ setter: "ColorSetter",
298
+ defaultValue: "#f5f5f5",
299
+ },
133
300
  ],
134
301
  configure: {
135
302
  supports: {
@@ -21,6 +21,137 @@ const VirtualKeyboardMeta: ComponentMetadata = {
21
21
  name: "others",
22
22
  setter: ["JsonSetter", "VariableSetter"],
23
23
  },
24
+ {
25
+ name: 'selectType',
26
+ title: { label: '选择类型', tip: 'selectType | 选择类型' },
27
+ setter: {
28
+ componentName: 'RadioGroupSetter',
29
+ props: {
30
+ options: [
31
+ { title: 'Light', value: 'light' },
32
+ { title: 'Dark', value: 'dark' },
33
+ ],
34
+ },
35
+ },
36
+ defaultValue: 'light',
37
+ extraProps: {
38
+ onChange: (value: string, target: any) => {
39
+ // 根据主题切换自动设置颜色
40
+ const isLight = value === 'light';
41
+
42
+ target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
43
+ target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
44
+ target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
45
+ target.getProps().setPropValue('textColor', "#000000");
46
+ target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
47
+ target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
48
+ target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
49
+ target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
50
+ target.getProps().setPropValue('primaryButtonBackgroundColor', '#4ca30d');
51
+ target.getProps().setPropValue('primaryButtonTextColor', '#ffffff');
52
+ }
53
+ }
54
+ },
55
+ {
56
+ name: "backgroundColor",
57
+ title: {
58
+ label: "背景色",
59
+ tip: "backgroundColor | 背景色",
60
+ },
61
+ propType: "string",
62
+ setter: "ColorSetter",
63
+ defaultValue: "#ffffff",
64
+ },
65
+ {
66
+ name: "containerBackgroundColor",
67
+ title: {
68
+ label: "容器背景色",
69
+ tip: "containerBackgroundColor | 容器背景色",
70
+ },
71
+ propType: "string",
72
+ setter: "ColorSetter",
73
+ defaultValue: "#d0d5dd",
74
+ },
75
+ {
76
+ name: "buttonBackgroundColor",
77
+ title: {
78
+ label: "按钮背景色",
79
+ tip: "buttonBackgroundColor | 按钮背景色",
80
+ },
81
+ propType: "string",
82
+ setter: "ColorSetter",
83
+ defaultValue: "#ffffff",
84
+ },
85
+ {
86
+ name: "textColor",
87
+ title: {
88
+ label: "文本颜色",
89
+ tip: "textColor | 文本颜色",
90
+ },
91
+ propType: "string",
92
+ setter: "ColorSetter",
93
+ defaultValue: "#000000",
94
+ },
95
+ {
96
+ name: "keyboardBackgroundColor",
97
+ title: {
98
+ label: "键盘背景色",
99
+ tip: "keyboardBackgroundColor | 键盘背景色",
100
+ },
101
+ propType: "string",
102
+ setter: "ColorSetter",
103
+ defaultValue: "#f9f9f9",
104
+ },
105
+ {
106
+ name: "keyboardButtonBackgroundColor",
107
+ title: {
108
+ label: "键盘按钮背景色",
109
+ tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
110
+ },
111
+ propType: "string",
112
+ setter: "ColorSetter",
113
+ defaultValue: "#ffffff",
114
+ },
115
+ {
116
+ name: "keyboardButtonTextColor",
117
+ title: {
118
+ label: "键盘按钮文本颜色",
119
+ tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
120
+ },
121
+ propType: "string",
122
+ setter: "ColorSetter",
123
+ defaultValue: "#000000",
124
+ },
125
+ {
126
+ name: "keyboardButtonHoverColor",
127
+ title: {
128
+ label: "键盘按钮悬停颜色",
129
+ tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
130
+ },
131
+ propType: "string",
132
+ setter: "ColorSetter",
133
+ defaultValue: "#f5f5f5",
134
+ },
135
+ {
136
+ name: "primaryButtonBackgroundColor",
137
+ title: {
138
+ label: "主要按钮背景色",
139
+ tip: "primaryButtonBackgroundColor | 主要按钮背景色",
140
+ },
141
+ propType: "string",
142
+ setter: "ColorSetter",
143
+ defaultValue: "#4ca30d",
144
+ },
145
+ {
146
+ name: "primaryButtonTextColor",
147
+ title: {
148
+ label: "主要按钮文本颜色",
149
+ tip: "primaryButtonTextColor | 主要按钮文本颜色",
150
+ },
151
+ propType: "string",
152
+ setter: "ColorSetter",
153
+ defaultValue: "#ffffff",
154
+ },
24
155
  ],
25
156
  configure: {
26
157
  supports: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.2.24",
3
+ "version": "6.2.25",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1 +0,0 @@
1
- .materials-grid{display:flex;flex-direction:column;height:100%;width:100%}.materials-grid-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-header .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-actions .left-wrap{align-items:center;display:flex;flex:1 1}.materials-grid-actions .left-wrap .pisell-lowcode-form-item{margin-bottom:0}.materials-grid-actions .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions .right-wrap .icon{cursor:pointer;transition:.2s}.materials-grid-actions .right-wrap .icon:hover{color:var(--theme-color)}.materials-grid-actions .right-wrap .button{align-items:center;display:flex;font-size:12px;height:28px;justify-content:center}.filter-dropdown-wrap{display:flex;flex-direction:column;max-height:400px;max-width:calc(100vw - 24px);min-width:250px;padding:4px;width:400px}.filter-dropdown-wrap .filter-dropdown-wrap-content{flex:1 1;overflow:auto}.filter-dropdown-wrap .filter-dropdown-drag-item{align-items:center;background:#f9fafb;background:var(--gray-50,#f9fafb);border-radius:8px;display:flex;margin-bottom:12px;padding:8px 12px 12px}.filter-dropdown-wrap .filter-dropdown-drag-item .dots-six-icon{color:#98a2b3;cursor:pointer;font-size:24px}.filter-dropdown-wrap .filter-dropdown-drag-item .pisell-lowcode-form-item{margin-bottom:0}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right{flex:1 1;margin-left:16px}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right .filter-dropdown-drag-item-title{color:#777;color:var(--text-text-2,#777);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.filter-dropdown-container-wrap{border-bottom:1px solid #e2e2e2;border-bottom:1px solid var(--surface-surface-4,#e2e2e2);margin-bottom:20px;min-height:70px}.filter-dropdown-container-wrap:last-child{border:none}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap{align-items:center;color:#919191;color:var(--text-text-3,#919191);display:flex;font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin-bottom:12px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-title{color:#101828;color:var(--gray-900,#101828);font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-right:6px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-icon-help{color:#98a2b3;color:var(--gray-400,#98a2b3);font-size:20px}.filter-dropdown-container-wrap .filter-dropdown-container-filter-wrap{min-height:80px}.materials-sort-list-empty{color:#5a5a5a;display:block;padding-top:22px;text-align:center}.materials-grid-summary{margin-bottom:16px}.grid-view-table-wrap{position:relative}.materials-grid-paginator{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:center;margin:0!important;padding:0 20px;width:100%}.materials-grid-paginator .pisell-lowcode-pagination-total-text{color:#667085;color:var(--gray-500,#667085);font-size:14px;font-style:normal;font-weight:500;margin-right:auto}.materials-grid-paginator .pisell-lowcode-pagination-item{border:1px solid #d0d5dd;border-radius:0;border-right:0;margin:0;position:relative}.materials-grid-paginator .pisell-lowcode-pagination-jump-next,.materials-grid-paginator .pisell-lowcode-pagination-jump-prev{border:1px solid #d0d5dd;border-radius:0;border-right:none;margin:0}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover .pisell-lowcode-pagination-item-link-icon{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active:hover{border-color:#d0d5dd!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active{background-color:rgba(0,0,0,.06)}.materials-grid-paginator .pisell-lowcode-pagination-item-active a{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-prev{align-items:center;border:1px solid #d0d5dd;border-radius:8px 0 0 8px;border-right:none;display:flex;justify-content:center;margin:0;min-width:auto}.materials-grid-paginator .pisell-lowcode-pagination-next{align-items:center;border:1px solid #d0d5dd;border-radius:0 8px 8px 0;display:flex;justify-content:center;margin:0;min-width:auto}.paginator-page-btn{align-items:center;border-radius:4px 4px 4px 4px;color:#344054;color:var(--gray-700,#344054);cursor:pointer;display:flex;font-size:12px;font-weight:400;justify-content:center;padding:10px 16px;transition:.2s;-ms-user-select:none;user-select:none}.paginator-page-btn .paginator-page-btn-text{font-weight:600}.paginator-page-btn .paginator-page-btn-left-icon,.paginator-page-btn .paginator-page-btn-right-icon{font-size:20px}.paginator-page-btn .paginator-page-btn-left-icon{margin-right:8px}.paginator-page-btn .paginator-page-btn-right-icon{margin-left:8px}.paginator-page-btn.left{margin-right:auto}.paginator-page-btn.left .icon{font-size:18px;margin-right:8px}.paginator-page-btn.right{margin-left:auto}.paginator-page-btn.right .icon{font-size:18px;margin-left:8px;transform:rotate(180deg)}.materials-grid-paginator-mini{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:space-between;margin:0!important;overflow:hidden;padding:0 20px;width:100%}.materials-grid-paginator-mini .paginator-page-btn{padding:8px}.materials-grid-paginator-mini .materials-grid-paginator-center{align-items:center;display:flex;gap:4px;justify-content:center}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-text{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:400}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-value{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:500}.materials-grid-paginator-mini .pisell-lowcode-pagination-next,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev{border:1px solid #d0d5dd;border-radius:8px;margin:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-left-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-left-icon{margin-right:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-right-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-right-icon{margin-left:0}.react-resizable{position:relative}.react-resizable-handle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZaIiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+);background-origin:content-box;background-position:100% 100%;background-repeat:no-repeat;box-sizing:border-box;height:20px;padding:0 3px 3px 0;position:absolute;width:20px}.react-resizable-handle-sw{bottom:0;cursor:sw-resize;left:0;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;cursor:se-resize;right:0}.react-resizable-handle-nw{cursor:nw-resize;left:0;top:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;right:0;top:0;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;left:50%;margin-left:-10px}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.materials-grid-table-header-cell{align-items:center;display:flex;height:44px;padding:0 14px}.materials-grid-table-header-cell .field-icon{color:#777;font-size:18px}.materials-grid-table-header-cell .materials-grid-table-header-cell-content{color:#1b1b1b;flex:auto;font-size:14px;font-weight:600;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.materials-grid-table-header-cell .actions{align-items:center;display:flex;gap:8px}.materials-grid-table-header-cell .actions .action{color:#ababab;cursor:pointer;font-size:14px}.editable-cell-value-wrap{height:100%;width:100%}.materials-grid-table-cell{height:1px;padding:0!important}.cell-provider{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:100%;justify-content:center;padding:12px;position:relative;width:100%}.cell-provider.focus{box-shadow:var(--theme-color) 0 0 0 1px!important}