@pisell/materials 3.2.31 → 3.3.0

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 (225) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +4 -4
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +147 -167
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +25 -39
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -39
  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/appVersionControl/index.d.ts +4 -0
  21. package/es/components/classicLayout/index.js +5 -4
  22. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +97 -0
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  27. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  28. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  30. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  31. package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
  32. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  33. package/es/components/date-picker/index.d.ts +0 -1
  34. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  35. package/es/components/drag-sort-tree/index.d.ts +4 -0
  36. package/es/components/icon/index.js +5 -5
  37. package/es/components/list/index.d.ts +0 -1
  38. package/es/components/list/index.js +6 -6
  39. package/es/components/login-and-register/index.d.ts +82 -0
  40. package/es/components/page/index.d.ts +0 -1
  41. package/es/components/pisell-config-provider/index.js +3 -1
  42. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  43. package/es/components/pisellCardList/index.d.ts +43 -0
  44. package/es/components/pisellCheckboxGroup/index.d.ts +34 -0
  45. package/es/components/pisellEmpty/index.d.ts +19 -0
  46. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  47. package/es/components/pisellInformationEntry/index.d.ts +31 -0
  48. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  49. package/es/components/pisellInput/index.d.ts +0 -1
  50. package/es/components/pisellText/components/Amount/index.js +1 -1
  51. package/es/components/pisellWalletPassCard/index.d.ts +55 -0
  52. package/es/components/productCard/components/Time/components/Like/index.js +16 -12
  53. package/es/components/productCard/components/Time/components/Like/index.less +25 -4
  54. package/es/components/productCard/components/Time/components/SelectHolder/index.js +54 -12
  55. package/es/components/productCard/components/Time/components/SelectHolder/index.less +28 -3
  56. package/es/components/productCard/components/Time/components/SelectResource/index.js +60 -12
  57. package/es/components/productCard/components/Time/components/SelectResource/index.less +20 -0
  58. package/es/components/productCard/components/Time/index.js +45 -22
  59. package/es/components/productCard/components/Time/index.less +1 -21
  60. package/es/components/productCard/index.js +4 -2
  61. package/es/components/productCard/locales.d.ts +9 -0
  62. package/es/components/productCard/locales.js +30 -3
  63. package/es/components/productCard/utils.js +43 -0
  64. package/es/components/qrcode/index.js +1 -1
  65. package/es/components/select-time/index.d.ts +0 -1
  66. package/es/components/sort/components/InlineMenu/index.js +1 -1
  67. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  68. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  69. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  70. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  71. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  72. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  73. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  74. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  75. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  76. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  77. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  78. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  79. package/es/components/table/Actions/index.d.ts +0 -1
  80. package/es/components/table/BasicTable/index.d.ts +0 -1
  81. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  82. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
  83. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  84. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  85. package/es/components/table/Gallery/index.d.ts +5 -0
  86. package/es/components/table/Header/Buttons/index.js +5 -5
  87. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  88. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  89. package/es/components/table/Table/SelectField/index.js +4 -4
  90. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  91. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  92. package/es/components/table/Table/fields/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  94. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  96. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  97. package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
  98. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  100. package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
  101. package/es/components/table/Table/index.d.ts +4 -0
  102. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  103. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  104. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  105. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  106. package/es/components/table/Table/utils.d.ts +161 -0
  107. package/es/components/table/View/index.d.ts +0 -1
  108. package/es/components/table/hooks/useMergeColumnSetting.js +2 -1
  109. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  110. package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
  111. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  112. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  113. package/es/components/table/types.d.ts +251 -0
  114. package/es/components/translation/index.js +10 -10
  115. package/es/components/translation/utils.js +5 -5
  116. package/es/components/versionModal/index.d.ts +23 -0
  117. package/es/components/versionSelect/index.d.ts +0 -1
  118. package/es/hooks/useResponsive.js +2 -2
  119. package/es/locales/en-US.d.ts +266 -0
  120. package/es/locales/zh-CN.d.ts +261 -0
  121. package/es/locales/zh-TW.d.ts +261 -0
  122. package/es/utils/hoc.js +1 -1
  123. package/es/utils/miniRedux.js +9 -8
  124. package/lib/components/appVersionControl/index.d.ts +4 -0
  125. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  126. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  127. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  128. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +97 -0
  129. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  130. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  131. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  132. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  133. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  134. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
  135. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  136. package/lib/components/date-picker/index.d.ts +0 -1
  137. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  138. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  139. package/lib/components/list/index.d.ts +0 -1
  140. package/lib/components/login-and-register/index.d.ts +82 -0
  141. package/lib/components/lowCodePage/index.js +2 -1
  142. package/lib/components/page/index.d.ts +0 -1
  143. package/lib/components/pisell-config-provider/index.js +3 -1
  144. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  145. package/lib/components/pisellCardList/index.d.ts +43 -0
  146. package/lib/components/pisellCheckboxGroup/index.d.ts +34 -0
  147. package/lib/components/pisellEmpty/index.d.ts +19 -0
  148. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  149. package/lib/components/pisellInformationEntry/index.d.ts +31 -0
  150. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  151. package/lib/components/pisellInput/index.d.ts +0 -1
  152. package/lib/components/pisellText/components/Amount/index.js +2 -1
  153. package/lib/components/pisellWalletPassCard/index.d.ts +55 -0
  154. package/lib/components/productCard/components/Time/components/Like/index.js +21 -13
  155. package/lib/components/productCard/components/Time/components/Like/index.less +25 -4
  156. package/lib/components/productCard/components/Time/components/SelectHolder/index.js +90 -29
  157. package/lib/components/productCard/components/Time/components/SelectHolder/index.less +28 -3
  158. package/lib/components/productCard/components/Time/components/SelectResource/index.js +71 -12
  159. package/lib/components/productCard/components/Time/components/SelectResource/index.less +20 -0
  160. package/lib/components/productCard/components/Time/index.js +61 -27
  161. package/lib/components/productCard/components/Time/index.less +1 -21
  162. package/lib/components/productCard/index.js +4 -2
  163. package/lib/components/productCard/locales.d.ts +9 -0
  164. package/lib/components/productCard/locales.js +12 -3
  165. package/lib/components/productCard/utils.js +35 -0
  166. package/lib/components/select-time/index.d.ts +0 -1
  167. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  168. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  169. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  170. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  171. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  172. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  173. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  174. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  175. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  176. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  177. package/lib/components/table/Actions/index.d.ts +0 -1
  178. package/lib/components/table/BasicTable/index.d.ts +0 -1
  179. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  180. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  181. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  182. package/lib/components/table/Gallery/index.d.ts +5 -0
  183. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  184. package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
  185. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  186. package/lib/components/table/Table/fields/index.d.ts +0 -1
  187. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  188. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
  189. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  190. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  191. package/lib/components/table/Table/fields/utils/index.js +2 -1
  192. package/lib/components/table/Table/index.d.ts +4 -0
  193. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  194. package/lib/components/table/Table/utils.d.ts +161 -0
  195. package/lib/components/table/View/index.d.ts +0 -1
  196. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  197. package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
  198. package/lib/components/table/types.d.ts +251 -0
  199. package/lib/components/versionModal/index.d.ts +23 -0
  200. package/lib/components/versionSelect/index.d.ts +0 -1
  201. package/lib/hooks/useResponsive.js +6 -3
  202. package/lib/locales/en-US.d.ts +266 -0
  203. package/lib/locales/zh-CN.d.ts +261 -0
  204. package/lib/locales/zh-TW.d.ts +261 -0
  205. package/package.json +1 -1
  206. package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  207. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  208. package/es/components/productCard/components/MultiDay/index.d.ts +0 -3
  209. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
  210. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -9
  211. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  212. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -2
  213. package/es/components/productCard/components/Time/index.d.ts +0 -3
  214. package/es/components/productCard/types.d.ts +0 -83
  215. package/es/components/tabs/index.d.ts +0 -16
  216. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  217. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  218. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -3
  219. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
  220. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -9
  221. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  222. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -2
  223. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  224. package/lib/components/productCard/types.d.ts +0 -83
  225. package/lib/components/tabs/index.d.ts +0 -16
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 3.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L8 6.414V20a1 1 0 1 1-2 0V6.414L3.707 8.707a1 1 0 0 1-1.414-1.414l4-4ZM16 17.586V4a1 1 0 1 1 2 0v13.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L16 17.586Z"/></svg>
@@ -1,9 +1,9 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ 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; }
3
+ 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; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ 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); }
7
7
  import { DndContext, PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
8
8
  import { SortableContext, arrayMove, useSortable } from "@dnd-kit/sortable";
9
9
  import { CSS } from "@dnd-kit/utilities";
@@ -41,7 +41,7 @@ export default function Sortable(_ref) {
41
41
  var overIndex = list === null || list === void 0 ? void 0 : list.findIndex(function (i) {
42
42
  return getRowKey(i) === (over === null || over === void 0 ? void 0 : over.id);
43
43
  });
44
- onChange === null || onChange === void 0 || onChange(arrayMove(list, activeIndex, overIndex));
44
+ onChange === null || onChange === void 0 ? void 0 : onChange(arrayMove(list, activeIndex, overIndex));
45
45
  }
46
46
  },
