@pisell/materials 1.0.846 → 1.0.848

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 (257) 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/meta.js +7 -7
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +22 -22
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appVersionControl/index.d.ts +4 -0
  10. package/es/components/batch-editor/index.d.ts +0 -1
  11. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  13. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  21. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  22. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +16 -0
  24. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  26. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  27. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  28. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  29. package/es/components/dataSourceComponents/fields/Translation/index.d.ts +3 -0
  30. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  32. package/es/components/dataSourceComponents/fields/index.d.ts +10 -11
  33. package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
  34. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  35. package/es/components/date-picker/index.d.ts +0 -1
  36. package/es/components/filter/index.d.ts +0 -1
  37. package/es/components/list/index.d.ts +0 -1
  38. package/es/components/lowCodePage/index.d.ts +0 -1
  39. package/es/components/page/index.d.ts +0 -1
  40. package/es/components/pisell-config-provider/index.d.ts +12 -0
  41. package/es/components/pisellAdjustPrice/index.d.ts +1 -7
  42. package/es/components/pisellAdjustPrice/index.js +61 -7
  43. package/es/components/pisellAdjustPrice/index.less +35 -6
  44. package/es/components/pisellAdjustPrice/type.js +1 -0
  45. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  46. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  47. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  48. package/es/components/pisellDraggable/index.d.ts +35 -0
  49. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  50. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  51. package/es/components/pisellDropSort/types.d.ts +58 -0
  52. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  53. package/es/components/pisellInput/index.d.ts +0 -1
  54. package/es/components/pisellLoading/index.d.ts +0 -1
  55. package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
  56. package/es/components/pisellMenu/types.d.ts +27 -0
  57. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  58. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  59. package/es/components/pisellModal/components/index.d.ts +0 -1
  60. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  61. package/es/components/pisellNavigationMenu/types.d.ts +85 -0
  62. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  63. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  64. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  65. package/es/components/productCard/components/Header/index.d.ts +0 -1
  66. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  67. package/es/components/productCard/components/Note/index.d.ts +0 -1
  68. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  69. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  70. package/es/components/productCard/components/Packages/index.d.ts +0 -1
  71. package/es/components/productCard/components/Sales/index.d.ts +0 -1
  72. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  73. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  74. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  75. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  76. package/es/components/productCard/components/Time/index.d.ts +3 -0
  77. package/es/components/productCard/index.d.ts +5 -0
  78. package/es/components/qrcode/index.d.ts +0 -1
  79. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  80. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  81. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  82. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  83. package/es/components/table/Actions/index.d.ts +0 -1
  84. package/es/components/table/BasicTable/index.d.ts +0 -1
  85. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  86. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  87. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  88. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  89. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  90. package/es/components/table/Gallery/index.d.ts +5 -0
  91. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  92. package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  96. package/es/components/table/Table/fields/index.d.ts +2 -3
  97. package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
  98. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  100. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  101. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  102. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  103. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  104. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  105. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  106. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  107. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  108. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  109. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  110. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  111. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  112. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  113. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  114. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  115. package/es/components/table/Table/index.d.ts +4 -0
  116. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  117. package/es/components/table/Table/utils.d.ts +173 -0
  118. package/es/components/table/View/index.d.ts +0 -1
  119. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  120. package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
  121. package/es/components/translation/index.d.ts +14 -0
  122. package/es/components/versionModal/index.d.ts +24 -0
  123. package/es/components/versionSelect/index.d.ts +0 -1
  124. package/es/components/virtual-keyboard/Amount/index.d.ts +10 -0
  125. package/es/components/virtual-keyboard/Amount/index.js +9 -4
  126. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  127. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +37 -9
  128. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -1
  129. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  130. package/es/index.d.ts +142 -0
  131. package/es/utils/index.d.ts +1 -1
  132. package/lib/components/appVersionControl/index.d.ts +4 -0
  133. package/lib/components/batch-editor/index.d.ts +0 -1
  134. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  135. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  136. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  137. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  138. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  139. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  140. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  141. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  142. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  143. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  144. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  145. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  146. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +16 -0
  147. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  148. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  149. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  150. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  151. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  152. package/lib/components/dataSourceComponents/fields/Translation/index.d.ts +3 -0
  153. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  154. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  155. package/lib/components/dataSourceComponents/fields/index.d.ts +10 -11
  156. package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
  157. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  158. package/lib/components/date-picker/index.d.ts +0 -1
  159. package/lib/components/filter/index.d.ts +0 -1
  160. package/lib/components/list/index.d.ts +0 -1
  161. package/lib/components/lowCodePage/index.d.ts +0 -1
  162. package/lib/components/page/index.d.ts +0 -1
  163. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  164. package/lib/components/pisellAdjustPrice/index.d.ts +1 -7
  165. package/lib/components/pisellAdjustPrice/index.js +127 -57
  166. package/lib/components/pisellAdjustPrice/index.less +35 -6
  167. package/lib/components/pisellAdjustPrice/type.js +17 -0
  168. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  169. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  170. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  171. package/lib/components/pisellDraggable/index.d.ts +35 -0
  172. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  173. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  174. package/lib/components/pisellDropSort/types.d.ts +58 -0
  175. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  176. package/lib/components/pisellInput/index.d.ts +0 -1
  177. package/lib/components/pisellLoading/index.d.ts +0 -1
  178. package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
  179. package/lib/components/pisellMenu/types.d.ts +27 -0
  180. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  181. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  182. package/lib/components/pisellModal/components/index.d.ts +0 -1
  183. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  184. package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
  185. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  186. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  187. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  188. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  189. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  190. package/lib/components/productCard/components/Note/index.d.ts +0 -1
  191. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  192. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  193. package/lib/components/productCard/components/Packages/index.d.ts +0 -1
  194. package/lib/components/productCard/components/Sales/index.d.ts +0 -1
  195. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  196. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  197. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  198. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  199. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  200. package/lib/components/productCard/index.d.ts +5 -0
  201. package/lib/components/qrcode/index.d.ts +0 -1
  202. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  203. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  204. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  205. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  206. package/lib/components/table/Actions/index.d.ts +0 -1
  207. package/lib/components/table/BasicTable/index.d.ts +0 -1
  208. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  209. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  210. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  211. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  212. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  213. package/lib/components/table/Gallery/index.d.ts +5 -0
  214. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  215. package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
  216. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  217. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  218. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  219. package/lib/components/table/Table/fields/index.d.ts +2 -3
  220. package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
  221. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  222. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  223. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  224. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  225. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  226. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  227. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  228. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  229. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  230. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  231. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  232. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  233. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  234. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  235. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  236. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  237. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  238. package/lib/components/table/Table/index.d.ts +4 -0
  239. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  240. package/lib/components/table/Table/utils.d.ts +173 -0
  241. package/lib/components/table/View/index.d.ts +0 -1
  242. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  243. package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
  244. package/lib/components/translation/index.d.ts +14 -0
  245. package/lib/components/versionModal/index.d.ts +24 -0
  246. package/lib/components/versionSelect/index.d.ts +0 -1
  247. package/lib/components/virtual-keyboard/Amount/index.d.ts +10 -0
  248. package/lib/components/virtual-keyboard/Amount/index.js +8 -3
  249. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  250. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +30 -7
  251. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -1
  252. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -20
  253. package/lib/index.d.ts +142 -0
  254. package/lib/utils/index.d.ts +1 -1
  255. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  256. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  257. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -198,12 +197,12 @@ export declare const fieldList: ({
198
197
  field_icon: string;
199
198
  field_name: string;
200
199
  field_type: string;
201
- default_value: boolean;
200
+ default_value: string;
202
201
  } | {
203
202
  field_icon: string;
204
203
  field_name: string;
205
204
  field_type: string;
206
- default_value: string;
205
+ default_value: boolean;
207
206
  } | {
208
207
  field_icon: string;
209
208
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.NamedExoticComponent<any>;
4
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
4
3
  export default SortRow;
@@ -0,0 +1,173 @@
1
+ import { GroupValue } from "../Actions/component/Group/PopoverContent";
2
+ import { FilterItemProps, FilterType } from "../../filter/types";
3
+ import { ColumnSettingType, DataSourceGroupType, GallerySettingValueType, ModeType, SortType } from "../types";
4
+ export declare const getHash: (obj: any) => any;
5
+ export declare const calcFilterSort: ({ dataSource, filter, sort, columns }: any) => any;
6
+ /**
7
+ * 合并列设置
8
+ * @param defaultColumns 默认列设置
9
+ * @param tableId 表ID
10
+ * @returns 合并后的列设置
11
+ */
12
+ export declare const mergeColumnSetting: ({ columns, tableId, currentViewMode, }: {
13
+ columns: Record<string, any>[];
14
+ tableId?: string | undefined;
15
+ currentViewMode: ModeType;
16
+ }) => {
17
+ isShow: boolean;
18
+ }[] | ({
19
+ width: any;
20
+ isShow: any;
21
+ sortIndex: number;
22
+ } | {
23
+ isShow: boolean;
24
+ sortIndex: number;
25
+ })[];
26
+ /**
27
+ * 对数据源进行排序
28
+ * @param dataSource 数据源数组
29
+ * @param sortObj 排序对象,包含排序的键、值和类型
30
+ * @returns 排序后的数据源数组
31
+ */
32
+ export declare const sortDataSource: (dataSource: Record<string, any>[], sortObj: {
33
+ sortKey: string;
34
+ sortValue: "asc" | "desc";
35
+ sortType: "date" | "string" | "number";
36
+ }) => Record<string, any>[];
37
+ /**
38
+ * 根据行键获取 ID
39
+ * @param item 记录对象
40
+ * @param rowKey 行键,可以是字符串或函数
41
+ * @returns 返回 ID
42
+ */
43
+ export declare const getIdByRowKey: (item: Record<string, any>, rowKey: string | ((params: any) => string)) => any;
44
+ /**
45
+ * 根据分组条件对数据源进行分组
46
+ * @param dataSource 数据源
47
+ * @param group 分组条件
48
+ * @param rowKey 行键生成函数或字符串
49
+ * @returns 返回分组后的数据源
50
+ */
51
+ export declare const groupDataSource: (dataSource: Record<string, any>[], group: GroupValue, rowKey: string | ((params: any) => string)) => Record<string, any>[];
52
+ declare type ViewSetting = {
53
+ order_by: string;
54
+ group_by: GroupValue;
55
+ column_setting: Record<string, any>[];
56
+ gallery_setting: GallerySettingValueType;
57
+ filters: any;
58
+ filter_setting: {
59
+ quickFilter: FilterItemProps[];
60
+ otherFilter: FilterItemProps[];
61
+ };
62
+ };
63
+ /**
64
+ * 本地存储的表格设置对象
65
+ */
66
+ declare type TableSettingObjType = {
67
+ view_mode: ModeType;
68
+ currentSettingHash: string;
69
+ } & {
70
+ [K in ModeType]: ViewSetting;
71
+ };
72
+ /**
73
+ * 将表格设置保存到本地存储
74
+ * @param tableId 表格id
75
+ * @param tableSettingObj 表格设置对象
76
+ */
77
+ export declare const setTableSettingToLocalStorage: ({ tableId, tableSettingObj, currentViewMode, currentSettingHash, }: {
78
+ tableId: string;
79
+ tableSettingObj: Partial<ViewSetting & {
80
+ view_mode: ModeType;
81
+ }>;
82
+ currentViewMode: ModeType;
83
+ currentSettingHash: string;
84
+ }) => {
85
+ key: string;
86
+ value: Record<string, any>;
87
+ } | undefined;
88
+ export declare const clearTableSettingToLocalStorage: (tableId?: string) => void;
89
+ /**
90
+ * 从本地存储中获取表格设置, 全部配置
91
+ * @param tableId 表格ID
92
+ * @returns 表格设置对象
93
+ */
94
+ export declare const getTableSettingFromLocalStorage: (tableId?: string) => Partial<TableSettingObjType>;
95
+ /**
96
+ * 从LocalStorage读取表当前视图模式
97
+ * @param tableId
98
+ */
99
+ export declare const getCurrentViewModeFromLocalStorage: (tableId?: string) => ModeType | undefined;
100
+ /**
101
+ * 根据视图模式获取配置
102
+ * @param tableId
103
+ * @param currentViewMode
104
+ */
105
+ export declare const getTableSettingByCurrentViewMode: (tableId: string, currentViewMode: ModeType) => ViewSetting | undefined;
106
+ /**
107
+ * 将表单值保存到本地存储中
108
+ * @param tableId 表单ID
109
+ * @param allValues 表单所有值
110
+ * @param keys 存储的键名
111
+ */
112
+ export declare const setFormValuesToLocalStorage: ({ tableId, allValues, keys, currentViewMode, currentSettingHash, }: {
113
+ tableId?: string | undefined;
114
+ allValues?: Record<string, any> | undefined;
115
+ keys?: string[] | undefined;
116
+ currentViewMode: ModeType;
117
+ currentSettingHash: string;
118
+ }) => {
119
+ key: string;
120
+ value: Record<string, any>;
121
+ } | undefined;
122
+ /**
123
+ * 获取表格键值
124
+ * @param tableId 表格ID
125
+ * @returns 返回格式化后的表格键值
126
+ */
127
+ export declare const getTableKey: (tableId: string) => string;
128
+ /**
129
+ * 合并筛选设置
130
+ * @param list 列表数据
131
+ * @param quickFilterMaxLength 快速筛选最大长度
132
+ * @param tableId 表ID
133
+ * @returns 返回合并后的筛选设置
134
+ */
135
+ export declare const mergeFilterSetting: ({ list, quickFilterMaxLength, tableId, sortButtonShow, currentViewMode, }: {
136
+ list: FilterItemProps[];
137
+ quickFilterMaxLength: number;
138
+ tableId?: string | undefined;
139
+ sortButtonShow: boolean;
140
+ currentViewMode: ModeType;
141
+ }) => {
142
+ quickFilter: FilterItemProps[];
143
+ otherFilter: FilterItemProps[];
144
+ notSortFilter: FilterItemProps[];
145
+ };
146
+ /**
147
+ * 过滤数据源
148
+ * @param dataSource 数据源
149
+ * @param filters 过滤条件
150
+ * @param filterLocalArr 本地过滤项
151
+ * @returns 过滤后的数据源
152
+ */
153
+ export declare const filterDataSource: (dataSource: Record<string, any>[], filters: Record<string, any>, filterLocalArr: FilterItemProps[]) => Record<string, any>[];
154
+ /**
155
+ * 根据模式获取设置键数组
156
+ * @param filter 筛选器
157
+ * @param columnSetting 列设置
158
+ * @param dataSourceGroup 数据源分组
159
+ * @param sort 排序
160
+ * @param mode 模式,可选值为 "localStorage" 或 "remote"
161
+ * @returns 返回设置键数组
162
+ */
163
+ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourceGroup, sort, mode, currentViewMode, }: {
164
+ filter?: FilterType | undefined;
165
+ columnSetting?: ColumnSettingType | undefined;
166
+ dataSourceGroup?: DataSourceGroupType | undefined;
167
+ sort?: SortType | undefined;
168
+ mode: "" | "localStorage" | "remote";
169
+ currentViewMode: ModeType;
170
+ }) => ("view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
171
+ export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
+ export declare const stringify: (obj: Record<string, any>) => string;
173
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from '../types';
3
2
  declare const View: (props: GridViewProps & {
4
3
  setTableSetting: (values: Record<string, any>) => void;
@@ -0,0 +1,22 @@
1
+ import { FilterType } from "../../filter/types";
2
+ import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType } from "../types";
3
+ declare type UseTableSettingProps = {
4
+ tableId?: string;
5
+ filter: FilterType;
6
+ columns: Record<string, any>[];
7
+ columnSetting?: ColumnSettingType;
8
+ dataSourceGroup?: DataSourceGroupType;
9
+ sort?: SortType;
10
+ view: GridViewType;
11
+ currentViewMode: ModeType;
12
+ gallery?: GallerySettingType;
13
+ currentSettingHash: string;
14
+ exportImport?: ExportImportModeType;
15
+ };
16
+ declare const useTableSetting: (params: UseTableSettingProps) => {
17
+ setTableSetting: (values: Record<string, any>) => void;
18
+ tableSetting: {
19
+ [x: string]: any;
20
+ };
21
+ };
22
+ export default useTableSetting;
@@ -0,0 +1,12 @@
1
+ import { FormInstance } from "antd/es/form";
2
+ import { FilterType } from "../../filter/types";
3
+ declare type UseTransDataSourceParams = {
4
+ form: FormInstance;
5
+ localPagination: boolean;
6
+ dataSource: Record<string, any>[];
7
+ rowKey: string | ((params: any) => string);
8
+ filter: FilterType;
9
+ currentView: 'gallery' | 'table';
10
+ };
11
+ declare const useTransDataSource: (params: UseTransDataSourceParams) => Record<string, any>[];
12
+ export default useTransDataSource;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare type Value = {
4
+ en: string;
5
+ 'zh-CN': string;
6
+ 'zh-HK': string;
7
+ };
8
+ interface TranslationProps {
9
+ value: Value;
10
+ onChange: (value: Value) => void;
11
+ maxLength?: number;
12
+ }
13
+ declare const Translation: React.FC<TranslationProps>;
14
+ export default Translation;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { Version } from '../versionSelect';
3
+ import './index.less';
4
+ interface PublishVersionModalProps {
5
+ visible: boolean;
6
+ currentVersion: string;
7
+ onCancel: () => void;
8
+ onConfirm: (data: VersionData) => void;
9
+ isShowNote?: boolean;
10
+ confirmLoading?: boolean;
11
+ versions?: Version[];
12
+ isShowBasedOn?: boolean;
13
+ isShowCurrentVersion?: boolean;
14
+ isValidateVersion?: boolean;
15
+ title: string;
16
+ }
17
+ interface VersionData {
18
+ version: string;
19
+ note: string;
20
+ baseVersion?: string;
21
+ versionType?: string;
22
+ }
23
+ declare const PublishVersionModal: React.FC<PublishVersionModalProps>;
24
+ export default PublishVersionModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {
@@ -1,5 +1,14 @@
1
1
  import React from 'react';
2
2
  import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
+ export interface RightItemsStyleProps {
4
+ buttonBackgroundColor?: string;
5
+ textColor?: string;
6
+ resetButtonBackgroundColor?: string;
7
+ resetButtonTextColor?: string;
8
+ isDoneButtonFollowTheme?: boolean;
9
+ doneButtonBackgroundColor?: string;
10
+ doneButtonTextColor?: string;
11
+ }
3
12
  export interface AmountProps {
4
13
  max?: number;
5
14
  min?: number;
@@ -17,6 +26,7 @@ export interface AmountProps {
17
26
  onEnter?: (val: string | number) => void;
18
27
  defaultSelect?: boolean;
19
28
  inputFormat?: (_v: string) => React.ReactNode | null;
29
+ rightItemsStyle?: RightItemsStyleProps;
20
30
  }
21
31
  declare const Amount: (props: AmountProps) => JSX.Element;
22
32
  export default Amount;
@@ -19,9 +19,10 @@ var Amount = function Amount(props) {
19
19
  onEnter = props.onEnter,
20
20
  presets = props.presets,
21
21
  defaultSelect = props.defaultSelect,
22
- inputFormat = props.inputFormat;
22
+ inputFormat = props.inputFormat,
23
+ rightItemsStyle = props.rightItemsStyle;
23
24
  var _useControllableValue = useControllableValue(props, {
24
- defaultValue: defaultValue || ""
25
+ defaultValue: defaultValue || ''
25
26
  }),
26
27
  _useControllableValue2 = _slicedToArray(_useControllableValue, 2),
27
28
  value = _useControllableValue2[0],
@@ -44,7 +45,10 @@ var Amount = function Amount(props) {
44
45
  precision: precision,
45
46
  hideDecimalForWholeNumbers: false,
46
47
  showCurrencySymbol: amountProps === null || amountProps === void 0 ? void 0 : amountProps.showCurrencySymbol,
47
- useThousandsSeparator: amountProps === null || amountProps === void 0 ? void 0 : amountProps.useThousandsSeparator
48
+ useThousandsSeparator: amountProps === null || amountProps === void 0 ? void 0 : amountProps.useThousandsSeparator,
49
+ style: {
50
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
51
+ }
48
52
  }), endWith && '.');
49
53
  };
50
54
  return /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
@@ -59,7 +63,8 @@ var Amount = function Amount(props) {
59
63
  doneText: doneText,
60
64
  resetText: resetText,
61
65
  onEnter: onEnter,
62
- presets: presets
66
+ presets: presets,
67
+ rightItemsStyle: rightItemsStyle
63
68
  });
64
69
  };
