@pisell/materials 3.3.39 → 3.3.41

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 (254) 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 +2 -2
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.js +24 -24
  8. package/build/lowcode/view.js +30 -30
  9. package/es/components/DragSortList/index.js +6 -6
  10. package/es/components/Pagination/index.d.ts +1 -1
  11. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  12. package/es/components/badge/index.d.ts +7 -0
  13. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  14. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  15. package/es/components/cardMetricItem/index.d.ts +12 -0
  16. package/es/components/cardPro/index.d.ts +3 -0
  17. package/es/components/classicLayout/index.js +4 -5
  18. package/es/components/collapse/index.d.ts +15 -0
  19. package/es/components/cropPhoto/index.d.ts +3 -0
  20. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  21. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  22. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  23. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  24. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  25. package/es/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
  26. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  27. package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  28. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  29. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  30. package/es/components/dataSourceComponents/fields/index.d.ts +2 -2
  31. package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
  32. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  33. package/es/components/date-picker/datePickerCpt.d.ts +8 -0
  34. package/es/components/date-picker/index.d.ts +1 -0
  35. package/es/components/div/index.d.ts +19 -0
  36. package/es/components/icon/index.js +5 -5
  37. package/es/components/iconfont/index.d.ts +8 -0
  38. package/es/components/list/index.js +6 -6
  39. package/es/components/page/index.d.ts +6 -0
  40. package/es/components/pisellAnchor/index.d.ts +23 -0
  41. package/es/components/pisellAvatar/index.d.ts +19 -0
  42. package/es/components/pisellCard/index.d.ts +19 -0
  43. package/es/components/pisellCardList/index.d.ts +73 -0
  44. package/es/components/pisellCheckboxGroup/index.d.ts +36 -0
  45. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  46. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  47. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  48. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  49. package/es/components/pisellDraggable/index.d.ts +35 -0
  50. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  51. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  52. package/es/components/pisellDropSort/types.d.ts +58 -0
  53. package/es/components/pisellDropdown/index.d.ts +20 -0
  54. package/es/components/pisellGoodPassCard/index.d.ts +49 -0
  55. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  56. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  57. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  58. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  59. package/es/components/pisellList01/index.d.ts +17 -0
  60. package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
  61. package/es/components/pisellMenu/types.d.ts +27 -0
  62. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  63. package/es/components/pisellNavigationMenu/types.d.ts +85 -0
  64. package/es/components/pisellQrcode/index.d.ts +10 -0
  65. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  66. package/es/components/pisellStatisticList/index.d.ts +21 -0
  67. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  68. package/es/components/pisellWalletPassCard/index.d.ts +85 -0
  69. package/es/components/productCard/components/Action/index.d.ts +3 -0
  70. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  71. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  72. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  73. package/es/components/productCard/components/Header/index.d.ts +3 -0
  74. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  75. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  76. package/es/components/productCard/components/Note/index.d.ts +3 -0
  77. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  78. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  79. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  80. package/es/components/productCard/components/Packages/index.d.ts +3 -0
  81. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  82. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  83. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  84. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  85. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  86. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  87. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  88. package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
  89. package/es/components/productCard/index.d.ts +5 -0
  90. package/es/components/productCard/utils.d.ts +31 -0
  91. package/es/components/productCard/utils.js +8 -6
  92. package/es/components/qrcode/index.js +1 -1
  93. package/es/components/record-view/index.d.ts +37 -0
  94. package/es/components/section-footers/index.d.ts +9 -0
  95. package/es/components/sort/components/InlineMenu/index.js +1 -1
  96. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  97. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  98. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  99. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  100. package/es/components/table/Header/Buttons/index.js +5 -5
  101. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  102. package/es/components/table/Table/SelectField/index.js +4 -4
  103. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  104. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  105. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  106. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  107. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  108. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  109. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  110. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  111. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  112. package/es/components/table/Table/utils.d.ts +1 -1
  113. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  114. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  115. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  116. package/es/components/tabs/index.d.ts +16 -0
  117. package/es/components/translation/index.d.ts +14 -0
  118. package/es/components/translation/utils.js +5 -5
  119. package/es/components/walletCard/Guest/index.d.ts +3 -0
  120. package/es/components/walletCard/Guide/index.d.ts +3 -0
  121. package/es/hooks/useResponsive.js +2 -2
  122. package/es/index.d.ts +141 -0
  123. package/es/locales/index.d.ts +1 -0
  124. package/es/utils/hoc.js +1 -1
  125. package/es/utils/index.d.ts +4 -0
  126. package/es/utils/miniRedux.js +8 -9
  127. package/lib/components/Pagination/index.d.ts +1 -1
  128. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  129. package/lib/components/badge/index.d.ts +7 -0
  130. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  131. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  132. package/lib/components/cardMetricItem/index.d.ts +12 -0
  133. package/lib/components/cardPro/index.d.ts +3 -0
  134. package/lib/components/collapse/index.d.ts +15 -0
  135. package/lib/components/cropPhoto/index.d.ts +3 -0
  136. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  137. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  138. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  139. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  140. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  141. package/lib/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
  142. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  143. package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  144. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  145. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  146. package/lib/components/dataSourceComponents/fields/index.d.ts +2 -2
  147. package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
  148. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  149. package/lib/components/date-picker/datePickerCpt.d.ts +8 -0
  150. package/lib/components/date-picker/index.d.ts +1 -0
  151. package/lib/components/div/index.d.ts +19 -0
  152. package/lib/components/iconfont/index.d.ts +8 -0
  153. package/lib/components/lowCodePage/index.js +1 -2
  154. package/lib/components/page/index.d.ts +6 -0
  155. package/lib/components/pisellAnchor/index.d.ts +23 -0
  156. package/lib/components/pisellAvatar/index.d.ts +19 -0
  157. package/lib/components/pisellCard/index.d.ts +19 -0
  158. package/lib/components/pisellCardList/index.d.ts +73 -0
  159. package/lib/components/pisellCheckboxGroup/index.d.ts +36 -0
  160. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  161. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  162. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  163. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  164. package/lib/components/pisellDraggable/index.d.ts +35 -0
  165. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  166. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  167. package/lib/components/pisellDropSort/types.d.ts +58 -0
  168. package/lib/components/pisellDropdown/index.d.ts +20 -0
  169. package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
  170. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  171. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  172. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  173. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  174. package/lib/components/pisellList01/index.d.ts +17 -0
  175. package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
  176. package/lib/components/pisellMenu/types.d.ts +27 -0
  177. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  178. package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
  179. package/lib/components/pisellQrcode/index.d.ts +10 -0
  180. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  181. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  182. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  183. package/lib/components/pisellWalletPassCard/index.d.ts +85 -0
  184. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  185. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  186. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  187. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  188. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  189. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  190. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  191. package/lib/components/productCard/components/Note/index.d.ts +3 -0
  192. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  193. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  194. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  195. package/lib/components/productCard/components/Packages/index.d.ts +3 -0
  196. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  197. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  198. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  199. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  200. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  201. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  202. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  203. package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
  204. package/lib/components/productCard/index.d.ts +5 -0
  205. package/lib/components/productCard/utils.d.ts +31 -0
  206. package/lib/components/productCard/utils.js +7 -6
  207. package/lib/components/record-view/index.d.ts +37 -0
  208. package/lib/components/section-footers/index.d.ts +9 -0
  209. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  210. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  211. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  212. package/lib/components/table/Table/fields/utils/index.js +1 -2
  213. package/lib/components/table/Table/utils.d.ts +1 -1
  214. package/lib/components/tabs/index.d.ts +16 -0
  215. package/lib/components/translation/index.d.ts +14 -0
  216. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  217. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  218. package/lib/hooks/useResponsive.js +3 -6
  219. package/lib/index.d.ts +141 -0
  220. package/lib/locales/index.d.ts +1 -0
  221. package/lib/utils/index.d.ts +4 -0
  222. package/package.json +3 -3
  223. package/dist/umd/materials.min.css +0 -1
  224. package/dist/umd/materials.min.js +0 -1
  225. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  226. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  227. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  228. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  229. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  230. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  231. package/es/components/appVersionControl/index.d.ts +0 -4
  232. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  233. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  234. package/es/components/drag-sort-tree/index.d.ts +0 -4
  235. package/es/components/pisellAdjustPrice/index.d.ts +0 -9
  236. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  237. package/es/components/table/Table/index.d.ts +0 -4
  238. package/es/components/table/types.d.ts +0 -251
  239. package/es/components/versionModal/index.d.ts +0 -23
  240. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
  241. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  242. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  243. package/lib/components/appVersionControl/index.d.ts +0 -4
  244. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  245. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  246. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  247. package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
  248. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  249. package/lib/components/table/Table/index.d.ts +0 -4
  250. package/lib/components/table/types.d.ts +0 -251
  251. package/lib/components/versionModal/index.d.ts +0 -23
  252. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
  253. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  254. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
