@pisell/materials 3.3.8 → 3.3.9

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 (295) 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 +3 -3
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +28 -24
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +29 -25
  11. package/dist/umd/materials.min.css +1 -0
  12. package/dist/umd/materials.min.js +1 -0
  13. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  14. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  15. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  16. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  17. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  18. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  19. package/es/components/DragSortList/index.js +6 -6
  20. package/es/components/auto-complete-number/index.d.ts +0 -1
  21. package/es/components/badge/index.d.ts +0 -1
  22. package/es/components/batch-editor/fields/index.d.ts +0 -1
  23. package/es/components/calendar/index.d.ts +0 -1
  24. package/es/components/cardPro/index.d.ts +0 -1
  25. package/es/components/checkbox/index.d.ts +0 -1
  26. package/es/components/classicLayout/index.d.ts +0 -1
  27. package/es/components/classicLayout/index.js +5 -4
  28. package/es/components/colorPicker/index.d.ts +0 -1
  29. package/es/components/config-provider/index.d.ts +0 -1
  30. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  32. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  34. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  35. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  36. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  37. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  38. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  39. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  40. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  41. package/es/components/dataSourceComponents/fields/index.d.ts +18 -18
  42. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  43. package/es/components/dropdown/index.d.ts +0 -1
  44. package/es/components/filter/components/items/index.d.ts +0 -1
  45. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  46. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  47. package/es/components/filter/components/items/text/index.d.ts +0 -1
  48. package/es/components/icon/index.js +5 -5
  49. package/es/components/list/index.js +6 -6
  50. package/es/components/pisellCard/index.d.ts +0 -1
  51. package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  52. package/es/components/pisellDatePicker/index.d.ts +0 -1
  53. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  54. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  55. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  56. package/es/components/pisellTooltip/index.d.ts +0 -1
  57. package/es/components/pisellUpload/index.d.ts +0 -1
  58. package/es/components/productCard/components/Action/index.d.ts +0 -1
  59. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  60. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  61. package/es/components/productCard/components/Header/EditButton/index.js +22 -0
  62. package/es/components/productCard/components/Header/EditButton/index.less +26 -0
  63. package/es/components/productCard/components/Header/index.js +12 -3
  64. package/es/components/productCard/components/Header/index.less +5 -1
  65. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  66. package/es/components/productCard/index.js +8 -1
  67. package/es/components/productCard/locales.js +3 -0
  68. package/es/components/productCard/status.js +1 -0
  69. package/es/components/qrcode/index.js +1 -1
  70. package/es/components/radio/index.d.ts +0 -1
  71. package/es/components/segmented/index.d.ts +0 -1
  72. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  73. package/es/components/select-time/index.d.ts +0 -1
  74. package/es/components/skeleton/index.d.ts +0 -1
  75. package/es/components/slider/index.d.ts +0 -1
  76. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  77. package/es/components/sort/components/InlineMenu/index.js +1 -1
  78. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  79. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  80. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  81. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  82. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  83. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  84. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  85. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  86. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  87. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
  88. package/es/components/table/Header/Buttons/index.js +5 -5
  89. package/es/components/table/Summary/index.d.ts +0 -1
  90. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  91. package/es/components/table/Table/SelectField/index.js +4 -4
  92. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  94. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  96. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  97. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  98. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  100. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  101. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  102. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  103. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  104. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  105. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  106. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  107. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  108. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  109. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  110. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  111. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  112. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  113. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  114. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  115. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  116. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  117. package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
  118. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  119. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  120. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  121. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  122. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  123. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  124. package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
  125. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  126. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  127. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  128. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  129. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  130. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  131. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  132. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  133. package/es/components/table/hooks/useMergeColumnSetting.js +2 -1
  134. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  135. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  136. package/es/components/time-picker/index.d.ts +0 -1
  137. package/es/components/translation/index.js +10 -10
  138. package/es/components/translation/utils.js +5 -5
  139. package/es/components/upload/index.d.ts +0 -1
  140. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  141. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  142. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -1
  143. package/es/components/walletCard/Guest/index.d.ts +0 -1
  144. package/es/hooks/useResponsive.js +2 -2
  145. package/es/utils/hoc.js +1 -1
  146. package/es/utils/miniRedux.js +9 -8
  147. package/es/utils/platform.d.ts +1 -1
  148. package/lib/components/auto-complete-number/index.d.ts +0 -1
  149. package/lib/components/badge/index.d.ts +0 -1
  150. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  151. package/lib/components/calendar/index.d.ts +0 -1
  152. package/lib/components/cardPro/index.d.ts +0 -1
  153. package/lib/components/checkbox/index.d.ts +0 -1
  154. package/lib/components/classicLayout/index.d.ts +0 -1
  155. package/lib/components/colorPicker/index.d.ts +0 -1
  156. package/lib/components/config-provider/index.d.ts +0 -1
  157. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  158. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  159. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  160. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  161. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  162. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  163. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  164. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  165. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  166. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  167. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  168. package/lib/components/dataSourceComponents/fields/index.d.ts +18 -18
  169. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  170. package/lib/components/dropdown/index.d.ts +0 -1
  171. package/lib/components/filter/components/items/index.d.ts +0 -1
  172. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  173. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  174. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  175. package/lib/components/lowCodePage/index.js +2 -1
  176. package/lib/components/pisellCard/index.d.ts +0 -1
  177. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  178. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  179. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  180. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  181. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  182. package/lib/components/pisellTooltip/index.d.ts +0 -1
  183. package/lib/components/pisellUpload/index.d.ts +0 -1
  184. package/lib/components/productCard/components/Action/index.d.ts +0 -1
  185. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  186. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  187. package/lib/components/productCard/components/Header/EditButton/index.js +62 -0
  188. package/lib/components/productCard/components/Header/EditButton/index.less +26 -0
  189. package/lib/components/productCard/components/Header/index.js +22 -2
  190. package/lib/components/productCard/components/Header/index.less +5 -1
  191. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  192. package/lib/components/productCard/index.js +4 -0
  193. package/lib/components/productCard/locales.js +3 -0
  194. package/lib/components/productCard/status.js +1 -0
  195. package/lib/components/radio/index.d.ts +0 -1
  196. package/lib/components/segmented/index.d.ts +0 -1
  197. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  198. package/lib/components/select-time/index.d.ts +0 -1
  199. package/lib/components/skeleton/index.d.ts +0 -1
  200. package/lib/components/slider/index.d.ts +0 -1
  201. package/lib/components/sort/components/InlineMenu/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/components/ExportFile/index.d.ts +0 -1
  204. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  205. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  206. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  207. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  208. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  209. package/lib/components/table/Summary/index.d.ts +0 -1
  210. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  211. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  212. package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
  213. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  214. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  215. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  216. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  217. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  218. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  219. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  220. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  221. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  222. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  223. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  224. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  225. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  226. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  227. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  228. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  229. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  230. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  231. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
  232. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  233. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  234. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  235. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  236. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  237. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  238. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  239. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  240. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  241. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  242. package/lib/components/table/Table/fields/utils/index.js +2 -1
  243. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  244. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  245. package/lib/components/time-picker/index.d.ts +0 -1
  246. package/lib/components/upload/index.d.ts +0 -1
  247. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  248. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  249. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -1
  250. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  251. package/lib/hooks/useResponsive.js +6 -3
  252. package/lib/utils/platform.d.ts +1 -1
  253. package/package.json +1 -1
  254. package/es/components/pisell-config-provider/index.d.ts +0 -12
  255. package/es/components/pisellAvatar/index.d.ts +0 -19
  256. package/es/components/pisellCheckboxGroup/index.d.ts +0 -36
  257. package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  258. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
  259. package/es/components/pisellInformationEntry/index.d.ts +0 -33
  260. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  261. package/es/components/productCard/components/Header/index.d.ts +0 -4
  262. package/es/components/productCard/components/MultiDay/index.d.ts +0 -4
  263. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
  264. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -10
  265. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  266. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  267. package/es/components/productCard/components/Time/index.d.ts +0 -4
  268. package/es/components/productCard/locales.d.ts +0 -57
  269. package/es/components/productCard/status.d.ts +0 -32
  270. package/es/components/productCard/types.d.ts +0 -83
  271. package/es/components/productCard/utils.d.ts +0 -31
  272. package/es/locales/en-US.d.ts +0 -273
  273. package/es/locales/zh-CN.d.ts +0 -268
  274. package/es/locales/zh-TW.d.ts +0 -268
  275. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  276. package/lib/components/pisellAvatar/index.d.ts +0 -19
  277. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -36
  278. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  279. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
  280. package/lib/components/pisellInformationEntry/index.d.ts +0 -33
  281. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  282. package/lib/components/productCard/components/Header/index.d.ts +0 -4
  283. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -4
  284. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
  285. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -10
  286. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  287. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  288. package/lib/components/productCard/components/Time/index.d.ts +0 -4
  289. package/lib/components/productCard/locales.d.ts +0 -57
  290. package/lib/components/productCard/status.d.ts +0 -32
  291. package/lib/components/productCard/types.d.ts +0 -83
  292. package/lib/components/productCard/utils.d.ts +0 -31
  293. package/lib/locales/en-US.d.ts +0 -273
  294. package/lib/locales/zh-CN.d.ts +0 -268
  295. package/lib/locales/zh-TW.d.ts +0 -268
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -43,15 +43,19 @@ function filterUtil_default({
43
43
  key,
44
44
  item
45
45
  }) {
46
- if (!value) return true;
47
- if ((value == null ? void 0 : value.length) !== 2) return true;
46
+ if (!value)
47
+ return true;
48
+ if ((value == null ? void 0 : value.length) !== 2)
49
+ return true;
48
50
  const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
49
51
  if (valueDayjsObj.some((item2) => !item2.isValid())) {
50
52
  return true;
51
53
  }
52
54
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
53
- if ((0, import_utils.isUndefined)(dataValue)) return false;
55
+ if ((0, import_utils.isUndefined)(dataValue))
56
+ return false;
54
57
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
55
- if (!dataDayjsObj.isValid()) return false;
58
+ if (!dataDayjsObj.isValid())
59
+ return false;
56
60
  return isDateInRange(dataDayjsObj, valueDayjsObj);
57
61
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -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,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -25,7 +25,8 @@ module.exports = __toCommonJS(utils_exports);
25
25
  var import_utils = require("@pisell/utils");
26
26
  var getValueByKeys = (obj, keys) => {
27
27
  var _a;
28
- if (!keys) return keys;
28
+ if (!keys)
29
+ return keys;
29
30
  if ((0, import_utils.isString)(keys)) {
30
31
  keys = [keys];
31
32
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const summary: (props: any) => JSX.Element;
3
2
  export default summary;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SortIconProps {
3
2
  sortOrder: null | "ascend" | "descend";
4
3
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TimePicker: (props: any) => JSX.Element;
3
2
  export default TimePicker;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Upload: (props: any) => JSX.Element;
3
2
  export default Upload;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./Presets.less";
3
2
  export declare type PresetsItem = {
4
3
  label: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const formatStringToTime: (value: string) => {
3
2
  valueArray: string[];
4
3
  valueString: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface VirtualKeyInputProps extends InputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Guest: (props: any) => JSX.Element;
4
3
  export default Guest;
@@ -35,7 +35,8 @@ var responsiveConfig = {
35
35
  function handleResize() {
36
36
  const oldInfo = info;
37
37
  calculate();
38
- if (oldInfo === info) return;
38
+ if (oldInfo === info)
39
+ return;
39
40
  for (const subscriber of subscribers) {
40
41
  subscriber();
41
42
  }
@@ -57,7 +58,8 @@ function calculate() {
57
58
  }
58
59
  function configResponsive(config) {
59
60
  responsiveConfig = config;
60
- if (info) calculate();
61
+ if (info)
62
+ calculate();
61
63
  }
62
64
  function useResponsive() {
63
65
  if (import_utils.isBrowser && !listening) {
@@ -68,7 +70,8 @@ function useResponsive() {
68
70
  }
69
71
  const [state, setState] = (0, import_react.useState)(info);
70
72
  (0, import_react.useEffect)(() => {
71
- if (!import_utils.isBrowser) return;
73
+ if (!import_utils.isBrowser)
74
+ return;
72
75
  if (!listening) {
73
76
  window.addEventListener("resize", handleResize);
74
77
  }
@@ -1 +1 @@
1
- export declare const isMobile: () => any;
1
+ export declare const isMobile: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "3.3.8",
3
+ "version": "3.3.9",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from './context';
3
- interface PisellConfigProviderType {
4
- platform?: PisellContextType['platform'];
5
- children: React.ReactNode;
6
- /** 货币符号 */
7
- symbol?: string;
8
- /** 当前语言环境 */
9
- locale?: string;
10
- }
11
- declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
- export default PisellConfigProvider;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { AvatarProps } from 'antd';
3
- import './index.less';
4
- export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
- export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
6
- shape?: 'circle' | 'square';
7
- size?: AvatarSize;
8
- src?: string;
9
- alt?: string;
10
- icon?: React.ReactNode;
11
- children?: React.ReactNode;
12
- className?: string;
13
- style?: React.CSSProperties;
14
- useTextAvatar?: boolean;
15
- borderRadius?: number;
16
- onError?: () => boolean;
17
- }
18
- declare const PisellAvatar: React.FC<PisellAvatarProps>;
19
- export default PisellAvatar;
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../pisell-config-provider/context';
3
- import './index.less';
4
- export interface PisellCheckboxGroupOption {
5
- label: string;
6
- value: string;
7
- disabled?: boolean;
8
- [key: string]: any;
9
- }
10
- declare type PisellCheckboxGroupValue = string | string[] | any;
11
- export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
- platform?: PisellContextType['platform'];
13
- direction?: 'horizontal' | 'vertical';
14
- fullWidth?: boolean;
15
- gap?: number;
16
- padding?: number;
17
- options: PisellCheckboxGroupOption[];
18
- onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
- value?: PisellCheckboxGroupValue;
20
- renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
- rowKey?: string;
22
- mode?: 'multiple' | 'single';
23
- iconPosition?: 'left' | 'right' | 'hide';
24
- optionClassName?: string;
25
- optionActiveClassName?: string;
26
- }
27
- /**
28
- * @title: PisellCheckboxGroup
29
- * @description: 选中组件
30
- * @param {PisellCheckboxGroupProps} props
31
- * @return {*}
32
- * @Author: zhiwei.Wang
33
- * @Date: 2024-08-16 10:34
34
- */
35
- declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
36
- export default PisellCheckboxGroup;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellCustomCheckboxGroupProps {
4
- dataSource?: any[];
5
- disabled?: boolean;
6
- allowAdd?: boolean;
7
- isMultiple?: boolean;
8
- id?: string | string[];
9
- onClick?: (value: any) => void;
10
- onAdd?: () => void;
11
- renderAddItem?: (item: any) => React.ReactNode;
12
- [key: string]: any;
13
- className?: string;
14
- }
15
- declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
16
- export default PisellCustomCheckboxGroup;
@@ -1,4 +0,0 @@
1
- export declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
- activeNativeScanner: () => void;
3
- isTerminal: any;
4
- };
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../pisell-config-provider/context';
3
- import './index.less';
4
- export declare type EntryModeType = {
5
- /**
6
- * 录入模式名称
7
- * scanCode: 扫码录入
8
- * input: 手动录入
9
- * scanner: 扫码枪录入
10
- * nfc: NFC录入
11
- */
12
- type: 'scanCode' | 'input' | 'scanner' | 'nfc';
13
- /**
14
- * 录入模式文案 没有使用默认文案
15
- */
16
- name?: string;
17
- };
18
- export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
19
- /** 平台 */
20
- platform?: PisellContextType['platform'];
21
- /** 录入模式 */
22
- entryModes: EntryModeType[];
23
- /** 标题文案 */
24
- title?: React.ReactNode;
25
- /** 搜索框描述文案 */
26
- searchDescribe?: React.ReactNode;
27
- /** 录入信息值改变 */
28
- onChange?: (val: string) => void;
29
- /** 录入类型切换时候触发的 */
30
- onChangeType?: (val: null | EntryModeType['type']) => void;
31
- }
32
- declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
33
- export default PisellInformationEntry;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../../../pisell-config-provider/context';
3
- export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
- /** 平台 */
5
- platform?: PisellContextType['platform'];
6
- /** 当前数值 */
7
- value?: number | string;
8
- /** 小数点后位数 默认是小数点后2位 */
9
- precision?: number;
10
- /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
- showCurrencySymbol?: boolean;
12
- /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
- useThousandsSeparator?: boolean;
14
- /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
- hideDecimalForWholeNumbers?: boolean;
16
- /** 货币符号 */
17
- symbol?: string;
18
- }
19
- declare const Amount: (props: AmountProps) => JSX.Element;
20
- export default Amount;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Header: (props: any) => JSX.Element;
4
- export default Header;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
- export default MultiDay;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
- style?: any;
5
- status: string;
6
- onLike?: any;
7
- className?: string | undefined;
8
- isShowChangeResource?: boolean | undefined;
9
- }) => JSX.Element;
10
- export default Like;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, }: any) => JSX.Element;
3
- export default SelectHolder;
@@ -1,18 +0,0 @@
1
- import './index.less';
2
- interface ResourceItem {
3
- id: string | number;
4
- label: string;
5
- isError?: boolean;
6
- [key: string]: any;
7
- }
8
- interface SelectResourceProps {
9
- lists: ResourceItem[];
10
- value: any;
11
- onChange: (val: any) => void;
12
- resourceMode?: 'multiple' | 'tags' | undefined;
13
- maxLength?: number;
14
- isParallelResource?: boolean;
15
- [key: string]: any;
16
- }
17
- declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
- export default SelectResource;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
4
- export default Time;
@@ -1,57 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.product.card.day': (val: number) => string;
4
- 'pisell2.product.card.day.event': (val: number) => string;
5
- 'pisell2.product.card.minute': (val: number) => string;
6
- 'pisell2.product.card.discount.reason': string;
7
- 'pisell2.product.card.discount.note': string;
8
- 'pisell2.product.card.discount.add.note': string;
9
- 'pisell2.product.card.discount.edit.note': string;
10
- 'pisell2.product.card.confirm': string;
11
- 'pisell2.product.card.cancel': string;
12
- 'pisell2.product.card.note.pla': string;
13
- 'pisell2.product.card.items.package': string;
14
- 'pisell2.product.card.view-all': string;
15
- 'pisell2.product.card.view-less': string;
16
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
17
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
18
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
19
- };
20
- 'zh-CN': {
21
- 'pisell2.product.card.day': (val: number) => string;
22
- 'pisell2.product.card.day.event': (val: number) => string;
23
- 'pisell2.product.card.minute': (val: number) => string;
24
- 'pisell2.product.card.discount.reason': string;
25
- 'pisell2.product.card.discount.note': string;
26
- 'pisell2.product.card.discount.add.note': string;
27
- 'pisell2.product.card.discount.edit.note': string;
28
- 'pisell2.product.card.confirm': string;
29
- 'pisell2.product.card.cancel': string;
30
- 'pisell2.product.card.note.pla': string;
31
- 'pisell2.product.card.items.package': string;
32
- 'pisell2.product.card.view-all': string;
33
- 'pisell2.product.card.view-less': string;
34
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
35
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
36
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
37
- };
38
- 'zh-HK': {
39
- 'pisell2.product.card.day': (val: number) => string;
40
- 'pisell2.product.card.day.event': (val: number) => string;
41
- 'pisell2.product.card.minute': (val: number) => string;
42
- 'pisell2.product.card.discount.reason': string;
43
- 'pisell2.product.card.discount.note': string;
44
- 'pisell2.product.card.discount.add.note': string;
45
- 'pisell2.product.card.discount.edit.note': string;
46
- 'pisell2.product.card.confirm': string;
47
- 'pisell2.product.card.cancel': string;
48
- 'pisell2.product.card.note.pla': string;
49
- 'pisell2.product.card.items.package': string;
50
- 'pisell2.product.card.view-all': string;
51
- 'pisell2.product.card.view-less': string;
52
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
53
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
54
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
55
- };
56
- };
57
- export default _default;
@@ -1,32 +0,0 @@
1
- import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
- /**
3
- * @title: 套餐数据
4
- * @description:
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2025-01-02 23:21
8
- */
9
- export declare const defaultBundle: bundleType;
10
- /**
11
- * @description: 单规格
12
- * @return {*}
13
- * @Author: WangHan
14
- * @Date: 2025-01-02 23:00
15
- */
16
- export declare const defaultOption: optionType;
17
- /**
18
- * @title: 商品商品类型
19
- * @description:
20
- * @return {*}
21
- * @Author: WangHan
22
- * @Date: 2025-01-02 22:48
23
- */
24
- export declare const defaultProduct: productType;
25
- /**
26
- * @title: 默认数据
27
- * @description:
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2024-12-12 16:49
31
- */
32
- export declare const defaultValue: ProductCardTypes;
@@ -1,83 +0,0 @@
1
- export declare type bundleType = {
2
- id: number;
3
- name: string;
4
- num: number;
5
- price: number;
6
- total: number;
7
- origin_total?: number;
8
- price_type?: string;
9
- options?: optionType[];
10
- };
11
- /**
12
- * @description:
13
- * @return {*}
14
- * @Author: WangHan
15
- * @Date: 2025-01-02 23:00
16
- */
17
- export declare type optionType = {
18
- id: number;
19
- name: string;
20
- num: number;
21
- price: number;
22
- total: number;
23
- origin_total?: number;
24
- };
25
- /**
26
- * @title: 商品商品类型
27
- * @description:
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2025-01-02 22:48
31
- */
32
- export declare type productType = {
33
- _id: string | number;
34
- id: number;
35
- name: string;
36
- price: number;
37
- total: number;
38
- num: number;
39
- origin_total?: number;
40
- image?: string;
41
- isShowNote?: boolean;
42
- note?: string;
43
- like_status?: string;
44
- bundle?: bundleType[];
45
- options?: optionType[];
46
- isShowAction?: boolean;
47
- actionText?: string;
48
- errorMessage?: string;
49
- product_option_string?: string;
50
- discount_reason?: string;
51
- relation_products?: any[];
52
- resource_id?: string | number;
53
- relation_form_name?: string;
54
- holder_title?: string;
55
- start_date?: string;
56
- end_date?: string;
57
- is_show_duration?: boolean;
58
- is_show_week?: boolean;
59
- };
60
- /**
61
- * 排序总配置
62
- */
63
- export declare type ProductCardTypes = {
64
- dataSource: productType;
65
- isShowImage?: boolean;
66
- isShowHolder?: boolean;
67
- isShowNote?: boolean;
68
- isShowPackageNote?: boolean;
69
- isShowDelete?: boolean;
70
- disabledEdit?: boolean;
71
- locale?: string;
72
- symbol?: string;
73
- isShowChangeHolder?: boolean;
74
- isShowChangeResource?: boolean;
75
- isShowChangeDate?: boolean;
76
- onAction?: (val: any) => void;
77
- onDelete?: (val: any) => void;
78
- onNote?: (val: any) => void;
79
- onLike?: (val: any) => void;
80
- onCard?: (val: any) => void;
81
- onChangeResource?: (val: any) => void;
82
- [key: string]: any;
83
- };
@@ -1,31 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import 'dayjs/locale/en';
3
- import 'dayjs/locale/zh-tw';
4
- /**
5
- * @title: 是否英文
6
- * @description:
7
- * @param {any} item
8
- * @return {*}
9
- * @Author: WangHan
10
- * @Date: 2024-12-28 22:49
11
- */
12
- export declare const isEn: (item: any) => boolean;
13
- /**
14
- * @title: 跨日预约时间
15
- * @description:
16
- * @param {any} item
17
- * @return {*}
18
- * @Author: WangHan
19
- * @Date: 2024-12-28 22:50
20
- */
21
- export declare const formatMultiDayDate: (item: any) => string;
22
- /**
23
- * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
24
- * @description:
25
- * @param {any} item
26
- * @param {any} currentDate
27
- * @return {*}
28
- * @Author: zhiwei.Wang
29
- * @Date: 2024-04-26 14:04
30
- */
31
- export declare const getServiceTime: (item: any, currentDate: any) => string;