65
70
  export default Amount;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { PresetsProps } from "./Presets";
2
+ import { PresetsProps } from './Presets';
3
+ import { RightItemsStyleProps } from '../Amount';
3
4
  import './index.less';
4
5
  export interface BaseNumberKeyboardProps {
5
6
  placeholder?: string;
@@ -14,6 +15,7 @@ export interface BaseNumberKeyboardProps {
14
15
  min?: number;
15
16
  presets?: PresetsProps['presets'];
16
17
  defaultSelect?: boolean;
18
+ rightItemsStyle?: RightItemsStyleProps;
17
19
  }
18
20
  declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
19
21
  export default BaseNumberKeyboard;
@@ -1,3 +1,9 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
8
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -86,7 +92,8 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
86
92
  min = props.min,
87
93
  onEnter = props.onEnter,
88
94
  presets = props.presets,
89
- defaultSelect = props.defaultSelect;
95
+ defaultSelect = props.defaultSelect,
96
+ rightItemsStyle = props.rightItemsStyle;
90
97
  var _useControllableValue = useControllableValue(props, {
91
98
  defaultValue: defaultValue
92
99
  }),
@@ -107,7 +114,11 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
107
114
  className: "virtual-keyboard-input-delete-icon"
108
115
  }),
109
116
  disabled: false,