@@ -1,9 +1,9 @@
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; }
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; }
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(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); }
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); }
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 ? void 0 : onChange(arrayMove(list, activeIndex, overIndex));
44
+ onChange === null || onChange === void 0 || onChange(arrayMove(list, activeIndex, overIndex));
45
45
  }
46
46
  },
47
47
  sensors: sensors
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
5
5
  className: string;
6
6
  defaultCurrent: number;
7
7
  showTotal: (total: number, range: [number, number]) => string;
8
- itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
8
+ itemRender: (page: number, type: "page" | "next" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
9
9
  responsive: boolean;
10
10
  size: string;
11
11
  };
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface TimeSlot {
4
+ value: string;
5
+ label: string;
6
+ time: string;
7
+ remainingCount: number;
8
+ disabled?: boolean;
9
+ }
10
+ export interface TimeResourceSelectorProps {
11
+ timeSlots?: TimeSlot[];
12
+ multiple?: boolean;
13
+ showUnavailable?: boolean;
14
+ defaultExpanded?: boolean;
15
+ defaultSelectFirst?: boolean;
16
+ onChange?: (values: string | string[]) => void;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
21
+ export default TimeResourceSelector;
@@ -0,0 +1,7 @@
1
+ import { BadgeProps as OriginalBadgeprops } from 'antd';
2
+ import './index.less';
3
+ export interface Badgeprops extends OriginalBadgeprops {
4
+ styleType: 'default' | 'warning';
5
+ }
6
+ declare const Badge: (props: any) => JSX.Element;
7
+ export default Badge;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ButtonGroupListItemProps } from './../buttonGroupPreview';
3
+ interface ButtonGroupEditProps {
4
+ buttonList: ButtonGroupListItemProps[];
5
+ buttonGroupList: ButtonGroupListItemProps[][];
6
+ }
7
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupEditProps & React.RefAttributes<any>>>;
8
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { MenuProps, ButtonProps } from 'antd';
3
+ export interface ButtonGroupListItemProps {
4
+ id?: string;
5
+ isMore?: boolean;
6
+ menuData?: MenuProps['items'];
7
+ buttonProps?: ButtonProps;
8
+ }
9
+ interface ButtonConfigProps {
10
+ [id: string]: ButtonGroupListItemProps;
11
+ }
12
+ export declare type ButtonGroupListProps = ButtonGroupListItemProps[][];
13
+ interface ButtonGroupPreviewProps {
14
+ buttonConfig?: ButtonConfigProps;
15
+ buttonGroupList?: ButtonGroupListProps;
16
+ updateButtonProps?: ButtonGroupListItemProps;
17
+ }
18
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupPreviewProps & React.RefAttributes<any>>>;
19
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface PisellStatisticProps {
4
+ title: string;
5
+ number: string | number;
6
+ hint?: React.ReactNode;
7
+ tags?: React.ReactNode;
8
+ showCurrencySymbol?: boolean;
9
+ style?: any;
10
+ }
11
+ declare const CardMetricItem: (props: PisellStatisticProps) => JSX.Element;
12
+ export default CardMetricItem;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -1,13 +1,12 @@
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); }
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
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(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); }
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); }
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;
11
10
  var header = props.header,