47
47
  sensors: sensors
@@ -0,0 +1,4 @@
1
+ import { AppVersionControlProps } from './types';
2
+ import './index.less';
3
+ declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
+ export default AppVersionControl;
@@ -1,12 +1,13 @@
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 _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; }
3
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
- 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); }
3
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
4
+ 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); }
5
5
  import React from "react";
6
6
  import classNames from "classnames";
7
7
  import "./index.less";
8
8
  var prefix = "pisell-lowcode-";
9
9
  var ClassicLayout = function ClassicLayout(props) {
10
+ var _classNames2;
10
11
  var header = props.header,
11
12
  content = props.content,
12
13
  footer = props.footer,
@@ -21,7 +22,7 @@ var ClassicLayout = function ClassicLayout(props) {
21
22
  }, /*#__PURE__*/React.createElement("header", {
22
23
  className: classNames(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-header"), fixedHeader))
23
24
  }, header), content, /*#__PURE__*/React.createElement("footer", {
24
- className: classNames(_defineProperty(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-footer"), fixedFooter), footerClassName, footerClassName)),
25
+ className: classNames((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "claseic-layout-fixed-footer"), fixedFooter), _defineProperty(_classNames2, footerClassName, footerClassName), _classNames2)),
25
26
  style: footerStyle
26
27
  }, footer));
27
28
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItem: (props: any) => JSX.Element;
3
2
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "custom" | "default" | "api" | undefined;
46
+ optionSourceType?: "default" | "custom" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -0,0 +1,38 @@
1
+ import { Drawer } from 'antd';
2
+ import { OperationItem } from '../type';
3
+ declare const useDrawerState: (operationContent?: {
4
+ [key: string]: import("react").ReactNode;
5
+ } | undefined) => {
6
+ drawerVisible: boolean;
7
+ setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
8
+ openDrawer: (item: OperationItem) => void;
9
+ closeDrawer: () => void;
10
+ drawerContent: import("react").ReactNode;
11
+ Container: {
12
+ (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
13
+ confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
14
+ destroy: () => void;
15
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
16
+ };
17
+ info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
18
+ destroy: () => void;
19
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ };
21
+ error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
22
+ destroy: () => void;
23
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
24
+ };
25
+ warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
26
+ warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
27
+ destroy: () => void;
28
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
29
+ };
30
+ success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
31
+ destroy: () => void;
32
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
+ };
34
+ Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
35
+ } | typeof Drawer;
36
+ containerProps: {};
37
+ };
38
+ export default useDrawerState;
@@ -0,0 +1,97 @@
1
+ import React from 'react';
2
+ import { DataSourceTableProps } from '../type';
3
+ import { OperationItem } from '../type';
4
+ interface UseTablePropsProps {
5
+ data: any;
6
+ originProps: DataSourceTableProps;
7
+ openDrawer: (type: OperationItem) => void;
8
+ closeDrawer: () => void;
9
+ refreshData: () => void;
10
+ handleFilterChange: (changedFields: any, allFields: any) => void;
11
+ tableRef: any;
12
+ }
13
+ /**
14
+ * 处理table的props
15
+ * 转换title
16
+ * @param props
17
+ * @returns
18
+ */
19
+ declare const useTableProps: (props: UseTablePropsProps) => {
20
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
21
+ pagination: {
22
+ total: number;
23
+ current: number;
24
+ pageSize: number;
25
+ size: string;
26
+ showSizeChanger: boolean;
27
+ };
28
+ columns: import("./useColumns").Column[];
29
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
30
+ buttons: any[] | null;
31
+ filter: JSX.Element | null;
32
+ onRow: (record: any) => any;
33
+ actionButtons: any[] | null;
34
+ titleButtons?: {
35
+ show: boolean;
36
+ maxCount: number;
37
+ items: OperationItem[];
38
+ } | undefined;
39
+ tableButtons?: {
40
+ show: boolean;
41
+ maxCount: number;
42
+ items: OperationItem[];
43
+ } | undefined;
44
+ operation?: {
45
+ show: boolean;
46
+ title: string; /**
47
+ * 处理table的props
48
+ * 转换title
49
+ * @param props
50
+ * @returns
51
+ */
52
+ width: number;
53
+ align: "center" | "left" | "right";
54
+ fixed: false | "left" | "right";
55
+ type: "button" | "link";
56
+ items: OperationItem[];
57
+ } | undefined;
58
+ operationContent?: {
59
+ [key: string]: React.ReactNode;
60
+ } | undefined;
61
+ dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
62
+ search?: {
63
+ show: boolean;
64
+ placeholder: string;
65
+ } | undefined;
66
+ __designMode: string;
67
+ componentId: string;
68
+ clickToDetail?: {
69
+ show: boolean;
70
+ useCustomAction: boolean;
71
+ actionType: string;
72
+ openMode: "modal" | "drawer";
73
+ openContentSize: "small" | "large" | "middle";
74
+ openTitle: string;
75
+ key: string;
76
+ } | undefined;
77
+ filterBy?: Record<string, any> | undefined;
78
+ sortBy: string;
79
+ tabs?: {
80
+ show: boolean;
81
+ type: string;
82
+ items: {
83
+ name: string;
84
+ filterBy: Record<string, any>;
85
+ sortBy: string;
86
+ }[];
87
+ } | undefined;
88
+ onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
89
+ extraParams?: {
90
+ list?: Record<string, any> | undefined;
91
+ get?: Record<string, any> | undefined;
92
+ update?: Record<string, any> | undefined;
93
+ create?: Record<string, any> | undefined;
94
+ destroy?: Record<string, any> | undefined;
95
+ } | undefined;
96
+ };
97
+ export default useTableProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceTableProps } from '../type';
3
2
  declare type Params = {
4
3
  pagination?: {
@@ -0,0 +1,78 @@
1
+ /// <reference types="react" />
2
+ import { ColumnType } from 'antd/es/table';
3
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
4
+ export declare type OperationItem = {
5
+ label?: string;
6
+ openMode: 'modal' | 'drawer' | 'custom';
7
+ openContentSize: 'small' | 'middle' | 'large';
8
+ openTitle: string;
9
+ actionType: 'detail' | 'edit' | 'delete' | 'custom';
10
+ key: string;
11
+ buttonProps?: any;
12
+ onClick?: (record: any) => void;
13
+ };
14
+ export interface DataSourceTableProps {
15
+ title?: string | React.ReactNode | (() => React.ReactNode);
16
+ subTitle?: string | React.ReactNode | (() => React.ReactNode);
17
+ titleButtons?: {
18
+ show: boolean;
19
+ maxCount: number;
20
+ items: OperationItem[];
21
+ };
22
+ tableButtons?: {
23
+ show: boolean;
24
+ maxCount: number;
25
+ items: OperationItem[];
26
+ };
27
+ buttons?: any[];
28
+ operation?: {
29
+ show: boolean;
30
+ title: string;
31
+ width: number;
32
+ align: 'left' | 'center' | 'right';
33
+ fixed: 'left' | 'right' | false;
34
+ type: 'link' | 'button';
35
+ items: OperationItem[];
36
+ };
37
+ operationContent?: {
38
+ [key: string]: React.ReactNode;
39
+ };
40
+ dataSource: DataSourceType;
41
+ columns: ColumnType<any>[];
42
+ filter: any;
43
+ search?: {
44
+ show: boolean;
45
+ placeholder: string;
46
+ };
47
+ __designMode: string;
48
+ componentId: string;
49
+ clickToDetail?: {
50
+ show: boolean;
51
+ useCustomAction: boolean;
52
+ actionType: string;
53
+ openMode: 'modal' | 'drawer';
54
+ openContentSize: 'small' | 'middle' | 'large';
55
+ openTitle: string;
56
+ key: string;
57
+ };
58
+ onRow?: any;
59
+ filterBy?: Record<string, any>;
60
+ sortBy: string;
61
+ tabs?: {
62
+ show: boolean;
63
+ type: string;
64
+ items: {
65
+ name: string;
66
+ filterBy: Record<string, any>;
67
+ sortBy: string;
68
+ }[];
69
+ };
70
+ onValuesChange?: (changedValues: any, values: any) => void;
71
+ extraParams?: {
72
+ list?: Record<string, any>;
73
+ get?: Record<string, any>;
74
+ update?: Record<string, any>;
75
+ create?: Record<string, any>;
76
+ destroy?: Record<string, any>;
77
+ };
78
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
- optionSourceType?: "custom" | "default" | "api" | undefined;
3
+ optionSourceType?: "default" | "custom" | "api" | undefined;
5
4
  labelField: string;
6
5
  valueField: string;
7
6
  extraParams?: Record<string, any> | undefined;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -60,11 +60,7 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
64
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
- } & {
66
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
68
64
  JSON: import("react").FC<any>;
69
65
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
66
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -85,6 +81,10 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
85
81
  fieldKey?: string | undefined;
86
82
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
87
83
  }) | (import("react").FC<{}> & {
84
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
85
+ } & {
86
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
87
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
88
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
89
  } & {
90
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -98,5 +98,5 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
98
98
  dataSource?: any;
99
99
  }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
100
  onChange: (value: string) => void;
101
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => JSX.Element;
3
2
  export default DatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ValueProps, SortType } from '../types';
4
3
  declare type IdType = string | number;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ import { SortType } from './types';
3
+ declare const DragSortTree: (props: SortType) => JSX.Element;
4
+ export default DragSortTree;
@@ -1,11 +1,11 @@
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
  var _excluded = ["type", "size", "color"];
3
3
  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); }
