@pisell/materials 3.3.84 → 3.3.86

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 (570) 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 +6 -6
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +21 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +21 -21
  11. package/es/components/Pagination/index.d.ts +13 -0
  12. package/es/components/Pagination/index.js +77 -59
  13. package/es/components/Pagination/index.less +13 -7
  14. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
  15. package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
  16. package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
  17. package/es/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
  18. package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
  19. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
  20. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
  21. package/es/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
  22. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
  23. package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
  24. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
  25. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
  26. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
  27. package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
  28. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  29. package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
  30. package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
  31. package/es/components/PisellCards/components/TextCard/types.d.ts +270 -0
  32. package/es/components/PisellFields/index.d.ts +2 -2
  33. package/es/components/PisellProcedure/PisellProcedure.d.ts +22 -0
  34. package/es/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
  35. package/es/components/PisellProcedure/components/ProcedureFooter.d.ts +38 -0
  36. package/es/components/PisellProcedure/components/ProcedureHeader.d.ts +34 -0
  37. package/es/components/PisellProcedure/components/index.d.ts +12 -0
  38. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
  39. package/es/components/PisellSuperTabs/hooks/index.d.ts +1 -0
  40. package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
  41. package/es/components/PisellSuperTabs/index.d.ts +3 -0
  42. package/es/components/PisellSuperTabs/types.d.ts +210 -0
  43. package/es/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  44. package/es/components/PisellTabbar/components/index.d.ts +1 -0
  45. package/es/components/PisellTabbar/constants.d.ts +46 -0
  46. package/es/components/PisellTabbar/hooks/index.d.ts +2 -0
  47. package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +49 -0
  48. package/es/components/PisellTabbar/hooks/useExpand.d.ts +41 -0
  49. package/es/components/PisellTabbar/index.d.ts +9 -0
  50. package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  51. package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  52. package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
  53. package/es/components/PisellTabbar/types.d.ts +111 -0
  54. package/es/components/PisellTabbar/utils/index.d.ts +68 -0
  55. package/es/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
  56. package/es/components/PisellTabbar2/components/index.d.ts +1 -0
  57. package/es/components/PisellTabbar2/index.d.ts +6 -0
  58. package/es/components/PisellTabbar3/index.d.ts +6 -0
  59. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  60. package/es/components/auto-resize-text/index.d.ts +6 -0
  61. package/es/components/cardPro/index.d.ts +4 -0
  62. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  63. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  64. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  65. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  66. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  67. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  68. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  69. package/es/components/dataSourceComponents/fields/index.d.ts +6 -7
  70. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  71. package/es/components/drag-sort-tree/index.d.ts +5 -0
  72. package/es/components/filter/components/Dropdown/index.js +6 -2
  73. package/es/components/filter/components/Dropdown/types.d.ts +13 -0
  74. package/es/components/filter/components/FilterButton/index.js +19 -4
  75. package/es/components/filter/components/FilterButton/types.d.ts +24 -0
  76. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  77. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +90 -0
  78. package/es/components/filter/components/FilterItem/index.d.ts +3 -3
  79. package/es/components/filter/components/FilterItem/index.js +138 -7
  80. package/es/components/filter/components/FilterItem/index.less +90 -0
  81. package/es/components/filter/types.d.ts +48 -0
  82. package/es/components/iconfont/index.d.ts +8 -0
  83. package/es/components/login-and-register/index.d.ts +82 -0
  84. package/es/components/pisell-config-provider/context.d.ts +20 -0
  85. package/es/components/pisell-config-provider/index.d.ts +12 -0
  86. package/es/components/pisellBatchActionBar/PisellBatchActionBar.d.ts +31 -0
  87. package/es/components/pisellBatchActionBar/PisellBatchActionBar.js +38 -29
  88. package/es/components/pisellBatchActionBar/index.d.ts +6 -0
  89. package/es/components/pisellCurrency/PisellCurrency.less +163 -25
  90. package/es/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  91. package/es/components/pisellCurrency/index.d.ts +2 -1
  92. package/es/components/pisellCurrency/index.js +16 -1
  93. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  94. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +30 -3
  95. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  96. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +68 -0
  97. package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  98. package/es/components/pisellDataSourceContainer/components/Table/index.js +5 -3
  99. package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  100. package/es/components/pisellDataSourceContainer/components/Table/useColumns.js +37 -15
  101. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  102. package/es/components/pisellDatePicker/index.d.ts +1 -0
  103. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
  104. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +21 -15
  105. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  106. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +195 -0
  107. package/es/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +48 -0
  108. package/es/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +42 -0
  109. package/es/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +57 -0
  110. package/es/components/pisellDateTimeDisplay/components/index.d.ts +6 -0
  111. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.js +5 -5
  112. package/es/components/pisellDateTimeDisplay/hooks/index.d.ts +2 -0
  113. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +46 -0
  114. package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +6 -4
  115. package/es/components/pisellDateTimeDisplay/index.d.ts +3 -0
  116. package/es/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
  117. package/es/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +17 -0
  118. package/es/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
  119. package/es/components/pisellDateTimeDisplay/utils/index.d.ts +7 -0
  120. package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +22 -0
  121. package/es/components/pisellDateTimeDisplay/utils/localeUtils.js +15 -4
  122. package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
  123. package/es/components/pisellDateTimeDisplay/utils/relativeDay.js +4 -2
  124. package/es/components/pisellEmail/PisellEmail.less +119 -10
  125. package/es/components/pisellEmail/PisellEmail.stories.js +1 -1
  126. package/es/components/pisellEmail/index.d.ts +3 -1
  127. package/es/components/pisellEmail/index.js +17 -1
  128. package/es/components/pisellEmpty/index.d.ts +19 -0
  129. package/es/components/pisellFilter/index.js +76 -10
  130. package/es/components/pisellFilter/type.d.ts +5 -0
  131. package/es/components/pisellFind/PisellFind.stories.d.ts +45 -0
  132. package/es/components/pisellFind/index.d.ts +40 -0
  133. package/es/components/pisellFind/index.js +11 -2
  134. package/es/components/pisellGridPro/ToolBar/index.less +23 -0
  135. package/es/components/pisellGridPro/index.d.ts +4 -0
  136. package/es/components/pisellLongText/PisellLongText.less +72 -4
  137. package/es/components/pisellLongText/PisellLongText.stories.js +1 -1
  138. package/es/components/pisellLongText/index.d.ts +2 -1
  139. package/es/components/pisellLongText/index.js +16 -1
  140. package/es/components/pisellLookup/PisellLookup.js +18 -9
  141. package/es/components/pisellLookup/PisellLookup.less +39 -16
  142. package/es/components/pisellLookup/components/LookupTrigger.js +14 -4
  143. package/es/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
  144. package/es/components/pisellMetricCard/components/index.d.ts +7 -0
  145. package/es/components/pisellMetricCard/index.d.ts +6 -0
  146. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  147. package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  148. package/es/components/pisellMultipleSelect/components/EditView.js +8 -2
  149. package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  150. package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +15 -11
  151. package/es/components/pisellMultipleSelect/index.d.ts +2 -1
  152. package/es/components/pisellMultipleSelect/index.js +16 -1
  153. package/es/components/pisellNumber/PisellNumber.less +135 -17
  154. package/es/components/pisellNumber/PisellNumber.stories.js +1 -1
  155. package/es/components/pisellNumber/index.d.ts +2 -1
  156. package/es/components/pisellNumber/index.js +16 -1
  157. package/es/components/pisellPercent/PisellPercent.less +142 -24
  158. package/es/components/pisellPercent/PisellPercent.stories.js +1 -1
  159. package/es/components/pisellPercent/index.d.ts +2 -1
  160. package/es/components/pisellPercent/index.js +16 -1
  161. package/es/components/pisellPhone/PisellPhone.less +122 -27
  162. package/es/components/pisellPhone/PisellPhone.stories.js +1 -1
  163. package/es/components/pisellPhone/components/EditView.js +1 -1
  164. package/es/components/pisellPhone/components/ReadOnlyView.js +15 -6
  165. package/es/components/pisellPhone/index.d.ts +2 -1
  166. package/es/components/pisellPhone/index.js +16 -1
  167. package/es/components/pisellQuickFilter/index.d.ts +11 -0
  168. package/es/components/pisellQuickFilter/type.d.ts +12 -0
  169. package/es/components/pisellRating/PisellRating.less +20 -12
  170. package/es/components/pisellRating/PisellRating.stories.js +1 -1
  171. package/es/components/pisellRating/index.d.ts +2 -1
  172. package/es/components/pisellRating/index.js +16 -1
  173. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  174. package/es/components/pisellRecordBoard/PisellRecordBoard.js +243 -0
  175. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  176. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +2358 -0
  177. package/es/components/pisellRecordBoard/context/RecordBoardContext.js +2 -0
  178. package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +13 -0
  179. package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +29 -0
  180. package/es/components/pisellRecordBoard/index.d.ts +35 -0
  181. package/es/components/pisellRecordBoard/index.js +23 -0
  182. package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +36 -0
  183. package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +20 -0
  184. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  185. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +242 -0
  186. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  187. package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  188. package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +20 -0
  189. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  190. package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +90 -0
  191. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  192. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +138 -0
  193. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  194. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +66 -0
  195. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  196. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  197. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +66 -0
  198. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  199. package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  200. package/es/components/pisellRecordBoard/shellFrame/Search/index.js +41 -0
  201. package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  202. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  203. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +215 -0
  204. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  205. package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +77 -0
  206. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  207. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +65 -0
  208. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  209. package/es/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  210. package/es/components/pisellRecordBoard/shellFrame/index.js +104 -0
  211. package/es/components/pisellRecordBoard/types.js +1 -0
  212. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  213. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +508 -0
  214. package/es/components/pisellRecordBoard/utils/withRecordBoard.js +27 -0
  215. package/es/components/pisellShellFrame/PisellShellFrame.js +107 -0
  216. package/es/components/pisellShellFrame/PisellShellFrame.less +78 -0
  217. package/es/components/pisellShellFrame/PisellShellFrame.stories.js +195 -0
  218. package/es/components/pisellShellFrame/index.js +1 -0
  219. package/es/components/pisellShellFrame/types.js +1 -0
  220. package/es/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  221. package/es/components/pisellSingleLineText/index.d.ts +2 -1
  222. package/es/components/pisellSingleLineText/index.js +16 -1
  223. package/es/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  224. package/es/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  225. package/es/components/pisellSingleSelect/components/EditView.js +8 -2
  226. package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  227. package/es/components/pisellSingleSelect/components/ReadOnlyView.js +10 -6
  228. package/es/components/pisellSingleSelect/index.d.ts +2 -1
  229. package/es/components/pisellSingleSelect/index.js +16 -1
  230. package/es/components/pisellSort/index.d.ts +4 -0
  231. package/es/components/pisellStatisticList/index.d.ts +22 -0
  232. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  233. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +8 -5
  234. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
  235. package/es/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +20 -0
  236. package/es/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +19 -0
  237. package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +30 -0
  238. package/es/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +18 -0
  239. package/es/components/pisellTimeRangeDisplay/components/index.d.ts +8 -0
  240. package/es/components/pisellTimeRangeDisplay/index.d.ts +3 -0
  241. package/es/components/pisellTimeRangeDisplay/utils/index.d.ts +4 -0
  242. package/es/components/pisellUrl/PisellUrl.less +120 -11
  243. package/es/components/pisellUrl/PisellUrl.stories.js +1 -1
  244. package/es/components/pisellUrl/index.d.ts +3 -1
  245. package/es/components/pisellUrl/index.js +17 -1
  246. package/es/components/productCard/components/Action/index.d.ts +4 -0
  247. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  248. package/es/components/productCard/components/Packages/utils.d.ts +2 -2
  249. package/es/components/productCard/status.d.ts +32 -0
  250. package/es/components/productCard/types.d.ts +84 -0
  251. package/es/components/select/index.d.ts +9 -0
  252. package/es/components/select/index.less +18 -2
  253. package/es/components/sort/index.js +25 -3
  254. package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
  255. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  256. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  257. package/es/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  258. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  259. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  260. package/es/components/table/Table/utils.d.ts +1 -1
  261. package/es/components/table/types.d.ts +268 -0
  262. package/es/components/versionModal/index.d.ts +23 -0
  263. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +12 -0
  264. package/es/components/virtualInput/BaseVirtualInput/index.less +2 -2
  265. package/es/components/virtualInput/index.js +6 -2
  266. package/es/hooks/useResponsive.d.ts +1 -1
  267. package/es/hooks/useThemeTokens.js +20 -0
  268. package/es/index.d.ts +6 -2
  269. package/es/index.js +2 -0
  270. package/es/locales/en-US.d.ts +36 -0
  271. package/es/locales/en-US.js +50 -2
  272. package/es/locales/index.js +2 -2
  273. package/es/locales/ja.d.ts +2 -0
  274. package/es/locales/ja.js +2 -0
  275. package/es/locales/pt.d.ts +2 -0
  276. package/es/locales/pt.js +2 -0
  277. package/es/locales/zh-CN.d.ts +36 -0
  278. package/es/locales/zh-CN.js +54 -6
  279. package/es/locales/zh-TW.d.ts +36 -0
  280. package/es/locales/zh-TW.js +54 -6
  281. package/es/utils/tagColor.js +39 -0
  282. package/lib/components/Pagination/index.d.ts +13 -0
  283. package/lib/components/Pagination/index.js +44 -21
  284. package/lib/components/Pagination/index.less +13 -7
  285. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
  286. package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
  287. package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
  288. package/lib/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
  289. package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
  290. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
  291. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
  292. package/lib/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
  293. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
  294. package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
  295. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
  296. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
  297. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
  298. package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
  299. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  300. package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
  301. package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
  302. package/lib/components/PisellCards/components/TextCard/types.d.ts +270 -0
  303. package/lib/components/PisellFields/index.d.ts +2 -2
  304. package/lib/components/PisellProcedure/PisellProcedure.d.ts +22 -0
  305. package/lib/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
  306. package/lib/components/PisellProcedure/components/ProcedureFooter.d.ts +38 -0
  307. package/lib/components/PisellProcedure/components/ProcedureHeader.d.ts +34 -0
  308. package/lib/components/PisellProcedure/components/index.d.ts +12 -0
  309. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
  310. package/lib/components/PisellSuperTabs/hooks/index.d.ts +1 -0
  311. package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
  312. package/lib/components/PisellSuperTabs/index.d.ts +3 -0
  313. package/lib/components/PisellSuperTabs/types.d.ts +210 -0
  314. package/lib/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  315. package/lib/components/PisellTabbar/components/index.d.ts +1 -0
  316. package/lib/components/PisellTabbar/constants.d.ts +46 -0
  317. package/lib/components/PisellTabbar/hooks/index.d.ts +2 -0
  318. package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +49 -0
  319. package/lib/components/PisellTabbar/hooks/useExpand.d.ts +41 -0
  320. package/lib/components/PisellTabbar/index.d.ts +9 -0
  321. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  322. package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  323. package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
  324. package/lib/components/PisellTabbar/types.d.ts +111 -0
  325. package/lib/components/PisellTabbar/utils/index.d.ts +68 -0
  326. package/lib/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
  327. package/lib/components/PisellTabbar2/components/index.d.ts +1 -0
  328. package/lib/components/PisellTabbar2/index.d.ts +6 -0
  329. package/lib/components/PisellTabbar3/index.d.ts +6 -0
  330. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  331. package/lib/components/auto-resize-text/index.d.ts +6 -0
  332. package/lib/components/cardPro/index.d.ts +4 -0
  333. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  334. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  335. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  336. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  337. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  338. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  339. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  340. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -7
  341. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  342. package/lib/components/drag-sort-tree/index.d.ts +5 -0
  343. package/lib/components/filter/components/Dropdown/index.js +9 -2
  344. package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
  345. package/lib/components/filter/components/FilterButton/index.js +14 -3
  346. package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
  347. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
  348. package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
  349. package/lib/components/filter/components/FilterItem/index.d.ts +3 -3
  350. package/lib/components/filter/components/FilterItem/index.js +133 -4
  351. package/lib/components/filter/components/FilterItem/index.less +90 -0
  352. package/lib/components/filter/types.d.ts +48 -0
  353. package/lib/components/iconfont/index.d.ts +8 -0
  354. package/lib/components/login-and-register/index.d.ts +82 -0
  355. package/lib/components/pisell-config-provider/context.d.ts +20 -0
  356. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  357. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.d.ts +31 -0
  358. package/lib/components/pisellBatchActionBar/PisellBatchActionBar.js +26 -23
  359. package/lib/components/pisellBatchActionBar/index.d.ts +6 -0
  360. package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
  361. package/lib/components/pisellCurrency/PisellCurrency.stories.js +1 -1
  362. package/lib/components/pisellCurrency/index.d.ts +2 -1
  363. package/lib/components/pisellCurrency/index.js +7 -0
  364. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  365. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +18 -2
  366. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
  367. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +81 -0
  368. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  369. package/lib/components/pisellDataSourceContainer/components/Table/index.js +3 -1
  370. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  371. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.js +25 -14
  372. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  373. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  374. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
  375. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +17 -11
  376. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
  377. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +195 -0
  378. package/lib/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +48 -0
  379. package/lib/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +42 -0
  380. package/lib/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +57 -0
  381. package/lib/components/pisellDateTimeDisplay/components/index.d.ts +6 -0
  382. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.js +3 -3
  383. package/lib/components/pisellDateTimeDisplay/hooks/index.d.ts +2 -0
  384. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +46 -0
  385. package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +7 -1
  386. package/lib/components/pisellDateTimeDisplay/index.d.ts +3 -0
  387. package/lib/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
  388. package/lib/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +17 -0
  389. package/lib/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
  390. package/lib/components/pisellDateTimeDisplay/utils/index.d.ts +7 -0
  391. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +22 -0
  392. package/lib/components/pisellDateTimeDisplay/utils/localeUtils.js +10 -2
  393. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +24 -0
  394. package/lib/components/pisellDateTimeDisplay/utils/relativeDay.js +2 -1
  395. package/lib/components/pisellEmail/PisellEmail.less +119 -10
  396. package/lib/components/pisellEmail/PisellEmail.stories.js +1 -1
  397. package/lib/components/pisellEmail/index.d.ts +3 -1
  398. package/lib/components/pisellEmail/index.js +10 -2
  399. package/lib/components/pisellEmpty/index.d.ts +19 -0
  400. package/lib/components/pisellFilter/index.js +79 -8
  401. package/lib/components/pisellFilter/type.d.ts +5 -0
  402. package/lib/components/pisellFind/PisellFind.stories.d.ts +45 -0
  403. package/lib/components/pisellFind/index.d.ts +40 -0
  404. package/lib/components/pisellFind/index.js +11 -2
  405. package/lib/components/pisellGridPro/ToolBar/index.less +23 -0
  406. package/lib/components/pisellGridPro/index.d.ts +4 -0
  407. package/lib/components/pisellLongText/PisellLongText.less +72 -4
  408. package/lib/components/pisellLongText/PisellLongText.stories.js +1 -1
  409. package/lib/components/pisellLongText/index.d.ts +2 -1
  410. package/lib/components/pisellLongText/index.js +7 -0
  411. package/lib/components/pisellLookup/PisellLookup.js +12 -6
  412. package/lib/components/pisellLookup/PisellLookup.less +39 -16
  413. package/lib/components/pisellLookup/components/LookupTrigger.js +9 -3
  414. package/lib/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
  415. package/lib/components/pisellMetricCard/components/index.d.ts +7 -0
  416. package/lib/components/pisellMetricCard/index.d.ts +6 -0
  417. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
  418. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
  419. package/lib/components/pisellMultipleSelect/components/EditView.js +4 -1
  420. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
  421. package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +29 -1
  422. package/lib/components/pisellMultipleSelect/index.d.ts +2 -1
  423. package/lib/components/pisellMultipleSelect/index.js +7 -0
  424. package/lib/components/pisellNumber/PisellNumber.less +135 -17
  425. package/lib/components/pisellNumber/PisellNumber.stories.js +1 -1
  426. package/lib/components/pisellNumber/index.d.ts +2 -1
  427. package/lib/components/pisellNumber/index.js +7 -0
  428. package/lib/components/pisellPercent/PisellPercent.less +142 -24
  429. package/lib/components/pisellPercent/PisellPercent.stories.js +1 -1
  430. package/lib/components/pisellPercent/index.d.ts +2 -1
  431. package/lib/components/pisellPercent/index.js +7 -0
  432. package/lib/components/pisellPhone/PisellPhone.less +122 -27
  433. package/lib/components/pisellPhone/PisellPhone.stories.js +1 -1
  434. package/lib/components/pisellPhone/components/EditView.js +1 -1
  435. package/lib/components/pisellPhone/components/ReadOnlyView.js +18 -4
  436. package/lib/components/pisellPhone/index.d.ts +2 -1
  437. package/lib/components/pisellPhone/index.js +7 -0
  438. package/lib/components/pisellQuickFilter/index.d.ts +11 -0
  439. package/lib/components/pisellQuickFilter/type.d.ts +12 -0
  440. package/lib/components/pisellRating/PisellRating.less +20 -12
  441. package/lib/components/pisellRating/PisellRating.stories.js +1 -1
  442. package/lib/components/pisellRating/index.d.ts +2 -1
  443. package/lib/components/pisellRating/index.js +7 -0
  444. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
  445. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +263 -0
  446. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
  447. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1673 -0
  448. package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +30 -0
  449. package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +46 -0
  450. package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +47 -0
  451. package/lib/components/pisellRecordBoard/index.d.ts +35 -0
  452. package/lib/components/pisellRecordBoard/index.js +59 -0
  453. package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +46 -0
  454. package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +46 -0
  455. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
  456. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +264 -0
  457. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
  458. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
  459. package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +46 -0
  460. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
  461. package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +108 -0
  462. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
  463. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +173 -0
  464. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
  465. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +100 -0
  466. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
  467. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
  468. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +90 -0
  469. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
  470. package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
  471. package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +53 -0
  472. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
  473. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
  474. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +247 -0
  475. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
  476. package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +93 -0
  477. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
  478. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +85 -0
  479. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
  480. package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
  481. package/lib/components/pisellRecordBoard/shellFrame/index.js +137 -0
  482. package/lib/components/pisellRecordBoard/types.js +17 -0
  483. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
  484. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +365 -0
  485. package/lib/components/pisellRecordBoard/utils/withRecordBoard.js +49 -0
  486. package/lib/components/pisellShellFrame/PisellShellFrame.js +113 -0
  487. package/lib/components/pisellShellFrame/PisellShellFrame.less +78 -0
  488. package/lib/components/pisellShellFrame/PisellShellFrame.stories.js +129 -0
  489. package/lib/components/pisellShellFrame/index.js +40 -0
  490. package/lib/components/pisellShellFrame/types.js +17 -0
  491. package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
  492. package/lib/components/pisellSingleLineText/index.d.ts +2 -1
  493. package/lib/components/pisellSingleLineText/index.js +7 -0
  494. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
  495. package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
  496. package/lib/components/pisellSingleSelect/components/EditView.js +4 -1
  497. package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
  498. package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +12 -9
  499. package/lib/components/pisellSingleSelect/index.d.ts +2 -1
  500. package/lib/components/pisellSingleSelect/index.js +7 -0
  501. package/lib/components/pisellSort/index.d.ts +4 -0
  502. package/lib/components/pisellStatisticList/index.d.ts +22 -0
  503. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +32 -0
  504. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +7 -3
  505. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
  506. package/lib/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +20 -0
  507. package/lib/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +19 -0
  508. package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +30 -0
  509. package/lib/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +18 -0
  510. package/lib/components/pisellTimeRangeDisplay/components/index.d.ts +8 -0
  511. package/lib/components/pisellTimeRangeDisplay/index.d.ts +3 -0
  512. package/lib/components/pisellTimeRangeDisplay/utils/index.d.ts +4 -0
  513. package/lib/components/pisellUrl/PisellUrl.less +120 -11
  514. package/lib/components/pisellUrl/PisellUrl.stories.js +1 -1
  515. package/lib/components/pisellUrl/index.d.ts +3 -1
  516. package/lib/components/pisellUrl/index.js +10 -2
  517. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  518. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  519. package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
  520. package/lib/components/productCard/status.d.ts +32 -0
  521. package/lib/components/productCard/types.d.ts +84 -0
  522. package/lib/components/select/index.d.ts +9 -0
  523. package/lib/components/select/index.less +18 -2
  524. package/lib/components/sort/index.js +13 -3
  525. package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
  526. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  527. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  528. package/lib/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  529. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  530. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  531. package/lib/components/table/Table/utils.d.ts +1 -1
  532. package/lib/components/table/types.d.ts +268 -0
  533. package/lib/components/versionModal/index.d.ts +23 -0
  534. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +12 -0
  535. package/lib/components/virtualInput/BaseVirtualInput/index.less +2 -2
  536. package/lib/components/virtualInput/index.js +7 -1
  537. package/lib/hooks/useResponsive.d.ts +1 -1
  538. package/lib/hooks/useThemeTokens.js +40 -0
  539. package/lib/index.d.ts +6 -2
  540. package/lib/index.js +6 -0
  541. package/lib/locales/en-US.d.ts +36 -0
  542. package/lib/locales/en-US.js +42 -2
  543. package/lib/locales/index.js +2 -2
  544. package/lib/locales/ja.d.ts +2 -0
  545. package/lib/locales/ja.js +2 -0
  546. package/lib/locales/pt.d.ts +2 -0
  547. package/lib/locales/pt.js +2 -0
  548. package/lib/locales/zh-CN.d.ts +36 -0
  549. package/lib/locales/zh-CN.js +46 -6
  550. package/lib/locales/zh-TW.d.ts +36 -0
  551. package/lib/locales/zh-TW.js +46 -6
  552. package/lib/utils/tagColor.js +60 -0
  553. package/lowcode/auto-resize-text/meta.ts +1 -1
  554. package/package.json +2 -2
  555. package/es/components/PisellTabbar/locales.d.ts +0 -23
  556. package/es/components/PisellTabbar2/locales.d.ts +0 -23
  557. package/es/components/PisellTabbar3/locales.d.ts +0 -23
  558. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
  559. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  560. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
  561. package/es/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +0 -7
  562. package/es/components/virtualInput/index.d.ts +0 -24
  563. package/lib/components/PisellTabbar/locales.d.ts +0 -23
  564. package/lib/components/PisellTabbar2/locales.d.ts +0 -23
  565. package/lib/components/PisellTabbar3/locales.d.ts +0 -23
  566. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
  567. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  568. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
  569. package/lib/components/dataSourceComponents/hooks/useFormSettingParams.d.ts +0 -7
  570. package/lib/components/virtualInput/index.d.ts +0 -24