12
11
  content = props.content,
13
12
  footer = props.footer,
@@ -22,7 +21,7 @@ var ClassicLayout = function ClassicLayout(props) {
22
21
  }, /*#__PURE__*/React.createElement("header", {
23
22
  className: classNames(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-header"), fixedHeader))
24
23
  }, header), content, /*#__PURE__*/React.createElement("footer", {
25
- className: classNames((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "claseic-layout-fixed-footer"), fixedFooter), _defineProperty(_classNames2, footerClassName, footerClassName), _classNames2)),
24
+ className: classNames(_defineProperty(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-footer"), fixedFooter), footerClassName, footerClassName)),
26
25
  style: footerStyle
27
26
  }, footer));
28
27
  };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapseProps {
4
+ panelBackground?: string;
5
+ panelMarginBottom?: string | 0;
6
+ panelBorderRadius?: string | 0;
7
+ items: any[];
8
+ showHeader?: boolean;
9
+ headerColor?: string | '#101828';
10
+ headerFontSize?: string | 14;
11
+ expandIcon?: any;
12
+ [key: string]: any;
13
+ }
14
+ declare const Collapse: React.FC<CollapseProps>;
15
+ export default Collapse;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CropPhoto: React.FC;
3
+ export default CropPhoto;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PisellMenuProps } from '../../pisellMenu/types';
3
+ /**
4
+ * @title: 数据源表单组件
5
+ * @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
6
+ */
7
+ declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
8
+ export default DataSourceMenu;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PisellMenuProps } from '../../pisellMenu/types';
3
+ /**
4
+ * @title: 数据源表单组件
5
+ * @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
6
+ */
7
+ declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
8
+ export default DataSourceMenu;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 获取nocobase数据列表
3
+ */
4
+ export declare const getCountryDataList: () => Promise<any>;
5
+ export interface Country {
6
+ id: number;
7
+ name: {
8
+ en: string;
9
+ "zh-CN": string;
10
+ "zh-HK": string;
11
+ original: string;
12
+ };
13
+ code: string;
14
+ calling_code: string;
15
+ currency_code: string;
16
+ sort: number;
17
+ status: string;
18
+ created_at: string;
19
+ updated_at: string;
20
+ prefix: string;
21
+ }
22
+ export declare const useCountries: () => {
23
+ data: Country[];
24
+ };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { UploadProps } from './type';
3
+ import './index.less';
4
+ declare const BaseUpload: React.FC<UploadProps>;
5
+ export default BaseUpload;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { UploadProps } from './type';
3
+ declare const UploadWithMode: React.FC<UploadProps & import("../../dataSourceForm/utils").WithModeProps>;
4
+ export default UploadWithMode;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 获取nocobase媒体数据列表
3
+ */
4
+ export declare const getMediaTypeList: () => Promise<any>;
5
+ export interface MediaType {
6
+ id: number;
7
+ name: string;
8
+ maxsize: number;
9
+ }
10
+ export declare const useMediaConfig: (mediaConfig?: any) => {
11
+ data: {
12
+ upload_onetime_limit: any;
13
+ upload_maxsize: any;
14
+ };
15
+ };
16
+ export declare const useMediaTypes: () => {
17
+ data: MediaType[];
18
+ getExtensionsByIds: (ids: number[]) => string[];
19
+ getMaxSizeByIds: (ids: number[]) => Record<number, number>;
20
+ };
@@ -0,0 +1,56 @@
1
+ import { RcFile } from 'antd/es/upload';
2
+ export declare const filetypes: Record<string, any>;
3
+ /**
4
+ * @Title: 获取 阿里云 Signature
5
+ * @Describe:
6
+ * @Author: Wzw
7
+ */
8
+ export declare const getPolicy: () => Promise<any>;
9
+ export declare const getPolicyFile: () => Promise<any>;
10
+ /**
11
+ * @Title: 获取图片尺寸
12
+ * @Describe:
13
+ * @Author: Wzw
14
+ * @param {*} async
15
+ */
16
+ export declare const getImageWidth: (file: any) => Promise<{
17
+ width: number;
18
+ height: number;
19
+ }>;
20
+ /**
21
+ * @Title: 重新生成文件名
22
+ * @Describe:
23
+ * @Author: Wzw
24
+ * @param {string} file
25
+ */
26
+ export declare const formatFileName: (file?: any) => Promise<string>;
27
+ export declare const uploadFileAli: (file: any) => Promise<any>;
28
+ /**
29
+ * @Title: base64转file
30
+ * @Describe:
31
+ * @Author: Wzw
32
+ * @param {any} dataurl
33
+ * @param {string} filename
34
+ */
35
+ export declare const dataURLtoFile: (dataurl: any, filename: string) => File;
36
+ /**
37
+ * @Title: 获取视频封面
38
+ * @Describe:
39
+ * @Author: Wzw
40
+ * @param {any} file
41
+ */
42
+ export declare const getVideoCover: (file: any) => Promise<unknown>;
43
+ /**
44
+ * @Title: 获取腾讯云 Signature
45
+ * @Describe:
46
+ * @Author: Wzw
47
+ */
48
+ export declare const getSignature: () => Promise<any>;
49
+ /**
50
+ * @Title: 上传到腾讯云
51
+ * @Describe:
52
+ * @Author: Wzw
53
+ * @param {any} file
54
+ */
55
+ export declare const uploadFileTencent: (file: any) => Promise<unknown>;
56
+ export declare const uploadFile: (file: RcFile) => Promise<any>;
@@ -0,0 +1,37 @@
1
+ import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
2
+ import type { UploadValue, UploadChangeHandler } from './types';
3
+ export interface UploadFile extends AntdUploadFile {
4
+ metadata?: {
5
+ width?: number;
6
+ height?: number;
7
+ duration?: number;
8
+ bitrate?: number;
9
+ };
10
+ }
11
+ export interface UploadProps {
12
+ renderMode?: string;
13
+ fieldKey: string;
14
+ maxSize?: number;
15
+ minCount?: number;
16
+ maxCount?: number;
17
+ multiple?: boolean;
18
+ presetType?: string[];
19
+ presetTypeString?: string[];
20
+ customType?: string[];
21
+ enablePresetType?: boolean;
22
+ enableCustomType?: boolean;
23
+ allowPreview?: boolean;
24
+ value?: UploadValue;
25
+ typeMaxSizeMap?: Record<string, number>;
26
+ enableMultilingual?: boolean;
27
+ onChange?: UploadChangeHandler;
28
+ disabled?: boolean;
29
+ mediaUploadUrl?: string;
30
+ getHeaders?: () => Record<string, string>;
31
+ mediaConfig?: {
32
+ data: {
33
+ upload_onetime_limit: number;
34
+ upload_maxsize: number;
35
+ };
36
+ };
37
+ }
@@ -0,0 +1,18 @@
1
+ import { RcFile, UploadFile } from 'antd/es/upload/interface';
2
+ import type { MediaMetadata, FileCountValidation, ValidationResult, MultilingualFile, FileListOptions, UploadValue, SingleMultilingualValue } from './types';
3
+ export declare const generateUid: () => string;
4
+ export declare const getSuffix: (name: string) => string;
5
+ export declare const getPointSuffix: (name: string) => string;
6
+ export declare const getFileType: (name: string) => string;
7
+ export declare const getFileName: (url: string) => string;
8
+ export declare const checkFileCount: ({ multiple, minCount, maxCount, valueLength, }: FileCountValidation) => ValidationResult;
9
+ export declare const getMediaMetadata: (file: RcFile) => Promise<MediaMetadata | null>;
10
+ export declare const genFileListByString: (value: string) => UploadFile[];
11
+ export declare const createMultilingualData: (value: string) => SingleMultilingualValue;
12
+ export declare const createMultilingualFileList: (value: string) => Record<string, UploadFile<any>[]>;
13
+ export declare const getDefaultFileList: (value: UploadValue | undefined, options: FileListOptions) => MultilingualFile[];
14
+ export declare const getFileMetadataParams: (file: RcFile & {
15
+ metadata?: MediaMetadata;
16
+ }) => Record<string, any>;
17
+ export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -76,7 +76,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
76
76
  Subdomain: import("react").FC<import("antd").InputProps & {
77
77
  onChange: (value: string) => void;
78
78
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: "custom" | "xzero" | "saas";
79
+ rootDomain: "custom" | "saas" | "xzero";
80
80
  customDomain?: string | undefined;
81
81
  value?: string | undefined;
82
82
  tenantId: string;
@@ -0,0 +1,3 @@
1
+ import { FormFieldFilterFuncMapType } from './type';
2
+ declare const formFieldFilterFuncMap: FormFieldFilterFuncMapType;
3
+ export { formFieldFilterFuncMap };
@@ -0,0 +1,3 @@
1
+ declare const usePlatform: () => any;
2
+ declare const useIsShop: () => boolean;
3
+ export { usePlatform, useIsShop };
@@ -0,0 +1,8 @@
1
+ import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
+ import { Dayjs } from 'dayjs';
3
+ import './index.less';
4
+ interface DatePickerCptProps extends PickerDateProps<Dayjs> {
5
+ showTime: any;
6
+ }
7
+ declare const DatePickerCpt: (props: DatePickerCptProps) => JSX.Element;
8
+ export default DatePickerCpt;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ export interface DivProps {
3
+ /** 基础类名,默认为 'div' */
4
+ baseClassName?: string;
5
+ /** 自定义类名,会与 baseClassName 合并 */
6
+ className?: string;
7
+ /** 渲染函数,优先级高于 children */
8
+ render?: () => React.ReactNode;
9
+ /** 子元素 */
10
+ children?: React.ReactNode;
11
+ /** 内联样式 */
12
+ style?: React.CSSProperties;
13
+ /** 收集其他需要传递给 div 的 props */
14
+ others?: any;
15
+ /** 其他自定义属性 */
16
+ [key: string]: any;
17
+ }
18
+ declare const _default: React.NamedExoticComponent<DivProps>;
19
+ export default _default;
@@ -1,11 +1,11 @@
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); }
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
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(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; }
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; }
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(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); }
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); }
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';
@@ -0,0 +1,8 @@
1
+ import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
+ import React from 'react';
3
+ interface IconFontProps extends IconComponentProps {
4
+ type: string;
5
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
+ }
7
+ declare const IconFont: React.FC<IconFontProps>;
8
+ export default IconFont;
@@ -1,8 +1,8 @@
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); }
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
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(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); }
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); }
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 ? 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 || (_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 ? 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 || (_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 ? 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 || (_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,6 @@
1
+ /// <reference types="react" />
2
+ import { ConfigProviderProps } from '../config-provider';
3
+ interface PageProps extends ConfigProviderProps {
4
+ }
5
+ declare const Page: (props: PageProps) => JSX.Element;
6
+ export default Page;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface Option {
4
+ id: string | number;
5
+ name: React.ReactNode;
6
+ }
7
+ export interface PisellAnchorProps {
8
+ options?: Option[];
9
+ tab?: string | number;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ onChange?: (key: string | number) => void;
13
+ onTabClick?: () => void;
14
+ containerRef?: React.RefObject<HTMLElement>;
15
+ /**
16
+ * 平台类型,仅用于样式调整,不再影响锚点滚动功能
17
+ * 无论pc还是h5模式,点击锚点都会自动滚动到对应内容
18
+ * @default 'pc'
19
+ */
20
+ platform?: 'pc' | 'h5';
21
+ }
22
+ declare const PisellAnchor: React.FC<PisellAnchorProps>;
23
+ export default PisellAnchor;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { AvatarProps } from 'antd';
3
+ import './index.less';
4
+ export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
+ export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
6
+ shape?: 'circle' | 'square';
7
+ size?: AvatarSize;
8
+ src?: string;
9
+ alt?: string;
10
+ icon?: React.ReactNode;
11
+ children?: React.ReactNode;
12
+ className?: string;
13
+ style?: React.CSSProperties;
14
+ useTextAvatar?: boolean;
15
+ borderRadius?: number;
16
+ onError?: () => boolean;
17
+ }
18
+ declare const PisellAvatar: React.FC<PisellAvatarProps>;
19
+ export default PisellAvatar;
@@ -0,0 +1,19 @@
1
+ import { CardProps } from 'antd';
2
+ import './index.less';
3
+ export interface PisellCardProps extends CardProps {
4
+ bordered?: boolean;
5
+ selected?: boolean;
6
+ loading?: boolean;
7
+ padding?: number;
8
+ borderRadius?: number;
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
+ isClickable?: boolean;
12
+ }
13
+ /**
14
+ * Pisell 卡片容器组件
15
+ * @param props
16
+ * @constructor
17
+ */
18
+ declare const PisellCard: (props: PisellCardProps) => JSX.Element;
19
+ export default PisellCard;