4
- 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; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function 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; }
5
+ 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; }
6
6
  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; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
- 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); }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ 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); }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  import React, { forwardRef } from 'react';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -1,8 +1,8 @@
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
  var _excluded = ["className", "paginationType", "pagination", "footer", "header", "listHeight", "loadMoreData", "arrow"];
3
3
  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; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
- 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); }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
+ 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); }
6
6
  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); }
7
7
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
8
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -47,7 +47,7 @@ var List = function List(props) {
47
47
  var position = useScroll(listRef);
48
48
  var isShowDownArrow = useMemo(function () {
49
49
  var _listRef$current, _listRef$current2;
50
- return arrow && (listRef === null || listRef === void 0 ? void 0 : listRef.current) && ((position === null || position === void 0 ? void 0 : position.top) || 0) + (listRef === null || listRef === void 0 || (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.clientHeight) < ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.scrollHeight);
50
+ return arrow && (listRef === null || listRef === void 0 ? void 0 : listRef.current) && ((position === null || position === void 0 ? void 0 : position.top) || 0) + (listRef === null || listRef === void 0 ? void 0 : (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.clientHeight) < ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.scrollHeight);
51
51
  }, [position, arrow]);
52
52
  var isShowUpArrow = useMemo(function () {
53
53
  return arrow && ((position === null || position === void 0 ? void 0 : position.top) || 0) > 0;
@@ -90,13 +90,13 @@ var List = function List(props) {
90
90
  }),
91
91
  scrollableTarget: scrollListId
92
92
  }, /*#__PURE__*/React.createElement(AntList, _extends({}, others, {
93
- className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 || (_props$grid = props.grid) === null || _props$grid === void 0 ? void 0 : _props$grid.oneLine))
93
+ className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 ? void 0 : (_props$grid = props.grid) === null || _props$grid === void 0 ? void 0 : _props$grid.oneLine))
94
94
  }))), isShowDownArrow && downArrow), _footer && /*#__PURE__*/React.createElement("div", {
95
95
  className: "".concat(prefix, "scroll-footer-wrap")
96
96
  }, _footer));