@@ -0,0 +1,129 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/pisellShellFrame/PisellShellFrame.stories.tsx
20
+ var PisellShellFrame_stories_exports = {};
21
+ __export(PisellShellFrame_stories_exports, {
22
+ Full: () => Full,
23
+ TitleOnly: () => TitleOnly,
24
+ WithScrollBatchAndStatus: () => WithScrollBatchAndStatus,
25
+ WithStatisticCollapsible: () => WithStatisticCollapsible,
26
+ WithToolbar: () => WithToolbar,
27
+ default: () => PisellShellFrame_stories_default
28
+ });
29
+ module.exports = __toCommonJS(PisellShellFrame_stories_exports);
30
+ var import_antd = require("antd");
31
+ var import_PisellShellFrame = require("./PisellShellFrame");
32
+ var meta = {
33
+ title: "Pro Components/PisellShellFrame",
34
+ component: import_PisellShellFrame.PisellShellFrame,
35
+ parameters: {
36
+ layout: "padded",
37
+ docs: {
38
+ description: {
39
+ component: "通用壳层布局组件,通过 config 控制各区域显隐,支持标题区、工具区、统计区(可折叠)、滚动内容、批量操作条、状态提示区。"
40
+ }
41
+ }
42
+ },
43
+ tags: ["autodocs"],
44
+ argTypes: {
45
+ config: {
46
+ description: "各区域显隐与行为配置"
47
+ }
48
+ }
49
+ };
50
+ var PisellShellFrame_stories_default = meta;
51
+ var TitleOnly = {
52
+ args: {
53
+ config: { showTitle: true },
54
+ title: "页面标题",
55
+ subtitle: "副标题",
56
+ titleExtra: /* @__PURE__ */ React.createElement(import_antd.Button, { type: "primary" }, "操作"),
57
+ children: /* @__PURE__ */ React.createElement("div", { style: { padding: 24 } }, "主内容区域")
58
+ }
59
+ };
60
+ var WithToolbar = {
61
+ args: {
62
+ config: { showTitle: true, showToolbar: true },
63
+ title: "列表页",
64
+ subtitle: "通过工具栏筛选与排序",
65
+ toolbar: /* @__PURE__ */ React.createElement(import_antd.Space, null, /* @__PURE__ */ React.createElement(import_antd.Button, null, "筛选"), /* @__PURE__ */ React.createElement(import_antd.Button, null, "排序"), /* @__PURE__ */ React.createElement(import_antd.Button, { type: "primary" }, "新建")),
66
+ children: /* @__PURE__ */ React.createElement("div", { style: { padding: 24 } }, Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ React.createElement(import_antd.Card, { key: i, size: "small", style: { marginBottom: 8 } }, "列表项 ", i + 1)))
67
+ }
68
+ };
69
+ var WithStatisticCollapsible = {
70
+ args: {
71
+ config: {
72
+ showTitle: true,
73
+ showStatistic: true,
74
+ statisticCollapsible: true
75
+ },
76
+ title: "数据概览",
77
+ statisticList: /* @__PURE__ */ React.createElement(import_antd.Space, { size: "large" }, /* @__PURE__ */ React.createElement(import_antd.Statistic, { title: "总数", value: 1234 }), /* @__PURE__ */ React.createElement(import_antd.Statistic, { title: "今日", value: 56 }), /* @__PURE__ */ React.createElement(import_antd.Statistic, { title: "待处理", value: 12 })),
78
+ children: /* @__PURE__ */ React.createElement("div", { style: { padding: 24 } }, /* @__PURE__ */ React.createElement("p", null, "中间为主内容插槽,统计区可点击「展开统计」/「收起统计」折叠(文案已国际化)。"))
79
+ }
80
+ };
81
+ var WithScrollBatchAndStatus = {
82
+ args: {
83
+ config: {
84
+ showTitle: true,
85
+ showToolbar: true,
86
+ showStatistic: true,
87
+ statisticCollapsible: true,
88
+ scroll: true,
89
+ showBatchActionBar: true,
90
+ showStatusArea: true
91
+ },
92
+ title: "完整壳层示例",
93
+ subtitle: "含滚动、批量条、状态区",
94
+ toolbar: /* @__PURE__ */ React.createElement(import_antd.Space, null, /* @__PURE__ */ React.createElement(import_antd.Button, null, "刷新"), /* @__PURE__ */ React.createElement(import_antd.Button, { type: "primary" }, "导出")),
95
+ statisticList: /* @__PURE__ */ React.createElement(import_antd.Space, { size: "large" }, /* @__PURE__ */ React.createElement(import_antd.Statistic, { title: "已选", value: 3 }), /* @__PURE__ */ React.createElement(import_antd.Statistic, { title: "合计", value: 999 })),
96
+ batchActionBar: /* @__PURE__ */ React.createElement(import_antd.Space, null, /* @__PURE__ */ React.createElement("span", null, "已选 3 项"), /* @__PURE__ */ React.createElement(import_antd.Button, { size: "small" }, "批量删除"), /* @__PURE__ */ React.createElement(import_antd.Button, { size: "small" }, "取消选择")),
97
+ statusArea: /* @__PURE__ */ React.createElement(import_antd.Spin, { size: "small" }),
98
+ children: /* @__PURE__ */ React.createElement("div", { style: { padding: 24, minHeight: 200 } }, Array.from({ length: 12 }, (_, i) => /* @__PURE__ */ React.createElement(import_antd.Card, { key: i, size: "small", style: { marginBottom: 12 } }, "可滚动内容块 ", i + 1)))
99
+ }
100
+ };
101
+ var Full = {
102
+ args: {
103
+ config: {
104
+ showTitle: true,
105
+ showToolbar: true,
106
+ showStatistic: true,
107
+ statisticCollapsible: true,
108
+ scroll: true,
109
+ showBatchActionBar: true,
110
+ showStatusArea: true
111
+ },
112
+ title: "壳层全区域",
113
+ subtitle: "标题 / 工具 / 统计(可折叠) / 滚动内容 / 批量条 / 状态区",
114
+ titleExtra: /* @__PURE__ */ React.createElement(import_antd.Button, null, "辅助操作"),
115
+ toolbar: /* @__PURE__ */ React.createElement(import_antd.Space, null, /* @__PURE__ */ React.createElement(import_antd.Button, null, "工具 A"), /* @__PURE__ */ React.createElement(import_antd.Button, null, "工具 B")),
116
+ statisticList: /* @__PURE__ */ React.createElement(import_antd.Space, { size: "large" }, /* @__PURE__ */ React.createElement(import_antd.Statistic, { title: "指标 A", value: 100 }), /* @__PURE__ */ React.createElement(import_antd.Statistic, { title: "指标 B", value: 200 })),
117
+ batchActionBar: /* @__PURE__ */ React.createElement("div", { style: { padding: "4px 0" } }, "批量操作条占位"),
118
+ statusArea: /* @__PURE__ */ React.createElement("span", { style: { fontSize: 12, color: "#666" } }, "已同步 · 刚刚"),
119
+ children: /* @__PURE__ */ React.createElement("div", { style: { padding: 24 } }, /* @__PURE__ */ React.createElement("p", null, "Layout 插槽:此处可放置表格、看板、日历、楼层图等。"))
120
+ }
121
+ };
122
+ // Annotate the CommonJS export names for ESM import in node:
123
+ 0 && (module.exports = {
124
+ Full,
125
+ TitleOnly,
126
+ WithScrollBatchAndStatus,
127
+ WithStatisticCollapsible,
128
+ WithToolbar
129
+ });
@@ -0,0 +1,40 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellShellFrame/index.tsx
30
+ var pisellShellFrame_exports = {};
31
+ __export(pisellShellFrame_exports, {
32
+ PisellShellFrame: () => import_PisellShellFrame.PisellShellFrame,
33
+ default: () => import_PisellShellFrame.default
34
+ });
35
+ module.exports = __toCommonJS(pisellShellFrame_exports);
36
+ var import_PisellShellFrame = __toESM(require("./PisellShellFrame"));
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ PisellShellFrame
40
+ });
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/pisellShellFrame/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -59,7 +59,7 @@ var import_icons = require("@ant-design/icons");
59
59
  var import_antd = require("antd");
