@pisell/materials 1.0.1054 → 1.0.1056

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 (478) 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 +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +4 -4
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +4 -4
  9. package/es/components/dataSourceComponents/dataSourceSubForm/index.js +18 -5
  10. package/es/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +38 -32
  11. package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +58 -26
  12. package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
  13. package/es/components/dataSourceComponents/fields/Tabs/Tabs.js +1 -1
  14. package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +2 -1
  15. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +6 -2
  16. package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +16 -3
  17. package/lib/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +38 -32
  18. package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +49 -21
  19. package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
  20. package/lib/components/dataSourceComponents/fields/Tabs/Tabs.js +1 -1
  21. package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +2 -1
  22. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +7 -1
  23. package/lowcode/data-source-form/utils.ts +3 -0
  24. package/package.json +1 -1
  25. package/es/components/Pagination/index.d.ts +0 -12
  26. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +0 -163
  27. package/es/components/PisellFields/index.d.ts +0 -36
  28. package/es/components/PisellLayouts/index.d.ts +0 -32
  29. package/es/components/PisellMetrics/index.d.ts +0 -23
  30. package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
  31. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
  32. package/es/components/appVersionControl/index.d.ts +0 -4
  33. package/es/components/cardMetricItem/index.d.ts +0 -15
  34. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  35. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -178
  36. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  37. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -8
  38. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
  39. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
  40. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
  41. package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -7
  42. package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -11
  43. package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
  44. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  45. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
  46. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
  47. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  48. package/es/components/filter/components/Dropdown/index.d.ts +0 -9
  49. package/es/components/filter/components/FilterButton/index.d.ts +0 -4
  50. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +0 -21
  51. package/es/components/filter/components/FilterItem/index.d.ts +0 -5
  52. package/es/components/page/index.d.ts +0 -8
  53. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  54. package/es/components/pisellBatchActionBar/PisellBatchActionBar.d.ts +0 -31
  55. package/es/components/pisellCardList/index.d.ts +0 -107
  56. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  57. package/es/components/pisellCurrency/PisellCurrency.d.ts +0 -39
  58. package/es/components/pisellCurrency/PisellCurrency.stories.d.ts +0 -56
  59. package/es/components/pisellCurrency/components/DisabledView.d.ts +0 -11
  60. package/es/components/pisellCurrency/components/EditView.d.ts +0 -18
  61. package/es/components/pisellCurrency/components/ReadOnlyView.d.ts +0 -17
  62. package/es/components/pisellCurrency/components/index.d.ts +0 -6
  63. package/es/components/pisellCurrency/index.d.ts +0 -7
  64. package/es/components/pisellCurrency/types.d.ts +0 -56
  65. package/es/components/pisellCurrency/utils/currencyFormatter.d.ts +0 -31
  66. package/es/components/pisellCurrency/utils/index.d.ts +0 -5
  67. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +0 -28
  68. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +0 -28
  69. package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +0 -9
  70. package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +0 -14
  71. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +0 -35
  72. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +0 -195
  73. package/es/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +0 -48
  74. package/es/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +0 -42
  75. package/es/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +0 -57
  76. package/es/components/pisellDateTimeDisplay/components/index.d.ts +0 -6
  77. package/es/components/pisellDateTimeDisplay/hooks/index.d.ts +0 -2
  78. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +0 -46
  79. package/es/components/pisellDateTimeDisplay/index.d.ts +0 -3
  80. package/es/components/pisellDateTimeDisplay/utils/formatDate.d.ts +0 -21
  81. package/es/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +0 -17
  82. package/es/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +0 -30
  83. package/es/components/pisellDateTimeDisplay/utils/index.d.ts +0 -7
  84. package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +0 -22
  85. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
  86. package/es/components/pisellEmail/PisellEmail.d.ts +0 -37
  87. package/es/components/pisellEmail/PisellEmail.stories.d.ts +0 -116
  88. package/es/components/pisellEmail/components/DisabledView.d.ts +0 -14
  89. package/es/components/pisellEmail/components/EditView.d.ts +0 -15
  90. package/es/components/pisellEmail/components/ReadOnlyView.d.ts +0 -15
  91. package/es/components/pisellEmail/index.d.ts +0 -7
  92. package/es/components/pisellEmail/types.d.ts +0 -176
  93. package/es/components/pisellEmail/utils/emailHelper.d.ts +0 -66
  94. package/es/components/pisellEmail/utils/emailValidator.d.ts +0 -45
  95. package/es/components/pisellEmail/utils/index.d.ts +0 -6
  96. package/es/components/pisellFilter/index.d.ts +0 -3
  97. package/es/components/pisellFind/PisellFind.stories.d.ts +0 -45
  98. package/es/components/pisellFind/index.d.ts +0 -40
  99. package/es/components/pisellGoodPassCard/index.d.ts +0 -50
  100. package/es/components/pisellLongText/PisellLongText.d.ts +0 -39
  101. package/es/components/pisellLongText/PisellLongText.stories.d.ts +0 -123
  102. package/es/components/pisellLongText/components/DisabledView.d.ts +0 -16
  103. package/es/components/pisellLongText/components/EditView.d.ts +0 -19
  104. package/es/components/pisellLongText/components/ReadOnlyView.d.ts +0 -18
  105. package/es/components/pisellLongText/index.d.ts +0 -7
  106. package/es/components/pisellLongText/types.d.ts +0 -147
  107. package/es/components/pisellMetricCard/PisellMetricCard.d.ts +0 -35
  108. package/es/components/pisellMetricCard/PisellMetricCard.stories.d.ts +0 -17
  109. package/es/components/pisellMetricCard/components/MetricComparison.d.ts +0 -14
  110. package/es/components/pisellMetricCard/components/index.d.ts +0 -7
  111. package/es/components/pisellMetricCard/index.d.ts +0 -6
  112. package/es/components/pisellMetricCard/utils/formatMetricValue.d.ts +0 -34
  113. package/es/components/pisellMetricCard/utils/index.d.ts +0 -5
  114. package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
  115. package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +0 -70
  116. package/es/components/pisellMultipleSelect/components/DisabledView.d.ts +0 -8
  117. package/es/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
  118. package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +0 -8
  119. package/es/components/pisellMultipleSelect/index.d.ts +0 -7
  120. package/es/components/pisellMultipleSelect/types.d.ts +0 -160
  121. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  122. package/es/components/pisellNumber/PisellNumber.d.ts +0 -42
  123. package/es/components/pisellNumber/PisellNumber.stories.d.ts +0 -66
  124. package/es/components/pisellNumber/components/DisabledView.d.ts +0 -11
  125. package/es/components/pisellNumber/components/EditView.d.ts +0 -18
  126. package/es/components/pisellNumber/components/ReadOnlyView.d.ts +0 -16
  127. package/es/components/pisellNumber/components/index.d.ts +0 -6
  128. package/es/components/pisellNumber/index.d.ts +0 -7
  129. package/es/components/pisellNumber/types.d.ts +0 -168
  130. package/es/components/pisellPercent/PisellPercent.d.ts +0 -38
  131. package/es/components/pisellPercent/PisellPercent.stories.d.ts +0 -52
  132. package/es/components/pisellPercent/components/DisabledView.d.ts +0 -11
  133. package/es/components/pisellPercent/components/EditView.d.ts +0 -17
  134. package/es/components/pisellPercent/components/ReadOnlyView.d.ts +0 -14
  135. package/es/components/pisellPercent/components/index.d.ts +0 -6
  136. package/es/components/pisellPercent/index.d.ts +0 -7
  137. package/es/components/pisellPercent/types.d.ts +0 -68
  138. package/es/components/pisellPercent/utils/index.d.ts +0 -6
  139. package/es/components/pisellPercent/utils/percentFormatter.d.ts +0 -27
  140. package/es/components/pisellPhone/PisellPhone.d.ts +0 -36
  141. package/es/components/pisellPhone/PisellPhone.stories.d.ts +0 -80
  142. package/es/components/pisellPhone/components/DisabledView.d.ts +0 -16
  143. package/es/components/pisellPhone/components/EditView.d.ts +0 -19
  144. package/es/components/pisellPhone/components/ReadOnlyView.d.ts +0 -17
  145. package/es/components/pisellPhone/constants/countryCodes.d.ts +0 -20
  146. package/es/components/pisellPhone/index.d.ts +0 -8
  147. package/es/components/pisellPhone/types.d.ts +0 -209
  148. package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
  149. package/es/components/pisellPhone/utils/index.d.ts +0 -6
  150. package/es/components/pisellPhone/utils/phoneValidator.d.ts +0 -11
  151. package/es/components/pisellRating/PisellRating.d.ts +0 -31
  152. package/es/components/pisellRating/PisellRating.stories.d.ts +0 -53
  153. package/es/components/pisellRating/index.d.ts +0 -7
  154. package/es/components/pisellRating/types.d.ts +0 -124
  155. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
  156. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -81
  157. package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +0 -3
  158. package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +0 -11
  159. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +0 -16
  160. package/es/components/pisellRecordBoard/index.d.ts +0 -35
  161. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +0 -12
  162. package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +0 -13
  163. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  164. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +0 -13
  165. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
  166. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +0 -15
  167. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
  168. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
  169. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
  170. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
  171. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
  172. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +0 -26
  173. package/es/components/pisellRecordBoard/types.d.ts +0 -315
  174. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -41
  175. package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +0 -9
  176. package/es/components/pisellRow/index.d.ts +0 -22
  177. package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
  178. package/es/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +0 -102
  179. package/es/components/pisellSingleLineText/components/DisabledView.d.ts +0 -16
  180. package/es/components/pisellSingleLineText/components/EditView.d.ts +0 -19
  181. package/es/components/pisellSingleLineText/components/ReadOnlyView.d.ts +0 -20
  182. package/es/components/pisellSingleLineText/index.d.ts +0 -7
  183. package/es/components/pisellSingleLineText/types.d.ts +0 -139
  184. package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
  185. package/es/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +0 -66
  186. package/es/components/pisellSingleSelect/components/DisabledView.d.ts +0 -8
  187. package/es/components/pisellSingleSelect/components/EditView.d.ts +0 -8
  188. package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +0 -8
  189. package/es/components/pisellSingleSelect/index.d.ts +0 -7
  190. package/es/components/pisellSingleSelect/types.d.ts +0 -92
  191. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  192. package/es/components/pisellText/components/Editable/index.d.ts +0 -32
  193. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
  194. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +0 -61
  195. package/es/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +0 -20
  196. package/es/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +0 -19
  197. package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -30
  198. package/es/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +0 -18
  199. package/es/components/pisellTimeRangeDisplay/components/index.d.ts +0 -8
  200. package/es/components/pisellTimeRangeDisplay/index.d.ts +0 -3
  201. package/es/components/pisellTimeRangeDisplay/utils/index.d.ts +0 -4
  202. package/es/components/pisellToast/index.d.ts +0 -17
  203. package/es/components/pisellUrl/PisellUrl.d.ts +0 -37
  204. package/es/components/pisellUrl/PisellUrl.stories.d.ts +0 -108
  205. package/es/components/pisellUrl/components/DisabledView.d.ts +0 -14
  206. package/es/components/pisellUrl/components/EditView.d.ts +0 -15
  207. package/es/components/pisellUrl/components/ReadOnlyView.d.ts +0 -15
  208. package/es/components/pisellUrl/index.d.ts +0 -7
  209. package/es/components/pisellUrl/types.d.ts +0 -160
  210. package/es/components/pisellWalletPassCard/index.d.ts +0 -146
  211. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  212. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  213. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  214. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -29
  215. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  216. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  217. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  218. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  219. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  220. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  221. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  222. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
  223. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  224. package/es/components/productCard/components/Header/index.d.ts +0 -3
  225. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  226. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  227. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  228. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  229. package/es/components/productCard/components/Time/index.d.ts +0 -3
  230. package/es/components/productCard/index.d.ts +0 -7
  231. package/es/components/productCard/utils.d.ts +0 -33
  232. package/es/components/sort/index.d.ts +0 -5
  233. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  234. package/es/components/table/BasicTable/index.d.ts +0 -3
  235. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  236. package/es/components/table/Gallery/index.d.ts +0 -5
  237. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
  238. package/es/components/table/Table/index.d.ts +0 -4
  239. package/es/components/table/Table/utils.d.ts +0 -167
  240. package/es/components/table/hooks/useTableSetting.d.ts +0 -21
  241. package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
  242. package/es/components/table/index.d.ts +0 -4
  243. package/es/components/translation/index.d.ts +0 -18
  244. package/es/components/versionModal/index.d.ts +0 -24
  245. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
  246. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  247. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  248. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  249. package/es/components/virtual-keyboard/index.d.ts +0 -25
  250. package/es/components/walletCard/index.d.ts +0 -79
  251. package/es/index.d.ts +0 -243
  252. package/lib/components/Pagination/index.d.ts +0 -12
  253. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +0 -163
  254. package/lib/components/PisellFields/index.d.ts +0 -36
  255. package/lib/components/PisellLayouts/index.d.ts +0 -32
  256. package/lib/components/PisellMetrics/index.d.ts +0 -23
  257. package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
  258. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
  259. package/lib/components/appVersionControl/index.d.ts +0 -4
  260. package/lib/components/cardMetricItem/index.d.ts +0 -15
  261. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  262. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -178
  263. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  264. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -8
  265. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
  266. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
  267. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
  268. package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -7
  269. package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -11
  270. package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
  271. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  272. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
  273. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
  274. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  275. package/lib/components/filter/components/Dropdown/index.d.ts +0 -9
  276. package/lib/components/filter/components/FilterButton/index.d.ts +0 -4
  277. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +0 -21
  278. package/lib/components/filter/components/FilterItem/index.d.ts +0 -5
  279. package/lib/components/page/index.d.ts +0 -8
  280. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  281. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.d.ts +0 -31
  282. package/lib/components/pisellCardList/index.d.ts +0 -107
  283. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  284. package/lib/components/pisellCurrency/PisellCurrency.d.ts +0 -39
  285. package/lib/components/pisellCurrency/PisellCurrency.stories.d.ts +0 -56
  286. package/lib/components/pisellCurrency/components/DisabledView.d.ts +0 -11
  287. package/lib/components/pisellCurrency/components/EditView.d.ts +0 -18
  288. package/lib/components/pisellCurrency/components/ReadOnlyView.d.ts +0 -17
  289. package/lib/components/pisellCurrency/components/index.d.ts +0 -6
  290. package/lib/components/pisellCurrency/index.d.ts +0 -7
  291. package/lib/components/pisellCurrency/types.d.ts +0 -56
  292. package/lib/components/pisellCurrency/utils/currencyFormatter.d.ts +0 -31
  293. package/lib/components/pisellCurrency/utils/index.d.ts +0 -5
  294. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +0 -28
  295. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +0 -28
  296. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +0 -9
  297. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +0 -14
  298. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +0 -35
  299. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +0 -195
  300. package/lib/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +0 -48
  301. package/lib/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +0 -42
  302. package/lib/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +0 -57
  303. package/lib/components/pisellDateTimeDisplay/components/index.d.ts +0 -6
  304. package/lib/components/pisellDateTimeDisplay/hooks/index.d.ts +0 -2
  305. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +0 -46
  306. package/lib/components/pisellDateTimeDisplay/index.d.ts +0 -3
  307. package/lib/components/pisellDateTimeDisplay/utils/formatDate.d.ts +0 -21
  308. package/lib/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +0 -17
  309. package/lib/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +0 -30
  310. package/lib/components/pisellDateTimeDisplay/utils/index.d.ts +0 -7
  311. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +0 -22
  312. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
  313. package/lib/components/pisellEmail/PisellEmail.d.ts +0 -37
  314. package/lib/components/pisellEmail/PisellEmail.stories.d.ts +0 -116
  315. package/lib/components/pisellEmail/components/DisabledView.d.ts +0 -14
  316. package/lib/components/pisellEmail/components/EditView.d.ts +0 -15
  317. package/lib/components/pisellEmail/components/ReadOnlyView.d.ts +0 -15
  318. package/lib/components/pisellEmail/index.d.ts +0 -7
  319. package/lib/components/pisellEmail/types.d.ts +0 -176
  320. package/lib/components/pisellEmail/utils/emailHelper.d.ts +0 -66
  321. package/lib/components/pisellEmail/utils/emailValidator.d.ts +0 -45
  322. package/lib/components/pisellEmail/utils/index.d.ts +0 -6
  323. package/lib/components/pisellFilter/index.d.ts +0 -3
  324. package/lib/components/pisellFind/PisellFind.stories.d.ts +0 -45
  325. package/lib/components/pisellFind/index.d.ts +0 -40
  326. package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
  327. package/lib/components/pisellLongText/PisellLongText.d.ts +0 -39
  328. package/lib/components/pisellLongText/PisellLongText.stories.d.ts +0 -123
  329. package/lib/components/pisellLongText/components/DisabledView.d.ts +0 -16
  330. package/lib/components/pisellLongText/components/EditView.d.ts +0 -19
  331. package/lib/components/pisellLongText/components/ReadOnlyView.d.ts +0 -18
  332. package/lib/components/pisellLongText/index.d.ts +0 -7
  333. package/lib/components/pisellLongText/types.d.ts +0 -147
  334. package/lib/components/pisellMetricCard/PisellMetricCard.d.ts +0 -35
  335. package/lib/components/pisellMetricCard/PisellMetricCard.stories.d.ts +0 -17
  336. package/lib/components/pisellMetricCard/components/MetricComparison.d.ts +0 -14
  337. package/lib/components/pisellMetricCard/components/index.d.ts +0 -7
  338. package/lib/components/pisellMetricCard/index.d.ts +0 -6
  339. package/lib/components/pisellMetricCard/utils/formatMetricValue.d.ts +0 -34
  340. package/lib/components/pisellMetricCard/utils/index.d.ts +0 -5
  341. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
  342. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +0 -70
  343. package/lib/components/pisellMultipleSelect/components/DisabledView.d.ts +0 -8
  344. package/lib/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
  345. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +0 -8
  346. package/lib/components/pisellMultipleSelect/index.d.ts +0 -7
  347. package/lib/components/pisellMultipleSelect/types.d.ts +0 -160
  348. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  349. package/lib/components/pisellNumber/PisellNumber.d.ts +0 -42
  350. package/lib/components/pisellNumber/PisellNumber.stories.d.ts +0 -66
  351. package/lib/components/pisellNumber/components/DisabledView.d.ts +0 -11
  352. package/lib/components/pisellNumber/components/EditView.d.ts +0 -18
  353. package/lib/components/pisellNumber/components/ReadOnlyView.d.ts +0 -16
  354. package/lib/components/pisellNumber/components/index.d.ts +0 -6
  355. package/lib/components/pisellNumber/index.d.ts +0 -7
  356. package/lib/components/pisellNumber/types.d.ts +0 -168
  357. package/lib/components/pisellPercent/PisellPercent.d.ts +0 -38
  358. package/lib/components/pisellPercent/PisellPercent.stories.d.ts +0 -52
  359. package/lib/components/pisellPercent/components/DisabledView.d.ts +0 -11
  360. package/lib/components/pisellPercent/components/EditView.d.ts +0 -17
  361. package/lib/components/pisellPercent/components/ReadOnlyView.d.ts +0 -14
  362. package/lib/components/pisellPercent/components/index.d.ts +0 -6
  363. package/lib/components/pisellPercent/index.d.ts +0 -7
  364. package/lib/components/pisellPercent/types.d.ts +0 -68
  365. package/lib/components/pisellPercent/utils/index.d.ts +0 -6
  366. package/lib/components/pisellPercent/utils/percentFormatter.d.ts +0 -27
  367. package/lib/components/pisellPhone/PisellPhone.d.ts +0 -36
  368. package/lib/components/pisellPhone/PisellPhone.stories.d.ts +0 -80
  369. package/lib/components/pisellPhone/components/DisabledView.d.ts +0 -16
  370. package/lib/components/pisellPhone/components/EditView.d.ts +0 -19
  371. package/lib/components/pisellPhone/components/ReadOnlyView.d.ts +0 -17
  372. package/lib/components/pisellPhone/constants/countryCodes.d.ts +0 -20
  373. package/lib/components/pisellPhone/index.d.ts +0 -8
  374. package/lib/components/pisellPhone/types.d.ts +0 -209
  375. package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
  376. package/lib/components/pisellPhone/utils/index.d.ts +0 -6
  377. package/lib/components/pisellPhone/utils/phoneValidator.d.ts +0 -11
  378. package/lib/components/pisellRating/PisellRating.d.ts +0 -31
  379. package/lib/components/pisellRating/PisellRating.stories.d.ts +0 -53
  380. package/lib/components/pisellRating/index.d.ts +0 -7
  381. package/lib/components/pisellRating/types.d.ts +0 -124
  382. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
  383. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -81
  384. package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +0 -3
  385. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +0 -11
  386. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +0 -16
  387. package/lib/components/pisellRecordBoard/index.d.ts +0 -35
  388. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +0 -12
  389. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +0 -13
  390. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  391. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +0 -13
  392. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
  393. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +0 -15
  394. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
  395. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
  396. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
  397. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
  398. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
  399. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +0 -26
  400. package/lib/components/pisellRecordBoard/types.d.ts +0 -315
  401. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -41
  402. package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +0 -9
  403. package/lib/components/pisellRow/index.d.ts +0 -22
  404. package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
  405. package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +0 -102
  406. package/lib/components/pisellSingleLineText/components/DisabledView.d.ts +0 -16
  407. package/lib/components/pisellSingleLineText/components/EditView.d.ts +0 -19
  408. package/lib/components/pisellSingleLineText/components/ReadOnlyView.d.ts +0 -20
  409. package/lib/components/pisellSingleLineText/index.d.ts +0 -7
  410. package/lib/components/pisellSingleLineText/types.d.ts +0 -139
  411. package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
  412. package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +0 -66
  413. package/lib/components/pisellSingleSelect/components/DisabledView.d.ts +0 -8
  414. package/lib/components/pisellSingleSelect/components/EditView.d.ts +0 -8
  415. package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +0 -8
  416. package/lib/components/pisellSingleSelect/index.d.ts +0 -7
  417. package/lib/components/pisellSingleSelect/types.d.ts +0 -92
  418. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  419. package/lib/components/pisellText/components/Editable/index.d.ts +0 -32
  420. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
  421. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +0 -61
  422. package/lib/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +0 -20
  423. package/lib/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +0 -19
  424. package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -30
  425. package/lib/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +0 -18
  426. package/lib/components/pisellTimeRangeDisplay/components/index.d.ts +0 -8
  427. package/lib/components/pisellTimeRangeDisplay/index.d.ts +0 -3
  428. package/lib/components/pisellTimeRangeDisplay/utils/index.d.ts +0 -4
  429. package/lib/components/pisellToast/index.d.ts +0 -17
  430. package/lib/components/pisellUrl/PisellUrl.d.ts +0 -37
  431. package/lib/components/pisellUrl/PisellUrl.stories.d.ts +0 -108
  432. package/lib/components/pisellUrl/components/DisabledView.d.ts +0 -14
  433. package/lib/components/pisellUrl/components/EditView.d.ts +0 -15
  434. package/lib/components/pisellUrl/components/ReadOnlyView.d.ts +0 -15
  435. package/lib/components/pisellUrl/index.d.ts +0 -7
  436. package/lib/components/pisellUrl/types.d.ts +0 -160
  437. package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
  438. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  439. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  440. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  441. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -29
  442. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  443. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  444. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  445. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  446. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  447. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  448. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  449. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
  450. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  451. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  452. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  453. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  454. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  455. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  456. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  457. package/lib/components/productCard/index.d.ts +0 -7
  458. package/lib/components/productCard/utils.d.ts +0 -33
  459. package/lib/components/sort/index.d.ts +0 -5
  460. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  461. package/lib/components/table/BasicTable/index.d.ts +0 -3
  462. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  463. package/lib/components/table/Gallery/index.d.ts +0 -5
  464. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
  465. package/lib/components/table/Table/index.d.ts +0 -4
  466. package/lib/components/table/Table/utils.d.ts +0 -167
  467. package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
  468. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
  469. package/lib/components/table/index.d.ts +0 -4
  470. package/lib/components/translation/index.d.ts +0 -18
  471. package/lib/components/versionModal/index.d.ts +0 -24
  472. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
  473. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  474. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  475. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  476. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  477. package/lib/components/walletCard/index.d.ts +0 -79
  478. package/lib/index.d.ts +0 -243
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ApplicableProductDetails {
4
- amount: string;
5
- type: string;
6
- resource_id: number;
7
- title: string;
8
- original_amount: string;
9
- }
10
- interface Discount {
11
- id: number;
12
- product_name: string;
13
- encoded: string;
14
- code: string;
15
- tag: string;
16
- expire_time?: string;
17
- product_id: number;
18
- relation_type: string;
19
- par_value: string;
20
- used_par_value: string;
21
- limit_status: string;
22
- limited_relation_product_data: any;
23
- balance: string;
24
- format_title: any;
25
- product: any;
26
- savedAmount: number;
27
- isDisabled: boolean;
28
- isSelected?: boolean;
29
- isAvailable?: boolean;
30
- isUsed?: boolean;
31
- applicableProductIds?: number[];
32
- applicableProductDetails: ApplicableProductDetails[];
33
- appliedProductDetails: any[];
34
- }
35
- export interface PisellGoodPassCardProps {
36
- /**数据源 */
37
- dataSource: Array<Discount>;
38
- /**事件 */
39
- onChange?: (current: {
40
- id: string | number;
41
- isSelected: boolean;
42
- }) => void;
43
- /**样式 */
44
- style: React.CSSProperties;
45
- /**快捷展示排序 */
46
- mixedSort?: (val: Discount[]) => Discount[];
47
- isInModal: boolean;
48
- }
49
- declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
50
- export default index;
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import type { PisellLongTextProps } from './types';
3
- import './PisellLongText.less';
4
- /**
5
- * PisellLongText 长文本/多行文本组件
6
- *
7
- * 多行文本输入/展示组件,支持只读、编辑、禁用三种状态。
8
- * 基于 Ant Design TextArea 组件开发,提供展开/折叠功能和完整的校验框架。
9
- *
10
- * @param props 组件 Props
11
- *
12
- * @example
13
- * // 编辑态
14
- * <PisellLongText
15
- * placeholder="请输入内容"
16
- * rows={3}
17
- * maxLength={500}
18
- * showCount
19
- * />
20
- *
21
- * @example
22
- * // 只读态(展开折叠)
23
- * <PisellLongText
24
- * mode="read"
25
- * value={longText}
26
- * maxLines={3}
27
- * enableExpand
28
- * />
29
- *
30
- * @example
31
- * // 自动高度
32
- * <PisellLongText
33
- * autoSize={{ minRows: 3, maxRows: 10 }}
34
- * placeholder="自动调整高度"
35
- * />
36
- */
37
- export declare const PisellLongText: React.FC<PisellLongTextProps>;
38
- declare const _default: React.NamedExoticComponent<PisellLongTextProps>;
39
- export default _default;
@@ -1,123 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { PisellLongText } from './PisellLongText';
3
- /**
4
- * PisellLongText 是一个多行文本输入/展示组件。
5
- *
6
- * ## 功能特性
7
- * - 支持三种状态:只读、编辑、禁用
8
- * - 展开/折叠功能(只读态)
9
- * - 自动高度调整
10
- * - 完整的校验框架
11
- * - 字数统计
12
- */
13
- declare const meta: Meta<typeof PisellLongText>;
14
- export default meta;
15
- declare type Story = StoryObj<typeof PisellLongText>;
16
- /**
17
- * 基础编辑态示例
18
- */
19
- export declare const Basic: Story;
20
- /**
21
- * 只读态示例 - 短文本
22
- */
23
- export declare const ReadMode: Story;
24
- /**
25
- * 只读态 - 展开/折叠功能(核心)
26
- */
27
- export declare const ReadModeExpandCollapse: Story;
28
- /**
29
- * 只读态 - 自定义展开/收起文案
30
- */
31
- export declare const ReadModeCustomExpandText: Story;
32
- /**
33
- * 只读态 - 禁用展开功能
34
- */
35
- export declare const ReadModeDisableExpand: Story;
36
- /**
37
- * 只读态 - 字数统计
38
- */
39
- export declare const ReadModeWithWordCount: Story;
40
- /**
41
- * 只读态 - 展开 + 字数统计
42
- */
43
- export declare const ReadModeExpandAndWordCount: Story;
44
- /**
45
- * 禁用态示例
46
- */
47
- export declare const Disabled: Story;
48
- /**
49
- * 编辑态 - 默认行数
50
- */
51
- export declare const EditModeCustomRows: Story;
52
- /**
53
- * 编辑态 - 自动高度(boolean)
54
- */
55
- export declare const EditModeAutoSize: Story;
56
- /**
57
- * 编辑态 - 自动高度(范围限定)
58
- */
59
- export declare const EditModeAutoSizeRange: Story;
60
- /**
61
- * 编辑态 - minRows 和 maxRows
62
- */
63
- export declare const EditModeMinMaxRows: Story;
64
- /**
65
- * 编辑态 - 字数统计
66
- */
67
- export declare const EditModeWithCount: Story;
68
- /**
69
- * 编辑态 - 清空按钮
70
- */
71
- export declare const EditModeWithClear: Story;
72
- /**
73
- * 必填校验
74
- */
75
- export declare const Required: Story;
76
- /**
77
- * 长度校验
78
- */
79
- export declare const LengthValidation: Story;
80
- /**
81
- * 自定义校验 - 段落数量限制
82
- */
83
- export declare const CustomValidatorParagraphs: Story;
84
- /**
85
- * 组合校验
86
- */
87
- export declare const CombinedValidation: Story;
88
- /**
89
- * 自动高度 + 字数统计
90
- */
91
- export declare const AutoSizeWithCount: Story;
92
- /**
93
- * 保留换行和空格
94
- */
95
- export declare const PreserveWhitespace: Story;
96
- /**
97
- * 自定义样式(只读态)
98
- */
99
- export declare const CustomStyle: Story;
100
- /**
101
- * 完整功能示例
102
- */
103
- export declare const FullFeatures: Story;
104
- /**
105
- * 所有展开/折叠场景对比
106
- */
107
- export declare const AllExpandScenarios: Story;
108
- /**
109
- * 所有自动高度场景对比
110
- */
111
- export declare const AllAutoSizeScenarios: Story;
112
- /**
113
- * 校验场景对比
114
- */
115
- export declare const ValidationScenarios: Story;
116
- /**
117
- * 边界情况测试
118
- */
119
- export declare const EdgeCases: Story;
120
- /**
121
- * 完整功能演示
122
- */
123
- export declare const CompleteExample: Story;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { PisellLongTextProps } from '../types';
3
- /**
4
- * PisellLongText 禁用态视图组件
5
- *
6
- * 负责渲染禁用态视图,基于原始 mode 渲染对应的视图,并添加禁用样式
7
- *
8
- * 设计规则:
9
- * - 基于编辑态或只读态的视觉
10
- * - 透明度 40%
11
- * - 禁止所有交互行为
12
- *
13
- * @param props 组件 Props
14
- */
15
- declare const DisabledView: React.FC<PisellLongTextProps>;
16
- export default DisabledView;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { PisellLongTextProps } from '../types';
3
- /**
4
- * PisellLongText 编辑态视图组件
5
- *
6
- * 负责渲染编辑态的多行输入框,基于 Ant Design TextArea 组件
7
- *
8
- * 功能:
9
- * - 多行文本输入
10
- * - 自动高度调整(autoSize)
11
- * - 实时或失焦校验
12
- * - 错误提示展示
13
- * - 字数统计
14
- * - 清空按钮
15
- *
16
- * @param props 组件 Props
17
- */
18
- declare const EditView: React.FC<PisellLongTextProps>;
19
- export default EditView;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { PisellLongTextProps } from '../types';
3
- /**
4
- * PisellLongText 只读态视图组件
5
- *
6
- * 负责渲染只读态的多行文本展示,支持展开/折叠功能
7
- *
8
- * 功能:
9
- * - 多行文本展示
10
- * - 根据 maxLines 截断内容
11
- * - 展开/收起按钮(超出行数时显示)
12
- * - 字数统计(可选)
13
- * - 保留换行和空格(whiteSpace: 'pre-wrap')
14
- *
15
- * @param props 组件 Props
16
- */
17
- declare const ReadOnlyView: React.FC<PisellLongTextProps>;
18
- export default ReadOnlyView;
@@ -1,7 +0,0 @@
1
- /**
2
- * PisellLongText 组件导出
3
- */
4
- import PisellLongText from './PisellLongText';
5
- export { PisellLongText };
6
- export type { PisellLongTextProps } from './types';
7
- export type { DisplayState, ValidationResult, TextInputState } from './types';
@@ -1,147 +0,0 @@
1
- import type { CSSProperties, KeyboardEvent } from 'react';
2
- import type { BaseTextInputProps } from '@pisell/utils';
3
- /**
4
- * PisellLongText 组件 Props 类型定义
5
- *
6
- * 继承 BaseTextInputProps,添加长文本特有的配置
7
- */
8
- export interface PisellLongTextProps extends BaseTextInputProps {
9
- /**
10
- * 状态模式
11
- * @default 'edit'
12
- */
13
- mode?: 'read' | 'edit';
14
- /**
15
- * 是否禁用
16
- * @default false
17
- */
18
- disabled?: boolean;
19
- /**
20
- * 编辑态默认显示行数
21
- * @default 3
22
- */
23
- rows?: number;
24
- /**
25
- * 编辑态最小行数
26
- */
27
- minRows?: number;
28
- /**
29
- * 编辑态最大行数
30
- */
31
- maxRows?: number;
32
- /**
33
- * 自动高度调整
34
- * @default false
35
- * @example
36
- * autoSize={true} // 自动调整
37
- * autoSize={{ minRows: 3, maxRows: 10 }} // 指定范围
38
- */
39
- autoSize?: boolean | {
40
- minRows?: number;
41
- maxRows?: number;
42
- };
43
- /**
44
- * 只读态最大显示行数(超出显示展开按钮)
45
- * @default 3
46
- */
47
- maxLines?: number;
48
- /**
49
- * 是否启用展开功能(只读态)
50
- * @default true
51
- */
52
- enableExpand?: boolean;
53
- /**
54
- * 展开按钮文案
55
- * @default '展开'
56
- */
57
- expandText?: string;
58
- /**
59
- * 收起按钮文案
60
- * @default '收起'
61
- */
62
- collapseText?: string;
63
- /**
64
- * 展开按钮位置
65
- * @default 'bottom'
66
- */
67
- expandButtonPosition?: 'bottom' | 'inline';
68
- /**
69
- * 只读态是否显示字数统计
70
- * @default false
71
- */
72
- showWordCount?: boolean;
73
- /**
74
- * 字号
75
- * @example '14px' 或 14
76
- * @default 16
77
- */
78
- fontSize?: string | number;
79
- /**
80
- * 字重
81
- * @example 'bold' 或 600
82
- * @default 500
83
- */
84
- fontWeight?: string | number;
85
- /**
86
- * 文本颜色
87
- * @example '#000000'
88
- * @default '#101828'
89
- */
90
- color?: string;
91
- /**
92
- * 行高
93
- * @example '1.5' 或 1.5
94
- * @default 1.5
95
- */
96
- lineHeight?: string | number;
97
- /**
98
- * 占位文本
99
- */
100
- placeholder?: string;
101
- /**
102
- * 最大长度(字符数)
103
- */
104
- maxLength?: number;
105
- /**
106
- * 是否显示字数统计(编辑态)
107
- * @default false
108
- */
109
- showCount?: boolean;
110
- /**
111
- * 是否显示清空按钮
112
- * @default false
113
- */
114
- allowClear?: boolean;
115
- /**
116
- * 是否自动聚焦
117
- * @default false
118
- */
119
- autoFocus?: boolean;
120
- /**
121
- * 回车键回调(传递事件对象,支持判断 Ctrl+Enter)
122
- * @param e 键盘事件对象
123
- */
124
- onPressEnter?: (e: KeyboardEvent<HTMLTextAreaElement>) => void;
125
- /**
126
- * 展开/收起回调
127
- * @param expanded 是否已展开
128
- */
129
- onExpand?: (expanded: boolean) => void;
130
- /**
131
- * 自定义类名
132
- */
133
- className?: string;
134
- /**
135
- * 自定义样式
136
- */
137
- style?: CSSProperties;
138
- /**
139
- * ARIA 标签
140
- */
141
- 'aria-label'?: string;
142
- /**
143
- * ARIA 描述
144
- */
145
- 'aria-describedby'?: string;
146
- }
147
- export type { DisplayState, ValidationResult, TextInputState } from '@pisell/utils';
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import type { PisellMetricCardProps } from './types';
3
- import './PisellMetricCard.less';
4
- /**
5
- * PisellMetricCard 指标卡片组件
6
- *
7
- * 用于展示单一核心指标的专业卡片组件
8
- * 支持标题、数值、环比、趋势箭头、标签等信息展示
9
- *
10
- * @example 基础用法
11
- * ```tsx
12
- * <PisellMetricCard
13
- * title="Total Sales"
14
- * value={1580}
15
- * />
16
- * ```
17
- *
18
- * @example 使用对象配置
19
- * ```tsx
20
- * <PisellMetricCard
21
- * title="Revenue"
22
- * value={1580}
23
- * format={{
24
- * showCurrencySymbol: true,
25
- * currencySymbol: '$',
26
- * useGrouping: true
27
- * }}
28
- * comparison={{
29
- * value: 120
30
- * }}
31
- * />
32
- * ```
33
- */
34
- declare const PisellMetricCard: React.FC<PisellMetricCardProps>;
35
- export default PisellMetricCard;
@@ -1,17 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import PisellMetricCard from './PisellMetricCard';
3
- declare const meta: Meta<typeof PisellMetricCard>;
4
- export default meta;
5
- declare type Story = StoryObj<typeof PisellMetricCard>;
6
- export declare const Basic: Story;
7
- export declare const WithCurrency: Story;
8
- export declare const PositiveTrend: Story;
9
- export declare const NegativeTrend: Story;
10
- export declare const WithGrouping: Story;
11
- export declare const WithPrecision: Story;
12
- export declare const Complete: Story;
13
- export declare const WithTag: Story;
14
- export declare const CustomStyle: Story;
15
- export declare const Loading: Story;
16
- export declare const EmptyValue: Story;
17
- export declare const MultipleCards: Story;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { MetricComparisonProps } from '../types';
3
- /**
4
- * MetricComparison 环比信息组件
5
- *
6
- * 负责渲染环比数值和趋势箭头
7
- * - 自动根据正负值显示不同颜色
8
- * - 支持格式化环比数值
9
- * - 集成趋势箭头组件
10
- *
11
- * @param props 组件属性
12
- */
13
- declare const MetricComparison: React.FC<MetricComparisonProps>;
14
- export default MetricComparison;
@@ -1,7 +0,0 @@
1
- /**
2
- * 子组件导出
3
- */
4
- export { default as TrendIcon } from './TrendIcon';
5
- export { default as MetricValue } from './MetricValue';
6
- export { default as MetricTitle } from './MetricTitle';
7
- export { default as MetricComparison } from './MetricComparison';
@@ -1,6 +0,0 @@
1
- /**
2
- * PisellMetricCard 组件导出
3
- */
4
- export { default as PisellMetricCard } from './PisellMetricCard';
5
- export type { PisellMetricCardProps, TrendType, FormatOptions, MetricTitleProps, MetricValueProps, MetricComparisonProps, TrendIconProps, } from './types';
6
- export { default } from './PisellMetricCard';
@@ -1,34 +0,0 @@
1
- import type { FormatOptions } from '../types';
2
- /**
3
- * 格式化指标数值
4
- *
5
- * 支持以下格式化选项:
6
- * - 小数精度控制
7
- * - 千分位分隔符
8
- * - 货币符号显示
9
- * - 自定义格式化函数
10
- * - 整数时隐藏小数部分
11
- *
12
- * @param value 数值
13
- * @param options 格式化选项
14
- * @returns 格式化后的字符串,null 时返回 null
15
- *
16
- * @example
17
- * formatMetricValue(1234.56, { precision: 2, useGrouping: true })
18
- * // 返回: "1,234.56"
19
- *
20
- * @example
21
- * formatMetricValue(1580, {
22
- * showCurrencySymbol: true,
23
- * currencySymbol: '$'
24
- * })
25
- * // 返回: "$1580"
26
- *
27
- * @example
28
- * formatMetricValue(100.00, {
29
- * precision: 2,
30
- * hideDecimalForWholeNumbers: true
31
- * })
32
- * // 返回: "100"
33
- */
34
- export declare function formatMetricValue(value: number | string | null | undefined, options?: FormatOptions): string | null;
@@ -1,5 +0,0 @@
1
- /**
2
- * 工具函数导出
3
- */
4
- export { formatMetricValue } from './formatMetricValue';
5
- export { calculateTrend } from './calculateTrend';
@@ -1,9 +0,0 @@
1
- /**
2
- * PisellMultipleSelect - 多选下拉组件
3
- * 基于 Ant Design Select 封装,提供符合 Pisell 设计规范的多选功能
4
- */
5
- import React from 'react';
6
- import type { PisellMultipleSelectProps, MultipleSelectRef } from './types';
7
- import './PisellMultipleSelect.less';
8
- declare const PisellMultipleSelect: React.ForwardRefExoticComponent<PisellMultipleSelectProps<string | number> & React.RefAttributes<MultipleSelectRef<string | number>>>;
9
- export default PisellMultipleSelect;
@@ -1,70 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import PisellMultipleSelect from './PisellMultipleSelect';
3
- /**
4
- * PisellMultipleSelect 组件 Storybook
5
- *
6
- * 用于展示和测试组件的各种状态和配置
7
- */
8
- declare const meta: Meta<typeof PisellMultipleSelect>;
9
- export default meta;
10
- declare type Story = StoryObj<typeof PisellMultipleSelect>;
11
- /**
12
- * 基础示例
13
- */
14
- export declare const Basic: Story;
15
- /**
16
- * 带标签
17
- */
18
- export declare const WithLabel: Story;
19
- /**
20
- * 标签聚合功能
21
- */
22
- export declare const TagAggregation: Story;
23
- /**
24
- * 最大可选数量限制
25
- */
26
- export declare const WithMaxCount: Story;
27
- /**
28
- * 带搜索功能
29
- */
30
- export declare const WithSearch: Story;
31
- /**
32
- * 带清空按钮
33
- */
34
- export declare const WithClear: Story;
35
- /**
36
- * 禁用态
37
- */
38
- export declare const Disabled: Story;
39
- /**
40
- * 只读态
41
- */
42
- export declare const ReadOnly: Story;
43
- /**
44
- * 只读态 - 标签聚合
45
- */
46
- export declare const ReadOnlyWithAggregation: Story;
47
- /**
48
- * 只读态 - 空值
49
- */
50
- export declare const ReadOnlyEmpty: Story;
51
- /**
52
- * 错误状态
53
- */
54
- export declare const WithError: Story;
55
- /**
56
- * 不同尺寸
57
- */
58
- export declare const Sizes: Story;
59
- /**
60
- * 表单场景
61
- */
62
- export declare const InForm: Story;
63
- /**
64
- * 回调事件演示
65
- */
66
- export declare const WithCallbacks: Story;
67
- /**
68
- * 所有状态组合
69
- */
70
- export declare const AllStates: Story;
@@ -1,8 +0,0 @@
1
- /**
2
- * PisellMultipleSelect - DisabledView (禁用态视图)
3
- * 禁用状态下的渲染
4
- */
5
- import React from 'react';
6
- import type { DisabledViewProps } from '../types';
7
- declare const DisabledView: React.ForwardRefExoticComponent<DisabledViewProps<string | number> & React.RefAttributes<any>>;
8
- export default DisabledView;
@@ -1,8 +0,0 @@
1
- /**
2
- * PisellMultipleSelect - EditView (编辑态视图)
3
- * 正常可编辑状态下的渲染
4
- */
5
- import React from 'react';
6
- import type { EditViewProps } from '../types';
7
- declare const EditView: React.ForwardRefExoticComponent<EditViewProps<string | number> & React.RefAttributes<any>>;
8
- export default EditView;
@@ -1,8 +0,0 @@
1
- /**
2
- * PisellMultipleSelect - ReadOnlyView (只读态视图)
3
- * 只读状态下使用 Tag 展示选中值
4
- */
5
- import React from 'react';
6
- import type { ReadOnlyViewProps } from '../types';
7
- declare const ReadOnlyView: React.FC<ReadOnlyViewProps>;
8
- export default ReadOnlyView;
@@ -1,7 +0,0 @@
1
- /**
2
- * PisellMultipleSelect 组件导出
3
- */
4
- import PisellMultipleSelect from './PisellMultipleSelect';
5
- export { PisellMultipleSelect };
6
- export type { PisellMultipleSelectProps, MultipleSelectRef, EditViewProps, DisabledViewProps, ReadOnlyViewProps, TagRendererProps, } from './types';
7
- export type { SelectOption, FilterOptionFunc, SortDirection, MultipleSelectState, TagDisplayInfo, } from './types';