110
- type: 'text'
117
+ type: 'text',
118
+ style: {
119
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000',
120
+ backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#ffffff'
121
+ }
111
122
  }, {
112
123
  value: 'reset',
113
124
  label: resetText || 'Reset',
@@ -115,7 +126,8 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
115
126
  type: 'text',
116
127
  style: {
117
128
  fontSize: '18px',
118
- color: '#D92D20'
129
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonTextColor) || '#D92D20',
130
+ backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || '#ffffff'
119
131
  }
120
132
  }, {
121
133
  value: 'done',
@@ -125,11 +137,23 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
125
137
  size: 2,
126
138
  style: {
127
139
  fontSize: '18px',
128
- background: 'var(--Green-light-600, #4CA30D)',
129
- color: '#fff'
140
+ background: rightItemsStyle !== null && rightItemsStyle !== void 0 && rightItemsStyle.isDoneButtonFollowTheme ? 'var(--theme-color)' : (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || '#5d3f9f',
141
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonTextColor) || '#ffffff'
130
142
  }
131
143
  }];
132
144
  }, [doneText, resetText]);
145
+
146
+ // 给每个item增加背景色
147
+ var itemsWithStyle = useMemo(function () {
148
+ return items.map(function (item) {
149
+ return _objectSpread(_objectSpread({}, item), {}, {
150
+ style: {
151
+ backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#fff',
152
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
153
+ }
154
+ });
155
+ });
156
+ }, [items, rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor, rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor]);
133
157
  var checkValue = function checkValue(val) {
134
158
  // 超过最大值时使用最大值
135
159
  if (isNumber(max) && Number(val) > max) {
@@ -161,11 +185,11 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
161
185
  },
162
186
  delete: function _delete() {
163
187
  // 选中时删除全部 否则删除最后一位
164
- handleChangeValue(select ? '' : "".concat(value || "").slice(0, -1));
188
+ handleChangeValue(select ? '' : "".concat(value || '').slice(0, -1));
165
189
  },
166
190
  reset: function reset() {
167
191
  // 重置到默认值
168
- handleChangeValue("".concat(defaultValue || "") || '');
192
+ handleChangeValue("".concat(defaultValue || '') || '');
169
193
  },
170
194
  done: function done() {
171
195
  onEnter === null || onEnter === void 0 || onEnter(value);
@@ -200,12 +224,16 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
200
224
  },
201
225
  showDelete: false,
202
226
  onValueSelect: setSelect,
203
- defaultSelect: defaultSelect
227
+ defaultSelect: defaultSelect,
228
+ style: {
229
+ backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#fff',
230
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
231
+ }
204
232
  }), /*#__PURE__*/React.createElement(Presets, {
205
233
  presets: presets,
206
234
  onChange: handleChangeValue
207
235
  }), /*#__PURE__*/React.createElement(Keyboard, {
208
- items: items,
236
+ items: itemsWithStyle,
209
237
  rightItems: rightItems,
210
238
  onChange: handleKeyboardChange
211
239
  }));
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { InputProps } from 'antd';
3
3
  import './index.less';