60
60
  var import_react = __toESM(require("react"));
61
61
  var meta = {
62
- title: "表单/PisellSingleLineText",
62
+ title: "表单/表单组件/PisellSingleLineText",
63
63
  component: import_PisellSingleLineText.PisellSingleLineText,
64
64
  parameters: {
65
65
  layout: "centered",
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * PisellSingleLineText 组件导出
3
3
  */
4
- export { default as PisellSingleLineText } from './PisellSingleLineText';
4
+ import PisellSingleLineText from './PisellSingleLineText';
5
+ export { PisellSingleLineText };
5
6
  export type { PisellSingleLineTextProps } from './types';
6
7
  export type { DisplayState, ValidationResult, TextInputState } from './types';
@@ -32,7 +32,14 @@ __export(pisellSingleLineText_exports, {
32
32
  PisellSingleLineText: () => import_PisellSingleLineText.default
33
33
  });
34
34
  module.exports = __toCommonJS(pisellSingleLineText_exports);
35
+ var import_locales = require("../../locales");
35
36
  var import_PisellSingleLineText = __toESM(require("./PisellSingleLineText"));
37
+ import_PisellSingleLineText.default.SortOptions = {
38
+ getSortItems: (fieldKey) => [
39
+ { key: `${fieldKey}:asc`, label: (0, import_locales.getText)("sort-a-z") },
40
+ { key: `${fieldKey}:desc`, label: (0, import_locales.getText)("sort-z-a") }
41
+ ]
42
+ };
36
43
  // Annotate the CommonJS export names for ESM import in node:
37
44
  0 && (module.exports = {
38
45
  PisellSingleLineText
@@ -1,53 +1,118 @@
1
1
  /**
2
2
  * PisellSingleSelect 组件样式
3
- *
4
- * 注意:大部分样式通过 tokens.ts 中的 Select Token 配置实现
5
- * 此文件仅包含 Token 无法实现的样式
3
+ * 基于 Figma 设计规范,覆盖时使用 pisell-lowcode-xxx
6
4
  */
7
5
 
8
6
  .pisell-single-select {
7
+ height: 48px !important;
9
8
  width: 100%;
10
9
 
11
- // 包装器布局(Token 无法配置)
10
+ .pisell-lowcode-select-clear {
11
+ color: #667085;
12
+ display: inline-flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ min-width: 44px;
16
+ min-height: 44px;
17
+ margin: -22px -8px;
18
+ padding: 10px 8px;
19
+
20
+ &:hover {
21
+ color: #344054;
22
+ }
23
+ }
24
+
25
+ // Select 触发器(Figma 设计规范,与 Input 体系一致)
26
+ .pisell-lowcode-select:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input) {
27
+ .pisell-lowcode-select-selector {
28
+ font-size: 16px !important;
29
+ line-height: 24px !important;
30
+ border-radius: 8px !important;
31
+ border: 1px solid #d0d5dd !important; // Gray/300
32
+ padding: 12px 16px !important;
33
+ min-height: 48px !important;
34
+ color: #101828 !important; // Gray/900
35
+ background-color: #ffffff !important;
36
+ }
37
+
38
+ &.pisell-lowcode-select-open .pisell-lowcode-select-selector {
39
+ border-color: #d6bbfb !important; // Primary/300
40
+ box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
41
+ }
42
+
43
+ &:not(.pisell-lowcode-select-open):not(.pisell-lowcode-select-disabled)
44
+ .pisell-lowcode-select-selector:hover {
45
+ border-color: #b692f6 !important; // Primary/400
46
+ }
47
+
48
+ &.pisell-lowcode-select-disabled .pisell-lowcode-select-selector {
49
+ background-color: #f9fafb !important; // Gray/50
50
+ color: #98a2b3 !important; // Gray/400
51
+ border-color: #d0d5dd !important;
52
+ cursor: not-allowed !important;
53
+ }
54
+
55
+ .pisell-lowcode-select-selection-placeholder {
56
+ color: #667085 !important; // Gray/500
57
+ }
58
+
59
+ .pisell-lowcode-select-arrow {
60
+ color: #667085;
61
+ }
62
+
63
+ .pisell-lowcode-select-clear {
64
+ color: #667085;
65
+
66
+ &:hover {
67
+ color: #344054;
68
+ }
69
+ }
70
+ }
71
+
12
72
  &-wrapper {
13
73
  display: flex;
14
74
  flex-direction: column;
15
75
  gap: 8px;
76
+ position: relative;
77
+
78
+ // 下拉选项高度 48px(通过 getPopupContainer 挂到 wrapper 内)
79
+ .pisell-single-select-dropdown .pisell-lowcode-select-item {
80
+ min-height: 48px !important;
81
+ height: 48px !important;
82
+ line-height: 48px !important;
83
+ padding: 0 16px !important;
84
+ font-size: 16px !important;
85
+ }
16
86
  }
17
87
 
18
- // 标签(Token 无法配置的自定义元素)
19
88
  &-label {
20
- font-family: 'Inter', sans-serif;
21
89
  font-size: 14px;
22
90
  font-weight: 600;
23
- color: #344054;
91
+ color: #344054; // Gray/700
24
92
  line-height: 20px;
25
93
 
26
94
  &-required::after {
27
95
  content: ' *';
28
- color: #D92D20;
96
+ color: #d92d20; // Error/600
29
97
  margin-left: 0;
30
98
  }
31
99
  }
32
100
 
33
- // 辅助文本(Token 无法配置的自定义元素)
34
101
  &-helper-text {
35
102
  font-size: 14px;
36
103
  font-weight: 400;
37
- color: #667085;
104
+ color: #667085; // Gray/500
38
105
  line-height: 20px;
39
106
  }
40
107
 
41
- // 错误文本(Token 无法配置的自定义元素)
42
108
  &-error-text {
43
- font-size: 14px;
109
+ font-size: 12px;
44
110
  font-weight: 400;
45
- color: #D92D20;
46
- line-height: 20px;
47
- animation: fadeIn 0.3s ease-in-out;
111
+ color: #d92d20; // Error/600
112
+ line-height: 1.5;
113
+ animation: pisell-single-select-fadeIn 0.3s ease-in-out;
48
114
  }
49
115
 
50
- // 下拉选项中的勾选图标(Figma 设计)
51
116
  &-option-content {
52
117
  display: flex;
53
118
  align-items: center;
@@ -56,20 +121,10 @@
56
121
  }
57
122
 
58
123
  &-option-check {
59
- color: #7F56D9; // Primary/600
124
+ color: #7f56d9; // Primary/600
60
125
  font-size: 16px;
61
126
  margin-left: 8px;
62
127
  }
63
-
64
- // hover 边框颜色(Token 不支持 colorBorderHover)
65
- :global {
66
- // hover 边框颜色
67
- .pisell-lowcode-select:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input):not(.pisell-lowcode-select-open) {
68
- .pisell-lowcode-select-selector:hover {
69
- border-color: #D6BBFB !important;
70
- }
71
- }
72
- }
73
128
  }
74
129
 
75
130
  // 下拉框内的搜索框样式(Figma 设计)
@@ -101,37 +156,40 @@
101
156
  }
102
157
 
103
158
  .pisell-single-select {
104
- // 错误状态(Token 无法单独配置错误边框颜色)
159
+ // 错误状态(Figma 设计体系 Error 色)
105
160
  &-error {
106
- :global(.ant-select-selector) {
107
- border-color: #D92D20 !important;
161
+ .pisell-lowcode-select .pisell-lowcode-select-selector {
162
+ border-color: #fda29b !important; // Error/300
108
163
 
109
164
  &:hover {
110
- border-color: #D92D20 !important;
165
+ border-color: #f97066 !important; // Error/400
111
166
  }
112
167
  }
113
168
 
114
- :global(.ant-select-focused .ant-select-selector) {
115
- border-color: #D92D20 !important;
116
- box-shadow: 0px 0px 0px 4px rgba(217, 45, 32, 0.1), 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
169
+ .pisell-lowcode-select.pisell-lowcode-select-focused .pisell-lowcode-select-selector,
170
+ .pisell-lowcode-select.pisell-lowcode-select-open .pisell-lowcode-select-selector {
171
+ border-color: #f97066 !important; // Error/400
172
+ box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
117
173
  }
118
174
  }
119
175
 
120
- // 只读状态(完全自定义的显示,不使用 Select 组件)
176
+ // 只读状态:仅展示 Tag,无 Select 无外框,Tag 使用与 disabled 一致的样式
121
177
  &-readonly {
122
178
  &-display {
123
179
  display: flex;
124
180
  align-items: center;
125
181
  gap: 8px;
126
- padding: 12px 16px;
127
- background-color: #F9FAFB;
128
- border: 1px solid #EAECF0;
129
- border-radius: 8px;
130
- min-height: 48px;
131
- font-size: 16px;
132
- font-weight: 500;
133
- line-height: 24px;
134
- color: #101828;
182
+ min-height: 24px;
183
+ }
184
+
185
+ &-tag {
186
+ margin: 0;
187
+ cursor: default;
188
+ border-radius: 12px;
189
+ border: 1px solid transparent;
190
+ font-size: 14px;
191
+ line-height: 22px;
192
+ padding: 2px 10px;
135
193
  }
136
194
 
137
195
  &-icon {
@@ -146,8 +204,7 @@
146
204
  }
147
205
  }
148
206
 
149
- // 动画
150
- @keyframes fadeIn {
207
+ @keyframes pisell-single-select-fadeIn {
151
208
  from {
152
209
  opacity: 0;
153
210
  transform: translateY(-4px);
@@ -51,7 +51,7 @@ var import_react = require("react");
51
51
  var import_antd = require("antd");
52
52
  var import_react2 = __toESM(require("react"));
53
53
  var meta = {
54
- title: "Components/PisellSingleSelect",
54
+ title: "表单/表单组件/PisellSingleSelect",
55
55
  component: import_PisellSingleSelect.default,
56
56
  tags: ["autodocs"],
57
57
  argTypes: {
@@ -90,6 +90,7 @@ var EditView = (0, import_react.forwardRef)((props, ref) => {
90
90
  (opt) => opt.label.toLowerCase().includes(searchKeyword.toLowerCase())
91
91
  );
92
92
  }, [antdOptions, searchKeyword, showSearch, filterOption, options]);
93
+ const wrapperRef = (0, import_react.useRef)(null);
93
94
  const menuItemSelectedIcon = /* @__PURE__ */ import_react.default.createElement(import_icons.CheckOutlined, { style: { color: "#7F56D9", fontSize: 16 } });
94
95
  const dropdownRender = (0, import_react.useCallback)(
95
96
  (menu) => {
@@ -109,7 +110,7 @@ var EditView = (0, import_react.forwardRef)((props, ref) => {
109
110
  },
110
111
  [showSearch, searchKeyword, handleSearchInput]
111
112
  );
112
- return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-single-select-wrapper", className), style }, label && /* @__PURE__ */ import_react.default.createElement(
113
+ return /* @__PURE__ */ import_react.default.createElement("div", { ref: wrapperRef, className: (0, import_classnames.default)("pisell-single-select-wrapper", className), style }, label && /* @__PURE__ */ import_react.default.createElement(
113
114
  "label",
114
115
  {
115
116
  className: (0, import_classnames.default)("pisell-single-select-label", {
@@ -131,6 +132,8 @@ var EditView = (0, import_react.forwardRef)((props, ref) => {
131
132
  dropdownRender,
132
133
  onChange: handleChange,
133
134
  size,
135
+ popupClassName: "pisell-single-select-dropdown",
136
+ getPopupContainer: () => wrapperRef.current ?? document.body,
134
137
  className: (0, import_classnames.default)("pisell-single-select", {
135
138
  "pisell-single-select-error": error
136
139
  })
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * PisellSingleSelect - ReadOnlyView (只读态视图)
3
- * 只读状态下的渲染
3
+ * 只读状态下使用 Tag 展示选中值
4
4
  */
5
5
  import React from 'react';
6
6
  import type { ReadOnlyViewProps } from '../types';
@@ -33,17 +33,12 @@ __export(ReadOnlyView_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(ReadOnlyView_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
36
37
  var import_classnames = __toESM(require("classnames"));
37
38
  var import_utils = require("@pisell/utils");
39
+ var import_tagColor = require("../../../utils/tagColor");
38
40
  var ReadOnlyView = (props) => {
39
- const {
40
- value,
41
- options,
42
- label,
43
- required,
44
- className,
45
- style
46
- } = props;
41
+ const { value, options, label, required, className, style } = props;
47
42
  const selectedOption = (0, import_react.useMemo)(
48
43
  () => value !== null && value !== void 0 ? (0, import_utils.findOptionByValue)(value, options) : void 0,
49
44
  [value, options]
@@ -67,7 +62,15 @@ var ReadOnlyView = (props) => {
67
62
  },
68
63
  label
69
64
  ),
70
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-single-select-readonly-display" }, selectedOption ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, selectedOption.icon && /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-single-select-readonly-icon" }, selectedOption.icon), /* @__PURE__ */ import_react.default.createElement("span", null, selectedOption.label)) : /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-single-select-readonly-empty" }, "-"))
65
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-single-select-readonly-display" }, selectedOption ? /* @__PURE__ */ import_react.default.createElement(
66
+ import_antd.Tag,
67
+ {
68
+ className: "pisell-single-select-readonly-tag",
69
+ color: selectedOption.color ?? (0, import_tagColor.getDefaultTagColor)(selectedOption.value, 0)
70
+ },
71
+ selectedOption.icon && /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-single-select-readonly-tag-icon" }, selectedOption.icon),
72
+ selectedOption.label
73
+ ) : /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-single-select-readonly-empty" }, "-"))
71
74
  );
72
75
  };
73
76
  ReadOnlyView.displayName = "PisellSingleSelectReadOnlyView";
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * PisellSingleSelect 组件导出
3
3
  */
4
- export { default as PisellSingleSelect } from './PisellSingleSelect';
4
+ import PisellSingleSelect from './PisellSingleSelect';
5
+ export { PisellSingleSelect };
5
6
  export type { PisellSingleSelectProps, SingleSelectRef, EditViewProps, DisabledViewProps, ReadOnlyViewProps, } from './types';
6
7
  export type { SelectOption, FilterOptionFunc, SortDirection, SelectState, } from './types';
@@ -32,7 +32,14 @@ __export(pisellSingleSelect_exports, {
32
32
  PisellSingleSelect: () => import_PisellSingleSelect.default
33
33
  });
34
34
  module.exports = __toCommonJS(pisellSingleSelect_exports);
35
+ var import_locales = require("../../locales");
35
36
  var import_PisellSingleSelect = __toESM(require("./PisellSingleSelect"));
37
+ import_PisellSingleSelect.default.SortOptions = {
38
+ getSortItems: (fieldKey) => [
39
+ { key: `${fieldKey}:asc`, label: (0, import_locales.getText)("sort-first-last") },
40
+ { key: `${fieldKey}:desc`, label: (0, import_locales.getText)("sort-last-first") }
41
+ ]
42
+ };
36
43
  // Annotate the CommonJS export names for ESM import in node:
37
44
  0 && (module.exports = {
38
45
  PisellSingleSelect
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PisellSortProps } from './type';
3
+ declare const PisellSort: (props: PisellSortProps) => React.JSX.Element;
4
+ export default PisellSort;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ isHasBorder?: boolean;
5
+ backgroundColors?: string[];
6
+ labelColor?: string;
7
+ valueColor?: string;
8
+ data: {
9
+ label: string;
10
+ value: string;
11
+ isLink?: boolean;
12
+ link?: string;
13
+ tip?: string;
14
+ onClick?: () => void;
15
+ children?: {
16
+ label: string;
17
+ value: string;
18
+ }[];
19
+ }[];
20
+ }
21
+ declare const PisellStatisticList: (props: PisellStatisticListProps) => React.JSX.Element;
22
+ export default PisellStatisticList;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import 'dayjs/locale/zh-cn';
3
+ import 'dayjs/locale/en';
4
+ import type { PisellTimeRangeDisplayProps } from './types';
5
+ import './PisellTimeRangeDisplay.less';
6
+ /**
7
+ * PisellTimeRangeDisplay 组件
8
+ *
9
+ * @description
10
+ * 纯展示型时间区间组件,将 startAt / endAt 格式化为「时间区间 + 持续时间」。
11
+ * - 同一天:HH:mm-HH:mm,可选显示日期/星期
12
+ * - 跨天:起止日期时间
13
+ * - 持续时间:d h m s 格式
14
+ * - 字段顺序由 fieldOrder 控制,可将 duration 放在中间
15
+ *
16
+ * @example
17
+ * <PisellTimeRangeDisplay
18
+ * startAt="2026-02-04 09:00"
19
+ * endAt="2026-02-04 18:00"
20
+ * />
21
+ * // => "09:00-18:00" + "9h"
22
+ *
23
+ * <PisellTimeRangeDisplay
24
+ * startAt={start}
25
+ * endAt={end}
26
+ * fields={{ fieldOrder: ['time', 'duration', 'date', 'weekday'] }}
27
+ * showDateForSameDay
28
+ * />
29
+ */
30
+ export declare const PisellTimeRangeDisplay: React.FC<PisellTimeRangeDisplayProps>;
31
+ declare const _default: React.NamedExoticComponent<PisellTimeRangeDisplayProps>;
32
+ export default _default;
@@ -39,8 +39,10 @@ var import_zh_cn = require("dayjs/locale/zh-cn");
39
39
  var import_en = require("dayjs/locale/en");
40
40
  var import_utils = require("./utils");
41
41
  var import_components = require("./components");
42
+ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
42
43
  var import_PisellTimeRangeDisplay = require("./PisellTimeRangeDisplay.less");
43
44
  var PisellTimeRangeDisplay = (props) => {
45
+ var _a, _b;
44
46
  const {
45
47
  startAt,
46
48
  endAt,
@@ -61,9 +63,11 @@ var PisellTimeRangeDisplay = (props) => {
61
63
  style,
62
64
  onClick
63
65
  } = props;
66
+ const context = (0, import_useEngineContext.default)();
67
+ const resolvedLocale = localeProp || ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en";
64
68
  const effectiveLocale = (0, import_react.useMemo)(
65
- () => localeProp ?? (0, import_utils.getDayjsLocale)(),
66
- [localeProp]
69
+ () => (0, import_utils.getDayjsLocale)(resolvedLocale),
70
+ [resolvedLocale]
67
71
  );
68
72
  const { start, end, isSameDay } = (0, import_react.useMemo)(
69
73
  () => (0, import_utils.parseTimeRange)(startAt, endAt, effectiveLocale),
@@ -79,7 +83,7 @@ var PisellTimeRangeDisplay = (props) => {
79
83
  } = fields || {};
80
84
  const showSeconds = (durationFormat == null ? void 0 : durationFormat.showSeconds) ?? false;
81
85
  const effectiveDateFormat = (0, import_react.useMemo)(
82
- () => ({ showRelativeDay: true, ...dateFormat }),
86
+ () => ({ showRelativeDay: false, ...dateFormat }),
83
87
  [dateFormat]
84
88
  );
85
89
  const referenceDate = (0, import_dayjs.default)();