97
97
  }
98
98
  return /*#__PURE__*/React.createElement(AntList, _extends({}, props, {
99
- className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 || (_props$grid2 = props.grid) === null || _props$grid2 === void 0 ? void 0 : _props$grid2.oneLine))
99
+ className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 ? void 0 : (_props$grid2 = props.grid) === null || _props$grid2 === void 0 ? void 0 : _props$grid2.oneLine))
100
100
  }));
101
101
  }, [props, _footer, isShowDownArrow, isShowUpArrow, scrollListId]);
102
102
  return list;
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ /**
4
+ * loginAndRegister组件的属性接口
5
+ */
6
+ export interface loginAndRegisterProps {
7
+ /** Logo相关配置 */
8
+ showLogo?: boolean;
9
+ logo?: string;
10
+ logoPosition?: 'left' | 'center' | 'right';
11
+ logoSize?: {
12
+ width?: number;
13
+ height?: number;
14
+ };
15
+ /** 标题相关配置 */
16
+ title?: string;
17
+ showTitle?: boolean;
18
+ titleAlign?: 'left' | 'center' | 'right';
19
+ /** 副标题相关配置 */
20
+ subtitle?: string;
21
+ showSubtitle?: boolean;
22
+ subtitleAlign?: 'left' | 'center' | 'right';
23
+ /** 登录方式配置 */
24
+ loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
+ defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
+ /** 表单配置 */
27
+ emailLabel?: string;
28
+ passwordLabel?: string;
29
+ emailPlaceholder?: string;
30
+ passwordPlaceholder?: string;
31
+ emailRules?: any[];
32
+ buttonText?: string;
33
+ rememberMeText?: string;
34
+ forgotPasswordText?: string;
35
+ showRememberMe?: boolean;
36
+ showForgotPassword?: boolean;
37
+ /** 社交登录配置 */
38
+ socialLoginTexts?: {
39
+ google?: string;
40
+ facebook?: string;
41
+ apple?: string;
42
+ };
43
+ /** 底部配置 */
44
+ showFooter?: boolean;
45
+ showSignUp?: boolean;
46
+ signUpText?: string;
47
+ signUpLink?: string;
48
+ signUpPosition?: 'left' | 'center' | 'right';
49
+ otherLinks?: Array<{
50
+ text: string;
51
+ url: string;
52
+ }>;
53
+ otherLinksPosition?: 'left' | 'center' | 'right';
54
+ /** 登录/注册切换配置 */
55
+ showTabs?: boolean;
56
+ loginTabText?: string;
57
+ registerTabText?: string;
58
+ /** 注册表单配置 */
59
+ registerEmailPlaceholder?: string;
60
+ registerPasswordPlaceholder?: string;
61
+ registerButtonText?: string;
62
+ /** 事件回调 */
63
+ onLogin?: (values: {
64
+ email: string;
65
+ loginMethod: string;
66
+ }) => void;
67
+ onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
+ onSignUp?: () => void;
69
+ onRegister?: (values: {
70
+ email: string;
71
+ password: string;
72
+ }) => void;
73
+ /** 新增背景图片属性 */
74
+ backgroundImage?: string;
75
+ }
76
+ /**
77
+ * Saas登录组件
78
+ * @param props - 组件属性
79
+ * @returns React组件
80
+ */
81
+ declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
+ export default loginAndRegister;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -25,8 +25,10 @@ var PisellConfigProvider = function PisellConfigProvider(props) {
25
25
  platform: propsPlatform || platformMap[platform],
26
26
  // 设置符号,优先使用父组件传入的,如果没有则从主项目获取
27
27
  symbol: propsSymbol || (getSymbolic === null || getSymbolic === void 0 ? void 0 : getSymbolic()) || '',
28
- locale: locale || 'en'
28
+ locale: locale || 'en',
29
+ getSymbolic: getSymbolic
29
30
  };
31
+ console.log(config, 'config');
30
32
  var staticFunction = App.useApp();
31
33
  setMessage(staticFunction.message);
32
34
  setModal(staticFunction.modal);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellAdjustPriceProps {
4
3
  value?: number;