@pisell/materials 6.0.21 → 6.1.1

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 (449) 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 +5 -5
  6. package/build/lowcode/preview.js +34 -14
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +35 -25
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +35 -25
  11. package/dist/umd/materials.min.css +1 -0
  12. package/dist/umd/materials.min.js +1 -0
  13. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  14. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  15. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  16. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  17. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  18. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  19. package/es/components/DragSortList/index.js +6 -6
  20. package/es/components/TimeResourceSelector/index.js +115 -0
  21. package/es/components/TimeResourceSelector/index.less +59 -0
  22. package/es/components/cardMetricItem/index.less +0 -1
  23. package/es/components/classicLayout/index.js +5 -4
  24. package/es/components/collapse/index.js +103 -0
  25. package/es/components/collapse/index.less +0 -0
  26. package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +6 -2
  27. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +1 -1
  28. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +12 -4
  29. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/index.d.ts +4 -4
  31. package/es/components/dataSourceComponents/fields/utils.js +5 -0
  32. package/es/components/date-picker/datePickerCpt.js +1 -1
  33. package/es/components/div/index.d.ts +13 -2
  34. package/es/components/div/index.js +45 -8
  35. package/es/components/icon/index.js +5 -5
  36. package/es/components/iconfont/index.js +1 -1
  37. package/es/components/list/index.js +6 -6
  38. package/es/components/pisell-config-provider/index.js +3 -1
  39. package/es/components/pisellAnchor/index.js +109 -199
  40. package/es/components/pisellAnchor/index.less +3 -6
  41. package/es/components/pisellAvatar/index.js +3 -2
  42. package/es/components/pisellAvatar/index.less +2 -1
  43. package/es/components/pisellCard/index.js +34 -5
  44. package/es/components/pisellCard/index.less +31 -4
  45. package/es/components/pisellCardList/index.d.ts +31 -1
  46. package/es/components/pisellCardList/index.js +29 -19
  47. package/es/components/pisellCardList/index.less +75 -75
  48. package/es/components/pisellCheckboxGroup/index.d.ts +3 -1
  49. package/es/components/pisellCheckboxGroup/index.js +32 -8
  50. package/es/components/pisellCheckboxGroup/index.less +1 -0
  51. package/es/components/pisellCustomCheckboxGroup/index.js +75 -0
  52. package/es/components/pisellCustomCheckboxGroup/index.less +0 -0
  53. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +3 -3
  54. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +4 -3
  55. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +1 -0
  56. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +1 -1
  57. package/es/components/pisellDraggable/components/TreeItem/index.js +1 -1
  58. package/es/components/pisellDraggable/index.d.ts +5 -2
  59. package/es/components/pisellDraggable/index.js +165 -127
  60. package/es/components/pisellDropSort/PisellDropSort.js +10 -3
  61. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +1 -0
  62. package/es/components/pisellDropSort/components/SortableItem/index.js +6 -1
  63. package/es/components/pisellDropSort/components/SortableItem/index.less +0 -1
  64. package/es/components/pisellDropSort/types.d.ts +6 -0
  65. package/es/components/pisellDropdown/index.js +51 -0
  66. package/es/components/pisellDropdown/index.less +44 -0
  67. package/es/components/pisellGoodPassCard/index.d.ts +49 -0
  68. package/es/components/pisellGoodPassCard/index.js +122 -0
  69. package/es/components/pisellGoodPassCard/index.less +58 -0
  70. package/es/components/pisellHeaderProgressBar/index.js +76 -0
  71. package/es/components/pisellHeaderProgressBar/index.less +18 -0
  72. package/es/components/pisellImageCarousels/index.js +108 -0
  73. package/es/components/pisellImageCarousels/index.less +92 -0
  74. package/es/components/pisellInformationEntry/hooks/useNativeScanner.js +35 -0
  75. package/es/components/pisellInformationEntry/index.js +16 -2
  76. package/es/components/pisellList01/index.js +105 -0
  77. package/es/components/pisellList01/index.less +53 -0
  78. package/es/components/pisellMenu/PisellMenu.d.ts +6 -4
  79. package/es/components/pisellMenu/PisellMenu.js +1 -0
  80. package/es/components/pisellMenu/types.d.ts +1 -0
  81. package/es/components/pisellModal/components/MobileModal/index.less +4 -0
  82. package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +79 -11
  83. package/es/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
  84. package/es/components/pisellNavigationMenu/types.d.ts +21 -0
  85. package/es/components/pisellQrcode/index.less +0 -2
  86. package/es/components/pisellSectionHeaders/index.js +35 -0
  87. package/es/components/pisellSectionHeaders/index.less +46 -0
  88. package/es/components/pisellText/components/Amount/index.js +1 -1
  89. package/es/components/pisellWalletPassCard/index.d.ts +31 -1
  90. package/es/components/pisellWalletPassCard/index.js +452 -47
  91. package/es/components/pisellWalletPassCard/index.less +154 -28
  92. package/es/components/productCard/components/Action/index.js +21 -0
  93. package/es/components/productCard/components/Action/index.less +14 -0
  94. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  95. package/es/components/productCard/components/AmountFooter/index.js +58 -0
  96. package/es/components/productCard/components/AmountFooter/index.less +50 -0
  97. package/es/components/productCard/components/Divider/index.js +11 -0
  98. package/es/components/productCard/components/Divider/index.less +13 -0
  99. package/es/components/productCard/components/Header/DeleteButton/index.js +21 -0
  100. package/es/components/productCard/components/Header/DeleteButton/index.less +15 -0
  101. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  102. package/es/components/productCard/components/Header/EditButton/index.js +22 -0
  103. package/es/components/productCard/components/Header/EditButton/index.less +26 -0
  104. package/es/components/productCard/components/Header/index.d.ts +3 -0
  105. package/es/components/productCard/components/Header/index.js +94 -0
  106. package/es/components/productCard/components/Header/index.less +57 -0
  107. package/es/components/productCard/components/MultiDay/index.js +80 -0
  108. package/es/components/productCard/components/MultiDay/index.less +34 -0
  109. package/es/components/productCard/components/MultiDay/utils.js +56 -0
  110. package/es/components/productCard/components/Note/index.d.ts +3 -0
  111. package/es/components/productCard/components/Note/index.js +25 -0
  112. package/es/components/productCard/components/Note/index.less +20 -0
  113. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  114. package/es/components/productCard/components/Packages/components/collapsibleList/index.js +96 -0
  115. package/es/components/productCard/components/Packages/components/collapsibleList/index.less +52 -0
  116. package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +40 -0
  117. package/es/components/productCard/components/Packages/components/options/index.js +23 -0
  118. package/es/components/productCard/components/Packages/components/options/index.less +29 -0
  119. package/es/components/productCard/components/Packages/index.d.ts +3 -0
  120. package/es/components/productCard/components/Packages/index.js +31 -0
  121. package/es/components/productCard/components/Packages/index.less +17 -0
  122. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  123. package/es/components/productCard/components/Packages/utils.js +40 -0
  124. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  125. package/es/components/productCard/components/Sales/index.js +40 -0
  126. package/es/components/productCard/components/Sales/index.less +18 -0
  127. package/es/components/productCard/components/Time/components/Like/index.js +30 -0
  128. package/es/components/productCard/components/Time/components/Like/index.less +27 -0
  129. package/es/components/productCard/components/Time/components/Like/like-heart.png +0 -0
  130. package/es/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
  131. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  132. package/es/components/productCard/components/Time/components/SelectHolder/index.js +143 -0
  133. package/es/components/productCard/components/Time/components/SelectHolder/index.less +62 -0
  134. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  135. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +157 -0
  136. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +39 -0
  137. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  138. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.js +144 -0
  139. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  140. package/es/components/productCard/components/Time/components/SelectResource/index.js +119 -0
  141. package/es/components/productCard/components/Time/components/SelectResource/index.less +20 -0
  142. package/es/components/productCard/components/Time/index.js +140 -0
  143. package/es/components/productCard/components/Time/index.less +56 -0
  144. package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
  145. package/es/components/productCard/hooks/useOpenNote.js +67 -0
  146. package/es/components/productCard/index.d.ts +5 -0
  147. package/es/components/productCard/index.js +176 -0
  148. package/es/components/productCard/index.less +82 -0
  149. package/es/components/productCard/locales.js +122 -0
  150. package/es/components/productCard/status.js +68 -0
  151. package/es/components/productCard/types.js +1 -0
  152. package/es/components/productCard/utils.d.ts +31 -0
  153. package/es/components/productCard/utils.js +147 -0
  154. package/es/components/profileMenu/index.less +2 -5
  155. package/es/components/qrcode/index.js +1 -1
  156. package/es/components/record-view/index.less +0 -2
  157. package/es/components/section-footers/index.js +17 -0
  158. package/es/components/section-footers/index.less +5 -0
  159. package/es/components/sort/components/InlineMenu/index.js +1 -1
  160. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  161. package/es/components/table/Actions/component/ExportImport/utils/index.js +11 -0
  162. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  163. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
  164. package/es/components/table/Header/Buttons/index.js +5 -5
  165. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  166. package/es/components/table/Table/SelectField/index.js +4 -4
  167. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  168. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  169. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  170. package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
  171. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  172. package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
  173. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  174. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  175. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  176. package/es/components/table/Table/utils.d.ts +1 -1
  177. package/es/components/table/hooks/useMergeColumnSetting.js +2 -1
  178. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  179. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  180. package/es/components/tabs/index.js +6 -1
  181. package/es/components/translation/index.js +10 -10
  182. package/es/components/translation/utils.js +5 -5
  183. package/es/components/walletCard/Guide/index.js +87 -0
  184. package/es/components/walletCard/Guide/index.less +71 -0
  185. package/es/components/walletCard/index.js +87 -50
  186. package/es/components/walletCard/index.less +3 -5
  187. package/es/hooks/useResponsive.js +2 -2
  188. package/es/index.d.ts +11 -1
  189. package/es/index.js +14 -2
  190. package/es/locales/en-US.d.ts +16 -1
  191. package/es/locales/en-US.js +18 -2
  192. package/es/locales/zh-CN.d.ts +16 -1
  193. package/es/locales/zh-CN.js +18 -2
  194. package/es/locales/zh-TW.d.ts +16 -1
  195. package/es/locales/zh-TW.js +17 -2
  196. package/es/utils/hoc.js +1 -1
  197. package/es/utils/miniRedux.js +9 -8
  198. package/lib/components/TimeResourceSelector/index.js +109 -0
  199. package/lib/components/TimeResourceSelector/index.less +59 -0
  200. package/lib/components/cardMetricItem/index.less +0 -1
  201. package/lib/components/collapse/index.js +109 -0
  202. package/lib/components/collapse/index.less +0 -0
  203. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +6 -2
  204. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +1 -1
  205. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +15 -7
  206. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  207. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -4
  208. package/lib/components/dataSourceComponents/fields/utils.js +5 -0
  209. package/lib/components/date-picker/datePickerCpt.js +1 -1
  210. package/lib/components/div/index.d.ts +13 -2
  211. package/lib/components/div/index.js +33 -3
  212. package/lib/components/iconfont/index.js +1 -1
  213. package/lib/components/lowCodePage/index.js +2 -1
  214. package/lib/components/pisell-config-provider/index.js +3 -1
  215. package/lib/components/pisellAnchor/index.js +64 -131
  216. package/lib/components/pisellAnchor/index.less +3 -6
  217. package/lib/components/pisellAvatar/index.js +2 -2
  218. package/lib/components/pisellAvatar/index.less +2 -1
  219. package/lib/components/pisellCard/index.js +30 -7
  220. package/lib/components/pisellCard/index.less +31 -4
  221. package/lib/components/pisellCardList/index.d.ts +31 -1
  222. package/lib/components/pisellCardList/index.js +48 -43
  223. package/lib/components/pisellCardList/index.less +75 -75
  224. package/lib/components/pisellCheckboxGroup/index.d.ts +3 -1
  225. package/lib/components/pisellCheckboxGroup/index.js +30 -7
  226. package/lib/components/pisellCheckboxGroup/index.less +1 -0
  227. package/lib/components/pisellCustomCheckboxGroup/index.js +71 -0
  228. package/lib/components/pisellCustomCheckboxGroup/index.less +0 -0
  229. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +3 -3
  230. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +4 -7
  231. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +1 -0
  232. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +1 -1
  233. package/lib/components/pisellDraggable/components/TreeItem/index.js +12 -2
  234. package/lib/components/pisellDraggable/index.d.ts +5 -2
  235. package/lib/components/pisellDraggable/index.js +114 -80
  236. package/lib/components/pisellDropSort/PisellDropSort.js +9 -3
  237. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +1 -0
  238. package/lib/components/pisellDropSort/components/SortableItem/index.js +5 -0
  239. package/lib/components/pisellDropSort/components/SortableItem/index.less +0 -1
  240. package/lib/components/pisellDropSort/types.d.ts +6 -0
  241. package/lib/components/pisellDropdown/index.js +72 -0
  242. package/lib/components/pisellDropdown/index.less +44 -0
  243. package/lib/components/pisellEmpty/index.js +9 -1
  244. package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
  245. package/lib/components/pisellGoodPassCard/index.js +111 -0
  246. package/lib/components/pisellGoodPassCard/index.less +58 -0
  247. package/lib/components/pisellHeaderProgressBar/index.js +88 -0
  248. package/lib/components/pisellHeaderProgressBar/index.less +18 -0
  249. package/lib/components/pisellImageCarousels/index.js +108 -0
  250. package/lib/components/pisellImageCarousels/index.less +92 -0
  251. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.js +75 -0
  252. package/lib/components/pisellInformationEntry/index.js +14 -9
  253. package/lib/components/pisellList01/index.js +113 -0
  254. package/lib/components/pisellList01/index.less +53 -0
  255. package/lib/components/pisellMenu/PisellMenu.d.ts +6 -4
  256. package/lib/components/pisellMenu/PisellMenu.js +1 -0
  257. package/lib/components/pisellMenu/types.d.ts +1 -0
  258. package/lib/components/pisellModal/components/MobileModal/index.less +4 -0
  259. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +64 -9
  260. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
  261. package/lib/components/pisellNavigationMenu/types.d.ts +21 -0
  262. package/lib/components/pisellQrcode/index.less +0 -2
  263. package/lib/components/pisellSectionHeaders/index.js +52 -0
  264. package/lib/components/pisellSectionHeaders/index.less +46 -0
  265. package/lib/components/pisellText/components/Amount/index.js +2 -1
  266. package/lib/components/pisellWalletPassCard/index.d.ts +31 -1
  267. package/lib/components/pisellWalletPassCard/index.js +397 -23
  268. package/lib/components/pisellWalletPassCard/index.less +154 -28
  269. package/lib/components/productCard/components/Action/index.js +55 -0
  270. package/lib/components/productCard/components/Action/index.less +14 -0
  271. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  272. package/lib/components/productCard/components/AmountFooter/index.js +84 -0
  273. package/lib/components/productCard/components/AmountFooter/index.less +50 -0
  274. package/lib/components/productCard/components/Divider/index.js +50 -0
  275. package/lib/components/productCard/components/Divider/index.less +13 -0
  276. package/lib/components/productCard/components/Header/DeleteButton/index.js +53 -0
  277. package/lib/components/productCard/components/Header/DeleteButton/index.less +15 -0
  278. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  279. package/lib/components/productCard/components/Header/EditButton/index.js +62 -0
  280. package/lib/components/productCard/components/Header/EditButton/index.less +26 -0
  281. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  282. package/lib/components/productCard/components/Header/index.js +103 -0
  283. package/lib/components/productCard/components/Header/index.less +57 -0
  284. package/lib/components/productCard/components/MultiDay/index.js +72 -0
  285. package/lib/components/productCard/components/MultiDay/index.less +34 -0
  286. package/lib/components/productCard/components/MultiDay/utils.js +77 -0
  287. package/lib/components/productCard/components/Note/index.d.ts +3 -0
  288. package/lib/components/productCard/components/Note/index.js +56 -0
  289. package/lib/components/productCard/components/Note/index.less +20 -0
  290. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  291. package/lib/components/productCard/components/Packages/components/collapsibleList/index.js +93 -0
  292. package/lib/components/productCard/components/Packages/components/collapsibleList/index.less +52 -0
  293. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +54 -0
  294. package/lib/components/productCard/components/Packages/components/options/index.js +73 -0
  295. package/lib/components/productCard/components/Packages/components/options/index.less +29 -0
  296. package/lib/components/productCard/components/Packages/index.d.ts +3 -0
  297. package/lib/components/productCard/components/Packages/index.js +56 -0
  298. package/lib/components/productCard/components/Packages/index.less +17 -0
  299. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  300. package/lib/components/productCard/components/Packages/utils.js +44 -0
  301. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  302. package/lib/components/productCard/components/Sales/index.js +61 -0
  303. package/lib/components/productCard/components/Sales/index.less +18 -0
  304. package/lib/components/productCard/components/Time/components/Like/index.js +72 -0
  305. package/lib/components/productCard/components/Time/components/Like/index.less +27 -0
  306. package/lib/components/productCard/components/Time/components/Like/like-heart.png +0 -0
  307. package/lib/components/productCard/components/Time/components/Like/like-hide-heart.png +0 -0
  308. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  309. package/lib/components/productCard/components/Time/components/SelectHolder/index.js +162 -0
  310. package/lib/components/productCard/components/Time/components/SelectHolder/index.less +62 -0
  311. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  312. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +177 -0
  313. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +39 -0
  314. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  315. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.js +152 -0
  316. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  317. package/lib/components/productCard/components/Time/components/SelectResource/index.js +124 -0
  318. package/lib/components/productCard/components/Time/components/SelectResource/index.less +20 -0
  319. package/lib/components/productCard/components/Time/index.js +203 -0
  320. package/lib/components/productCard/components/Time/index.less +56 -0
  321. package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
  322. package/lib/components/productCard/hooks/useOpenNote.js +85 -0
  323. package/lib/components/productCard/index.d.ts +5 -0
  324. package/lib/components/productCard/index.js +207 -0
  325. package/lib/components/productCard/index.less +82 -0
  326. package/lib/components/productCard/locales.js +104 -0
  327. package/lib/components/productCard/status.js +72 -0
  328. package/lib/components/productCard/types.js +17 -0
  329. package/lib/components/productCard/utils.d.ts +31 -0
  330. package/lib/components/productCard/utils.js +142 -0
  331. package/lib/components/profileMenu/index.less +2 -5
  332. package/lib/components/record-view/index.less +0 -2
  333. package/lib/components/section-footers/index.js +44 -0
  334. package/lib/components/section-footers/index.less +5 -0
  335. package/lib/components/table/Actions/component/ExportImport/utils/index.js +31 -0
  336. package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
  337. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
  338. package/lib/components/table/Table/fields/utils/index.js +2 -1
  339. package/lib/components/table/Table/utils.d.ts +1 -1
  340. package/lib/components/tabs/index.js +1 -0
  341. package/lib/components/walletCard/Guide/index.js +136 -0
  342. package/lib/components/walletCard/Guide/index.less +71 -0
  343. package/lib/components/walletCard/index.js +46 -7
  344. package/lib/components/walletCard/index.less +3 -5
  345. package/lib/hooks/useResponsive.js +6 -3
  346. package/lib/index.d.ts +11 -1
  347. package/lib/index.js +29 -1
  348. package/lib/locales/en-US.d.ts +16 -1
  349. package/lib/locales/en-US.js +18 -2
  350. package/lib/locales/zh-CN.d.ts +16 -1
  351. package/lib/locales/zh-CN.js +18 -2
  352. package/lib/locales/zh-TW.d.ts +16 -1
  353. package/lib/locales/zh-TW.js +17 -2
  354. package/lowcode/collapse/meta.ts +85 -1
  355. package/lowcode/date-picker.range-picker/meta.ts +20 -0
  356. package/lowcode/div/meta.ts +39 -4
  357. package/lowcode/pisell-card-list/meta.ts +222 -136
  358. package/lowcode/pisell-custom-checkbox-group/__screenshots__/card-1.png +0 -0
  359. package/lowcode/pisell-custom-checkbox-group/meta.ts +204 -0
  360. package/lowcode/pisell-custom-checkbox-group/snippets.ts +56 -0
  361. package/lowcode/pisell-dropdown/__screenshots__/dropdown-1.png +0 -0
  362. package/lowcode/pisell-dropdown/meta.ts +180 -0
  363. package/lowcode/pisell-dropdown/snippets.ts +69 -0
  364. package/lowcode/pisell-good-pass-card/meta.ts +38 -0
  365. package/lowcode/pisell-good-pass-card/snippets.ts +9 -0
  366. package/lowcode/pisell-header-progress-bar/meta.ts +116 -0
  367. package/lowcode/pisell-header-progress-bar/snippets.ts +24 -0
  368. package/lowcode/pisell-image-carousels/meta.ts +143 -0
  369. package/lowcode/pisell-image-carousels/snippets.ts +20 -0
  370. package/lowcode/pisell-list01/meta.ts +74 -0
  371. package/lowcode/pisell-list01/snippets.ts +35 -0
  372. package/lowcode/pisell-navigation-menu/meta.ts +12 -0
  373. package/lowcode/pisell-section-headers/meta.ts +91 -0
  374. package/lowcode/pisell-section-headers/snippets.ts +22 -0
  375. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +217 -0
  376. package/lowcode/pisell-wallet-pass-card/meta.ts +178 -129
  377. package/lowcode/product-card/meta.ts +145 -0
  378. package/lowcode/product-card/snippets.ts +36 -0
  379. package/package.json +3 -3
  380. package/es/components/appVersionControl/index.d.ts +0 -4
  381. package/es/components/badge/index.d.ts +0 -7
  382. package/es/components/buttonGroupEdit/index.d.ts +0 -8
  383. package/es/components/buttonGroupPreview/index.d.ts +0 -19
  384. package/es/components/cardPro/index.d.ts +0 -3
  385. package/es/components/cropPhoto/index.d.ts +0 -3
  386. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  387. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  388. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  389. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
  390. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  391. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  392. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
  393. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
  394. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
  395. package/es/components/drag-sort-tree/index.d.ts +0 -4
  396. package/es/components/iconfont/index.d.ts +0 -8
  397. package/es/components/login-and-register/index.d.ts +0 -82
  398. package/es/components/page/index.d.ts +0 -5
  399. package/es/components/pisell-config-provider/index.d.ts +0 -12
  400. package/es/components/pisellAnchor/index.d.ts +0 -23
  401. package/es/components/pisellAvatar/index.d.ts +0 -19
  402. package/es/components/pisellCard/index.d.ts +0 -11
  403. package/es/components/pisellEmpty/index.d.ts +0 -18
  404. package/es/components/pisellInformationEntry/index.d.ts +0 -31
  405. package/es/components/pisellQrcode/index.d.ts +0 -10
  406. package/es/components/pisellStatisticList/index.d.ts +0 -21
  407. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  408. package/es/components/table/Table/index.d.ts +0 -4
  409. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  410. package/es/components/table/types.d.ts +0 -251
  411. package/es/components/tabs/index.d.ts +0 -16
  412. package/es/components/versionModal/index.d.ts +0 -23
  413. package/es/components/walletCard/Guest/index.d.ts +0 -3
  414. package/es/components/walletCard/index.d.ts +0 -65
  415. package/lib/components/appVersionControl/index.d.ts +0 -4
  416. package/lib/components/badge/index.d.ts +0 -7
  417. package/lib/components/buttonGroupEdit/index.d.ts +0 -8
  418. package/lib/components/buttonGroupPreview/index.d.ts +0 -19
  419. package/lib/components/cardPro/index.d.ts +0 -3
  420. package/lib/components/cropPhoto/index.d.ts +0 -3
  421. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  422. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  423. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  424. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
  425. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  426. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  427. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
  428. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
  429. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
  430. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  431. package/lib/components/iconfont/index.d.ts +0 -8
  432. package/lib/components/login-and-register/index.d.ts +0 -82
  433. package/lib/components/page/index.d.ts +0 -5
  434. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  435. package/lib/components/pisellAnchor/index.d.ts +0 -23
  436. package/lib/components/pisellAvatar/index.d.ts +0 -19
  437. package/lib/components/pisellCard/index.d.ts +0 -11
  438. package/lib/components/pisellEmpty/index.d.ts +0 -18
  439. package/lib/components/pisellInformationEntry/index.d.ts +0 -31
  440. package/lib/components/pisellQrcode/index.d.ts +0 -10
  441. package/lib/components/pisellStatisticList/index.d.ts +0 -21
  442. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  443. package/lib/components/table/Table/index.d.ts +0 -4
  444. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  445. package/lib/components/table/types.d.ts +0 -251
  446. package/lib/components/tabs/index.d.ts +0 -16
  447. package/lib/components/versionModal/index.d.ts +0 -23
  448. package/lib/components/walletCard/Guest/index.d.ts +0 -3
  449. package/lib/components/walletCard/index.d.ts +0 -65