4
4
  export interface VirtualKeyInputProps extends InputProps {
@@ -7,6 +7,7 @@ export interface VirtualKeyInputProps extends InputProps {
7
7
  showDelete?: boolean;
8
8
  onValueSelect?: (selected: boolean) => void;
9
9
  defaultSelect?: boolean;
10
+ style?: React.CSSProperties;
10
11
  }
11
12
  declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
12
13
  export default VirtualKeyInput;
@@ -20,7 +20,8 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
20
20
  _props$showDelete = props.showDelete,
21
21
  showDelete = _props$showDelete === void 0 ? true : _props$showDelete,
22
22
  onValueSelect = props.onValueSelect,
23
- defaultSelect = props.defaultSelect;
23
+ defaultSelect = props.defaultSelect,
24
+ style = props.style;
24
25
  var _useState = useState(defaultSelect !== null && defaultSelect !== void 0 ? defaultSelect : false),
25
26
  _useState2 = _slicedToArray(_useState, 2),
26
27
  select = _useState2[0],
@@ -57,7 +58,10 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
57
58
  });
58
59
  };
59
60
  return /*#__PURE__*/React.createElement("div", {
60
- className: "virtual-keyboard-input-wrap"
61
+ className: "virtual-keyboard-input-wrap",
62
+ style: {
63
+ backgroundColor: (style === null || style === void 0 ? void 0 : style.backgroundColor) || '#ffffff'
64
+ }
61
65
  }, props.renderInput ? /*#__PURE__*/React.createElement("div", {
62
66
  className: classNames('virtual-keyboard-input', {
63
67
  'virtual-keyboard-input-select': select
@@ -66,6 +70,9 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
66
70
  if (value) {
67
71
  handleSelectChange(!select);
68
72
  }
73
+ },
74
+ style: {
75
+ color: (style === null || style === void 0 ? void 0 : style.color) || '#000000'
69
76
  }
70
77
  }, props.renderInput(props)) : /*#__PURE__*/React.createElement(Input, _extends({
71
78
  className: "virtual-keyboard-input",
@@ -73,7 +80,7 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
73
80
  }, props, {
74
81
  readOnly: true,
75
82
  value: previewValue
76
- })), (_ref = "".concat(value !== null && value !== void 0 ? value : "")) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("div", {
83
+ })), (_ref = "".concat(value !== null && value !== void 0 ? value : '')) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("div", {
77
84
  className: "virtual-keyboard-input-delete",
78
85
  onClick: _onDelete
79
86
  }, /*#__PURE__*/React.createElement(Delete, {