package/es/index.js CHANGED
@@ -1,4 +1,6 @@
1
- export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, Collapse, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from 'antd';
1
+ export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col,
2
+ // Collapse,
3
+ ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from 'antd';
2
4
  export { default as AutoComplete } from "./components/auto-complete";
3
5
  export { default as AutoCompleteNumber } from "./components/auto-complete-number";
4
6
  export { default as Badge } from "./components/badge";
@@ -126,4 +128,14 @@ export { default as Image } from "./components/image";
126
128
  export { default as PisellDropSort } from "./components/pisellDropSort";
127
129
  export { default as PisellNavigationMenu } from "./components/pisellNavigationMenu";
128
130
  export { default as PisellAppCard } from "./components/pisellAppCard";
129
- export { default as BaseTranslation } from "./components/dataSourceComponents/fields/Translation/BaseTranslation";
131
+ export { default as BaseTranslation } from "./components/dataSourceComponents/fields/Translation/BaseTranslation";
132
+ export { default as PisellCustomCheckboxGroup } from "./components/pisellCustomCheckboxGroup";
133
+ export { default as PisellDropdown } from "./components/pisellDropdown";
134
+ export { default as PisellSectionHeaders } from "./components/pisellSectionHeaders";
135
+ export { default as PisellImageCarousels } from "./components/pisellImageCarousels";
136
+ export { default as PisellHeaderProgressBar } from "./components/pisellHeaderProgressBar";
137
+ export { default as PisellList01 } from "./components/pisellList01";
138
+ export { default as SectionFooters } from "./components/section-footers";
139
+ export { default as ProductCard } from "./components/productCard";
140
+ export { default as Collapse } from "./components/collapse";
141
+ export { default as PisellGoodPassCard } from "./components/pisellGoodPassCard";
@@ -117,9 +117,16 @@ declare const _default: {
117
117
  'pisell-information-entry-input-confirm': string;
118
118
  'pisell-information-entry-scan-exit': string;
119
119
  'pisell-wallet-pass-card-detail': string;
120
- 'pisell-wallet-pass-card-redeem': string;
120
+ 'pisell-wallet-pass-card-edit': string;
121
+ 'pisell-wallet-pass-card-name': string;
122
+ 'pisell-wallet-pass-card-store-name': string;
121
123
  'pisell-wallet-pass-card-balance': string;
124
+ 'pisell-wallet-pass-card-redeem': string;
125
+ 'pisell-wallet-pass-card-code': string;
122
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-confirm': string;
128
+ 'pisell-wallet-pass-card-cancel': string;
129
+ 'pisell-wallet-pass-card-required': string;
123
130
  'pisell-wallet-pass-card-expireDate': string;
124
131
  'pisell-adjust-price-price-override': string;
125
132
  'pisell-adjust-price-discount': string;
@@ -220,7 +227,11 @@ declare const _default: {
220
227
  'pisell-lowcode-navigation-menu-add-page': string;
221
228
  'pisell-lowcode-navigation-menu-add-page-tip': string;
222
229
  'pisell-lowcode-navigation-menu-tag-base': string;
230
+ 'pisell-lowcode-navigation-menu-tag-proCode': string;
223
231
  'pisell-lowcode-navigation-menu-tag-pisell1': string;
232
+ 'pisell-lowcode-navigation-menu-tag-group': string;
233
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': string;
234
+ 'pisell-lowcode-navigation-menu-tag-custom': string;
224
235
  'pisell-data-source-form-app-identifier-pattern': string;
225
236
  'pisell-data-source-form-app-identifier-start-with-letter': string;
226
237
  'pisell-group-permissions-rule-required': string;
@@ -259,5 +270,9 @@ declare const _default: {
259
270
  'pisell-login-and-register-register-button-text': string;
260
271
  'pisell-login-and-register-remember-me': string;
261
272
  'pisell-login-and-register-forgot-password': string;
273
+ 'pisell2.text.goodpass.product-vouchers': string;
274
+ 'pisell2.text.goodpass.last-settlement': string;
275
+ 'pisell2.text.goodpass.view-more': string;
276
+ 'pisell2.text.goodpass.save': string;
262
277
  };
263
278
  export default _default;
@@ -143,9 +143,16 @@ export default {
143
143
  'pisell-information-entry-scan-exit': 'Exit',
144
144
  // 钱包卡片组件
145
145
  'pisell-wallet-pass-card-detail': 'Detail',
146
- 'pisell-wallet-pass-card-redeem': 'Redeem',
146
+ 'pisell-wallet-pass-card-edit': 'Edit',
147
+ 'pisell-wallet-pass-card-name': 'Name',
148
+ 'pisell-wallet-pass-card-store-name': 'StoreName',
147
149
  'pisell-wallet-pass-card-balance': 'Balance',
150
+ 'pisell-wallet-pass-card-redeem': 'Redeem',
151
+ 'pisell-wallet-pass-card-code': 'Code',
148
152
  'pisell-wallet-pass-card-valid-to': 'Valid to',
153
+ 'pisell-wallet-pass-card-confirm': 'Confirm',
154
+ 'pisell-wallet-pass-card-cancel': 'Cancel',
155
+ 'pisell-wallet-pass-card-required': 'This field is required',
149
156
  'pisell-wallet-pass-card-expireDate': 'Long term',
150
157
  // 金额修改组件
151
158
  'pisell-adjust-price-price-override': "Price override",
@@ -279,7 +286,11 @@ export default {
279
286
  'pisell-lowcode-navigation-menu-add-page': 'Add page',
280
287
  'pisell-lowcode-navigation-menu-add-page-tip': 'No navigation found. Please add a submenu or page.',
281
288
  'pisell-lowcode-navigation-menu-tag-base': "Base",
289
+ 'pisell-lowcode-navigation-menu-tag-proCode': "Pro code",
282
290
  'pisell-lowcode-navigation-menu-tag-pisell1': "Pisell 1.0",
291
+ 'pisell-lowcode-navigation-menu-tag-group': "Group",
292
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': "Submenu",
293
+ 'pisell-lowcode-navigation-menu-tag-custom': "Custom",
283
294
  // 应用标识符
284
295
  'pisell-data-source-form-app-identifier-pattern': 'Can only contain lowercase letters, numbers, hyphens, dots, and underscores',
285
296
  'pisell-data-source-form-app-identifier-start-with-letter': 'Must start with a letter',
@@ -322,5 +333,10 @@ export default {
322
333
  'pisell-login-and-register-register-password-placeholder': 'Create a password',
323
334
  'pisell-login-and-register-register-button-text': 'Create account',
324
335
  'pisell-login-and-register-remember-me': 'Remember me',
325
- 'pisell-login-and-register-forgot-password': 'Forgot password?'
336
+ 'pisell-login-and-register-forgot-password': 'Forgot password?',
337
+ // 商品券组件
338
+ 'pisell2.text.goodpass.product-vouchers': "Promotions & Vouchers",
339
+ 'pisell2.text.goodpass.last-settlement': "(Last payment)",
340
+ 'pisell2.text.goodpass.view-more': "View More",
341
+ 'pisell2.text.goodpass.save': "Save"
326
342
  };
@@ -117,9 +117,16 @@ declare const _default: {
117
117
  'pisell-information-entry-input-confirm': string;
118
118
  'pisell-information-entry-scan-exit': string;
119
119
  'pisell-wallet-pass-card-detail': string;
120
- 'pisell-wallet-pass-card-redeem': string;
120
+ 'pisell-wallet-pass-card-edit': string;
121
+ 'pisell-wallet-pass-card-name': string;
122
+ 'pisell-wallet-pass-card-store-name': string;
121
123
  'pisell-wallet-pass-card-balance': string;
124
+ 'pisell-wallet-pass-card-redeem': string;
125
+ 'pisell-wallet-pass-card-code': string;
122
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-confirm': string;
128
+ 'pisell-wallet-pass-card-cancel': string;
129
+ 'pisell-wallet-pass-card-required': string;
123
130
  'pisell-wallet-pass-card-expireDate': string;
124
131
  'pisell-adjust-price-price-override': string;
125
132
  'pisell-adjust-price-discount': string;
@@ -219,7 +226,11 @@ declare const _default: {
219
226
  'pisell-lowcode-navigation-menu-add-page': string;
220
227
  'pisell-lowcode-navigation-menu-add-page-tip': string;
221
228
  'pisell-lowcode-navigation-menu-tag-base': string;
229
+ 'pisell-lowcode-navigation-menu-tag-proCode': string;
222
230
  'pisell-lowcode-navigation-menu-tag-pisell1': string;
231
+ 'pisell-lowcode-navigation-menu-tag-group': string;
232
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': string;
233
+ 'pisell-lowcode-navigation-menu-tag-custom': string;
223
234
  'pisell-data-source-form-app-identifier-pattern': string;
224
235
  'pisell-data-source-form-app-identifier-start-with-letter': string;
225
236
  'pisell-data-source-form-app-identifier-special-ends': string;
@@ -254,5 +265,9 @@ declare const _default: {
254
265
  'pisell-login-and-register-register-button-text': string;
255
266
  'pisell-login-and-register-remember-me': string;
256
267
  'pisell-login-and-register-forgot-password': string;
268
+ 'pisell2.text.goodpass.product-vouchers': string;
269
+ 'pisell2.text.goodpass.last-settlement': string;
270
+ 'pisell2.text.goodpass.view-more': string;
271
+ 'pisell2.text.goodpass.save': string;
257
272
  };
258
273
  export default _default;
@@ -143,9 +143,16 @@ export default {
143
143
  'pisell-information-entry-scan-exit': '退出',
144
144
  // 钱包卡片组件
145
145
  'pisell-wallet-pass-card-detail': '详情',
146
- 'pisell-wallet-pass-card-redeem': '兑换',
146
+ 'pisell-wallet-pass-card-edit': '编辑',
147
+ 'pisell-wallet-pass-card-name': '商品名称',
148
+ 'pisell-wallet-pass-card-store-name': '共享店铺名称',
147
149
  'pisell-wallet-pass-card-balance': '余额',
150
+ 'pisell-wallet-pass-card-redeem': '兑换',
151
+ 'pisell-wallet-pass-card-code': '识别码编号',
148
152
  'pisell-wallet-pass-card-valid-to': '有效期至',
153
+ 'pisell-wallet-pass-card-confirm': '确认',
154
+ 'pisell-wallet-pass-card-cancel': '取消',
155
+ 'pisell-wallet-pass-card-required': '此字段必填',
149
156
  'pisell-wallet-pass-card-expireDate': '长期',
150
157
  // 金额修改组件
151
158
  'pisell-adjust-price-price-override': "一口价",
@@ -276,7 +283,11 @@ export default {
276
283
  'pisell-lowcode-navigation-menu-add-page': '添加页面',
277
284
  'pisell-lowcode-navigation-menu-add-page-tip': '没有找到导航,请添加子菜单或页面。',
278
285
  'pisell-lowcode-navigation-menu-tag-base': "基础",
286
+ 'pisell-lowcode-navigation-menu-tag-proCode': "Pro code",
279
287
  'pisell-lowcode-navigation-menu-tag-pisell1': "Pisell 1.0",
288
+ 'pisell-lowcode-navigation-menu-tag-group': "分组",
289
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': "子菜单",
290
+ 'pisell-lowcode-navigation-menu-tag-custom': "自定义",
280
291
  // 应用标识符
281
292
  'pisell-data-source-form-app-identifier-pattern': '只能包含小写字母、数字、连字符、点和下划线',
282
293
  'pisell-data-source-form-app-identifier-start-with-letter': '必须以字母开头',
@@ -313,5 +324,10 @@ export default {
313
324
  'pisell-login-and-register-register-password-placeholder': '创建密码',
314
325
  'pisell-login-and-register-register-button-text': '创建账户',
315
326
  'pisell-login-and-register-remember-me': '记住我',
316
- 'pisell-login-and-register-forgot-password': '忘记密码?'
327
+ 'pisell-login-and-register-forgot-password': '忘记密码?',
328
+ // 商品券
329
+ 'pisell2.text.goodpass.product-vouchers': "优惠促销",
330
+ 'pisell2.text.goodpass.last-settlement': "(上次结算)",
331
+ 'pisell2.text.goodpass.view-more': "查看更多",
332
+ 'pisell2.text.goodpass.save': "节省"
317
333
  };
@@ -117,9 +117,16 @@ declare const _default: {
117
117
  'pisell-information-entry-input-confirm': string;
118
118
  'pisell-information-entry-scan-exit': string;
119
119
  'pisell-wallet-pass-card-detail': string;
120
- 'pisell-wallet-pass-card-redeem': string;
120
+ 'pisell-wallet-pass-card-edit': string;
121
+ 'pisell-wallet-pass-card-name': string;
122
+ 'pisell-wallet-pass-card-store-name': string;
121
123
  'pisell-wallet-pass-card-balance': string;
124
+ 'pisell-wallet-pass-card-redeem': string;
125
+ 'pisell-wallet-pass-card-code': string;
122
126
  'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-confirm': string;
128
+ 'pisell-wallet-pass-card-cancel': string;
129
+ 'pisell-wallet-pass-card-required': string;
123
130
  'pisell-wallet-pass-card-expireDate': string;
124
131
  'pisell-adjust-price-price-override': string;
125
132
  'pisell-adjust-price-discount': string;
@@ -219,7 +226,11 @@ declare const _default: {
219
226
  'pisell-lowcode-navigation-menu-add-page': string;
220
227
  'pisell-lowcode-navigation-menu-add-page-tip': string;
221
228
  'pisell-lowcode-navigation-menu-tag-base': string;
229
+ 'pisell-lowcode-navigation-menu-tag-proCode': string;
222
230
  'pisell-lowcode-navigation-menu-tag-pisell1': string;
231
+ 'pisell-lowcode-navigation-menu-tag-group': string;
232
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': string;
233
+ 'pisell-lowcode-navigation-menu-tag-custom': string;
223
234
  'pisell-data-source-form-app-identifier-pattern': string;
224
235
  'pisell-data-source-form-app-identifier-start-with-letter': string;
225
236
  'pisell-data-source-form-app-identifier-special-ends': string;
@@ -254,5 +265,9 @@ declare const _default: {
254
265
  'pisell-login-and-register-register-button-text': string;
255
266
  'pisell-login-and-register-remember-me': string;
256
267
  'pisell-login-and-register-forgot-password': string;
268
+ 'pisell2.text.goodpass.product-vouchers': string;
269
+ 'pisell2.text.goodpass.last-settlement': string;
270
+ 'pisell2.text.goodpass.view-more': string;
271
+ 'pisell2.text.goodpass.save': string;
257
272
  };
258
273
  export default _default;
@@ -143,9 +143,16 @@ export default {
143
143
  'pisell-information-entry-scan-exit': '退出',
144
144
  // 钱包卡片组件
145
145
  'pisell-wallet-pass-card-detail': '詳情',
146
- 'pisell-wallet-pass-card-redeem': '兌換',
146
+ 'pisell-wallet-pass-card-edit': '編輯',
147
+ 'pisell-wallet-pass-card-name': '商品名稱',
148
+ 'pisell-wallet-pass-card-store-name': '共享店鋪名稱',
147
149
  'pisell-wallet-pass-card-balance': '餘額',
150
+ 'pisell-wallet-pass-card-redeem': '兌換',
151
+ 'pisell-wallet-pass-card-code': '識別碼編號',
148
152
  'pisell-wallet-pass-card-valid-to': '有效期至',
153
+ 'pisell-wallet-pass-card-confirm': '確認',
154
+ 'pisell-wallet-pass-card-cancel': '取消',
155
+ 'pisell-wallet-pass-card-required': '此欄位為必填',
149
156
  'pisell-wallet-pass-card-expireDate': '長期',
150
157
  // 金额修改组件
151
158
  'pisell-adjust-price-price-override': "一口價",
@@ -278,7 +285,11 @@ export default {
278
285
  'pisell-lowcode-navigation-menu-add-page': '添加頁面',
279
286
  'pisell-lowcode-navigation-menu-add-page-tip': '沒有找到導航, 請添加子菜單或頁面。',
280
287
  'pisell-lowcode-navigation-menu-tag-base': "基础",
288
+ 'pisell-lowcode-navigation-menu-tag-proCode': "Pro code",
281
289
  'pisell-lowcode-navigation-menu-tag-pisell1': "Pisell 1.0",
290
+ 'pisell-lowcode-navigation-menu-tag-group': "分組",
291
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': "子菜單",
292
+ 'pisell-lowcode-navigation-menu-tag-custom': "自定義",
282
293
  // 应用标识符
283
294
  'pisell-data-source-form-app-identifier-pattern': '只能包含小寫字母、數字、連字符、點和下劃線',
284
295
  'pisell-data-source-form-app-identifier-start-with-letter': '必須以字母開頭',
@@ -315,5 +326,9 @@ export default {
315
326
  'pisell-login-and-register-register-password-placeholder': '創建密碼',
316
327
  'pisell-login-and-register-register-button-text': '創建帳戶',
317
328
  'pisell-login-and-register-remember-me': '記住我',
318
- 'pisell-login-and-register-forgot-password': '忘記密碼?'
329
+ 'pisell-login-and-register-forgot-password': '忘記密碼?',
330
+ 'pisell2.text.goodpass.product-vouchers': "優惠促銷",
331
+ 'pisell2.text.goodpass.last-settlement': "(上次結算)",
332
+ 'pisell2.text.goodpass.view-more': "查看更多",
333
+ 'pisell2.text.goodpass.save': "節省"
319
334
  };
package/es/utils/hoc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
3
  import React from 'react';
4
4
  import { get, set, has } from 'lodash';
5
5
  import dayjs from "dayjs";
@@ -1,15 +1,15 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
  import React, { createContext, useCallback, useReducer } from 'react';
15
15
  export default (function (_ref2) {
@@ -23,6 +23,7 @@ export default (function (_ref2) {
23
23
  var Context = /*#__PURE__*/createContext({});
24
24
  var Provider = function Provider(ComponentUi) {
25
25
  var Components = function Components(props, ref) {
26
+ var _objectSpread2, _ref5;
26
27
  var _useReducer = useReducer(function (state, _ref3) {
27
28
  var type = _ref3.type,
28
29
  payload = _ref3.payload;
@@ -47,14 +48,14 @@ export default (function (_ref2) {
47
48
  });
48
49
  }
49
50
  }, []);
50
- var _props = _objectSpread(_objectSpread({}, props), {}, _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch));
51
+ var _props = _objectSpread(_objectSpread({}, props), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, namespace, providerState), _defineProperty(_objectSpread2, "dispatch", _dispatch), _objectSpread2));
51
52
  var _ref = ref;
52
53
  // if (_props.forwardedRef) {
53
54
  // _ref = _props.forwardedRef;
54
55
  // delete _props.forwardedRef;
55
56
  // }
56
57
  return /*#__PURE__*/React.createElement(Context.Provider, {
57
- value: _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch)
58
+ value: (_ref5 = {}, _defineProperty(_ref5, namespace, providerState), _defineProperty(_ref5, "dispatch", _dispatch), _ref5)
58
59
  }, /*#__PURE__*/React.createElement(ComponentUi, _extends({}, _props, {
59
60
  ref: _ref
60
61
  })));
@@ -0,0 +1,109 @@
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/TimeResourceSelector/index.tsx
30
+ var TimeResourceSelector_exports = {};
31
+ __export(TimeResourceSelector_exports, {
32
+ default: () => TimeResourceSelector_default
33
+ });
34
+ module.exports = __toCommonJS(TimeResourceSelector_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_materials = require("@pisell/materials");
38
+ var import_PisellCustomCheckboxGroup = __toESM(require("../PisellCustomCheckboxGroup"));
39
+ var import_index = require("./index.less");
40
+ var TimeResourceSelector = ({
41
+ timeSlots = [],
42
+ multiple = false,
43
+ showUnavailable = true,
44
+ defaultExpanded = true,
45
+ defaultSelectFirst = true,
46
+ onChange,
47
+ className,
48
+ style
49
+ }) => {
50
+ const [selectedValues, setSelectedValues] = (0, import_react.useState)([]);
51
+ const [error, setError] = (0, import_react.useState)("");
52
+ const filteredTimeSlots = timeSlots.filter(
53
+ (slot) => showUnavailable ? true : !slot.disabled
54
+ );
55
+ (0, import_react.useEffect)(() => {
56
+ if (defaultSelectFirst && filteredTimeSlots.length > 0 && selectedValues.length === 0) {
57
+ const firstAvailable = filteredTimeSlots.find((slot) => !slot.disabled);
58
+ if (firstAvailable) {
59
+ const value = firstAvailable.value;
60
+ setSelectedValues([value]);
61
+ onChange == null ? void 0 : onChange(multiple ? [value] : value);
62
+ }
63
+ }
64
+ }, [filteredTimeSlots, defaultSelectFirst, multiple, onChange]);
65
+ const renderTimeCard = (item) => {
66
+ const { time, remainingCount, disabled } = item;
67
+ return /* @__PURE__ */ import_react.default.createElement(
68
+ import_materials.PisellCard,
69
+ {
70
+ className: "time-resource-card",
71
+ bodyStyle: { padding: "12px" }
72
+ },
73
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "time-slot-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "time-text" }, time), /* @__PURE__ */ import_react.default.createElement("div", { className: "remaining-count" }, "剩余: ", remainingCount))
74
+ );
75
+ };
76
+ const handleChange = (0, import_react.useCallback)(
77
+ (value) => {
78
+ if (Array.isArray(value)) {
79
+ setSelectedValues(value);
80
+ setError(value.length === 0 ? "Please select a session time" : "");
81
+ } else {
82
+ setSelectedValues([value]);
83
+ setError("");
84
+ }
85
+ onChange == null ? void 0 : onChange(value);
86
+ },
87
+ [onChange]
88
+ );
89
+ const renderContent = () => {
90
+ if (filteredTimeSlots.length === 0) {
91
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, { description: "No dates are available" });
92
+ }
93
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, error && /* @__PURE__ */ import_react.default.createElement("div", { className: "time-resource-error" }, error), /* @__PURE__ */ import_react.default.createElement(
94
+ import_PisellCustomCheckboxGroup.default,
95
+ {
96
+ dataSource: filteredTimeSlots,
97
+ renderItem: renderTimeCard,
98
+ value: selectedValues,
99
+ onChange: handleChange,
100
+ isMultiple: multiple,
101
+ columns: 4,
102
+ horizontalGap: 16,
103
+ verticalGap: 16
104
+ }
105
+ ));
106
+ };
107
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `time-resource-selector ${className || ""}`, style }, /* @__PURE__ */ import_react.default.createElement(import_antd.Collapse, { defaultActiveKey: defaultExpanded ? ["1"] : [] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Collapse.Panel, { header: "选择时间段", key: "1" }, renderContent())));
108
+ };
109
+ var TimeResourceSelector_default = TimeResourceSelector;
@@ -0,0 +1,59 @@
1
+ .time-resource-selector {
2
+ .time-resource-card {
3
+ cursor: pointer;
4
+ transition: all 0.3s;
5
+
6
+ &:hover {
7
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
8
+ }
9
+ }
10
+
11
+ .time-slot-content {
12
+ display: flex;
13
+ flex-direction: column;
14
+ align-items: center;
15
+ justify-content: center;
16
+ min-height: 80px;
17
+
18
+ .time-text {
19
+ font-size: 16px;
20
+ font-weight: 500;
21
+ margin-bottom: 8px;
22
+ }
23
+
24
+ .remaining-count {
25
+ font-size: 14px;
26
+ color: #666;
27
+ }
28
+ }
29
+
30
+ // 选中状态
31
+ .pisell-checkbox-item-selected {
32
+ .time-resource-card {
33
+ border-color: #1890ff;
34
+ background: rgba(24, 144, 255, 0.1);
35
+ }
36
+ }
37
+
38
+ // 禁用状态
39
+ .pisell-checkbox-item-disabled {
40
+ .time-resource-card {
41
+ cursor: not-allowed;
42
+ opacity: 0.5;
43
+
44
+ &:hover {
45
+ box-shadow: none;
46
+ }
47
+ }
48
+ }
49
+
50
+ // 错误提示
51
+ .time-resource-error {
52
+ color: #ff4d4f;
53
+ padding: 8px 0;
54
+ text-align: center;
55
+ background-color: #fff2f0;
56
+ border-radius: 4px;
57
+ margin-bottom: 16px;
58
+ }
59
+ }
@@ -29,7 +29,6 @@
29
29
  color: var(--Gray-900, #101828);
30
30
 
31
31
  /* Display md/Semibold */
32
- font-family: Inter;
33
32
  font-size: 36px;
34
33
  font-style: normal;
35
34
  font-weight: 600;
@@ -0,0 +1,109 @@
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/collapse/index.tsx
30
+ var collapse_exports = {};
31
+ __export(collapse_exports, {
32
+ default: () => collapse_default
33
+ });
34
+ module.exports = __toCommonJS(collapse_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_styled_components = __toESM(require("styled-components"));
38
+ var import_index = require("./index.less");
39
+ var CustomCollapse = (0, import_styled_components.default)(import_antd.Collapse)`
40
+ &.custom-collapse {
41
+ background-color: ${(props) => props.panelBackground || "#ffffff"};
42
+ }
43
+
44
+ // .ant-collapse-item {
45
+ // background-color: ${(props) => props.panelBackground || "#ffffff"};
46
+ // margin-bottom: ${(props) => props.panelMarginBottom || "0"};
47
+ // border-radius: ${(props) => props.panelBorderRadius || "0"};
48
+ // }
49
+
50
+ // .pisell-lowcode-collapse-header {
51
+ // background-color: ${(props) => props.panelBackground || "#ffffff"};
52
+ // border-radius: ${(props) => props.panelBorderRadius || "0"} !important;
53
+ // }
54
+
55
+ .pisell-lowcode-collapse-content {
56
+ background-color: ${(props) => props.panelBackground || "#ffffff"};
57
+ }
58
+ `;
59
+ var Collapse = (props) => {
60
+ const {
61
+ panelBackground,
62
+ panelMarginBottom,
63
+ panelBorderRadius,
64
+ items,
65
+ showHeader,
66
+ headerColor,
67
+ headerFontSize,
68
+ expandIcon,
69
+ ...rest
70
+ } = props;
71
+ const panelStyle = {
72
+ marginBottom: panelMarginBottom,
73
+ background: panelBackground,
74
+ borderRadius: panelBorderRadius
75
+ };
76
+ const itemsMap = (0, import_react.useMemo)(() => {
77
+ return items == null ? void 0 : items.map((item) => {
78
+ return {
79
+ ...item,
80
+ label: showHeader ? /* @__PURE__ */ import_react.default.createElement(
81
+ "div",
82
+ {
83
+ style: {
84
+ color: headerColor,
85
+ fontSize: headerFontSize
86
+ }
87
+ },
88
+ item == null ? void 0 : item.label
89
+ ) : null,
90
+ children: item.children,
91
+ className: "custom-collapse-panel"
92
+ };
93
+ });
94
+ }, [items, headerColor, showHeader, headerFontSize]);
95
+ return /* @__PURE__ */ import_react.default.createElement(
96
+ CustomCollapse,
97
+ {
98
+ ...rest,
99
+ expandIcon: expandIcon ? () => expandIcon : void 0,
100
+ items: itemsMap,
101
+ className: "custom-collapse",
102
+ panelBackground,
103
+ panelMarginBottom,
104
+ panelBorderRadius
105
+ }
106
+ );
107
+ };
108
+ Collapse.Panel = import_antd.Collapse.Panel;
109
+ var collapse_default = Collapse;
File without changes
@@ -62,9 +62,13 @@ var DataSourceMenu = (0, import_react.forwardRef)(
62
62
  return null;
63
63
  }
64
64
  const _children = getShowChildren(item.children || []);
65
- if (_children == null ? void 0 : _children.length) {
65
+ if ((_children == null ? void 0 : _children.length) || item.isGroup) {
66
+ let CptMenu = import_pisellMenu.default.SubMenu;
67
+ if (item.type === "group") {
68
+ CptMenu = import_pisellMenu.default.ItemGroup;
69
+ }
66
70
  return /* @__PURE__ */ import_react.default.createElement(
67
- import_pisellMenu.default.SubMenu,
71
+ CptMenu,
68
72
  {
69
73
  key: item.key,
70
74
  title: translation(item.label),