@pisell/materials 3.3.13 → 3.3.15

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 (215) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +3 -3
  3. package/build/lowcode/render/default/view.css +1 -1
  4. package/build/lowcode/render/default/view.js +8 -8
  5. package/build/lowcode/view.css +1 -1
  6. package/build/lowcode/view.js +8 -8
  7. package/es/components/DragSortList/index.js +6 -6
  8. package/es/components/Pagination/index.d.ts +1 -1
  9. package/es/components/batch-editor/index.d.ts +1 -0
  10. package/es/components/classicLayout/index.js +4 -5
  11. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  19. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  20. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  22. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  23. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/index.d.ts +6 -5
  25. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  26. package/es/components/date-picker/index.d.ts +1 -0
  27. package/es/components/filter/index.d.ts +1 -0
  28. package/es/components/icon/index.js +5 -5
  29. package/es/components/list/index.d.ts +1 -0
  30. package/es/components/list/index.js +6 -6
  31. package/es/components/lowCodePage/index.d.ts +1 -0
  32. package/es/components/page/index.d.ts +1 -0
  33. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  34. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  35. package/es/components/pisellCardList/index.d.ts +2 -0
  36. package/es/components/pisellCardList/index.js +4 -0
  37. package/es/components/pisellGoodPassCard/index.less +3 -2
  38. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  39. package/es/components/pisellInput/index.d.ts +1 -0
  40. package/es/components/pisellLoading/index.d.ts +1 -0
  41. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  42. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  43. package/es/components/pisellModal/components/index.d.ts +1 -0
  44. package/es/components/pisellWalletPassCard/index.d.ts +2 -0
  45. package/es/components/pisellWalletPassCard/index.js +80 -13
  46. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  47. package/es/components/productCard/components/Header/index.d.ts +1 -0
  48. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  49. package/es/components/productCard/components/Note/index.d.ts +1 -0
  50. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  51. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  52. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  53. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  54. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  55. package/es/components/productCard/components/Time/index.js +2 -2
  56. package/es/components/qrcode/index.d.ts +1 -0
  57. package/es/components/qrcode/index.js +1 -1
  58. package/es/components/sort/components/InlineMenu/index.js +1 -1
  59. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  60. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  61. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  62. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  63. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  64. package/es/components/table/Actions/index.d.ts +1 -0
  65. package/es/components/table/BasicTable/index.d.ts +1 -0
  66. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  67. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  68. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  69. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  70. package/es/components/table/Header/Buttons/index.js +5 -5
  71. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  72. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  73. package/es/components/table/Table/SelectField/index.js +4 -4
  74. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  75. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  76. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  77. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  78. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  79. package/es/components/table/Table/fields/index.d.ts +1 -0
  80. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  81. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  85. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  87. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  90. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  91. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  92. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  93. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  94. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  95. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  96. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  97. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  98. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  99. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  100. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  101. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  102. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  103. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  104. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  105. package/es/components/table/Table/utils.d.ts +1 -1
  106. package/es/components/table/View/index.d.ts +1 -0
  107. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  108. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  109. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  110. package/es/components/translation/index.js +10 -10
  111. package/es/components/translation/utils.js +5 -5
  112. package/es/components/versionSelect/index.d.ts +1 -0
  113. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  114. package/es/hooks/useResponsive.js +2 -2
  115. package/es/utils/hoc.js +1 -1
  116. package/es/utils/miniRedux.js +8 -9
  117. package/es/utils/platform.d.ts +1 -1
  118. package/lib/components/Pagination/index.d.ts +1 -1
  119. package/lib/components/batch-editor/index.d.ts +1 -0
  120. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  121. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  122. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  123. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  124. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  125. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  126. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  127. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  128. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  129. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  130. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  131. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  132. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  133. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -5
  134. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  135. package/lib/components/date-picker/index.d.ts +1 -0
  136. package/lib/components/filter/index.d.ts +1 -0
  137. package/lib/components/list/index.d.ts +1 -0
  138. package/lib/components/lowCodePage/index.d.ts +1 -0
  139. package/lib/components/lowCodePage/index.js +1 -2
  140. package/lib/components/page/index.d.ts +1 -0
  141. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  142. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  143. package/lib/components/pisellCardList/index.d.ts +2 -0
  144. package/lib/components/pisellCardList/index.js +4 -0
  145. package/lib/components/pisellGoodPassCard/index.less +3 -2
  146. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  147. package/lib/components/pisellInput/index.d.ts +1 -0
  148. package/lib/components/pisellLoading/index.d.ts +1 -0
  149. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  150. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  151. package/lib/components/pisellModal/components/index.d.ts +1 -0
  152. package/lib/components/pisellWalletPassCard/index.d.ts +2 -0
  153. package/lib/components/pisellWalletPassCard/index.js +43 -11
  154. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  155. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  156. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  157. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  158. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  159. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  160. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  161. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  162. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  163. package/lib/components/productCard/components/Time/index.js +3 -2
  164. package/lib/components/qrcode/index.d.ts +1 -0
  165. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  166. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  167. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  168. package/lib/components/table/Actions/index.d.ts +1 -0
  169. package/lib/components/table/BasicTable/index.d.ts +1 -0
  170. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  171. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  172. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  173. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  174. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  175. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  176. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  177. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  178. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  179. package/lib/components/table/Table/fields/index.d.ts +1 -0
  180. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  181. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  182. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  183. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  184. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  185. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  186. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  187. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  188. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  189. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  190. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  191. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  192. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  193. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  194. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  195. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  196. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  197. package/lib/components/table/Table/fields/utils/index.js +1 -2
  198. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  199. package/lib/components/table/Table/utils.d.ts +1 -1
  200. package/lib/components/table/View/index.d.ts +1 -0
  201. package/lib/components/versionSelect/index.d.ts +1 -0
  202. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  203. package/lib/hooks/useResponsive.js +3 -6
  204. package/lib/utils/platform.d.ts +1 -1
  205. package/lowcode/pisell-card-list/meta.ts +5 -0
  206. package/lowcode/pisell-wallet-pass-card/meta.ts +6 -1
  207. package/package.json +1 -1
  208. package/dist/umd/materials.min.css +0 -1
  209. package/dist/umd/materials.min.js +0 -1
  210. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  211. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  212. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  213. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  214. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  215. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -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
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -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
  };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  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?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "link" | "button";
55
+ type: "button" | "link";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
5
  labelField: string;
5
6
  valueField: string;
6
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -34,7 +35,7 @@ declare const formFieldMap: {
34
35
  };
35
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
37
  options?: any;
37
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
38
39
  labelField: string;
39
40
  valueField: string;
40
41
  extraParams?: Record<string, any> | undefined;
@@ -59,7 +60,7 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | 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("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -89,13 +90,13 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
89
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
91
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
92
  options?: any;
92
- optionSourceType?: "default" | "custom" | "api" | undefined;
93
+ optionSourceType?: "custom" | "default" | "api" | undefined;
93
94
  labelField: string;
94
95
  valueField: string;
95
96
  extraParams?: Record<string, any> | undefined;
96
97
  } & {
97
98
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<any> | 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 & {
99
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
100
  onChange: (value: string) => void;
100
- } & 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>;
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
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -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';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputNumberProps } from 'antd/es/input-number';
2
3
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
3
4
  value?: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellAdjustPriceProps {
3
4
  value?: number;
@@ -64,6 +64,8 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
64
64
  };
65
65
  };
66
66
  };
67
+ /** 编辑编辑按钮后,弹窗展示之前 */
68
+ beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
67
69
  /** 编辑弹窗点击提交 */
68
70
  onConfirmEdit?: (value: any, index: number) => void;
69
71
  }
@@ -63,6 +63,10 @@ var PisellCardList = function PisellCardList(props) {
63
63
  showBalanceSymbol: showBalanceSymbol || (item === null || item === void 0 ? void 0 : item.showBalanceSymbol),
64
64
  showActions: props.showActions || (item === null || item === void 0 ? void 0 : item.showActions),
65
65
  actions: props.actions || (item === null || item === void 0 ? void 0 : item.actions),
66
+ beforeEdit: function beforeEdit(record) {
67
+ var _props$beforeEdit;
68
+ return props === null || props === void 0 || (_props$beforeEdit = props.beforeEdit) === null || _props$beforeEdit === void 0 ? void 0 : _props$beforeEdit.call(props, record, index);
69
+ },
66
70
  onConfirmEdit: function onConfirmEdit(newVal) {
67
71
  var _props$onConfirmEdit;
68
72
  (_props$onConfirmEdit = props.onConfirmEdit) === null || _props$onConfirmEdit === void 0 || _props$onConfirmEdit.call(props, newVal, index);
@@ -18,11 +18,11 @@
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: space-between;
21
- height: 22px;
21
+ // height: 22px;
22
22
 
23
23
  .item-title {
24
24
  color: var(--Gray-500, #667085);
25
- text-align: center;
25
+ // text-align: center;
26
26
  font-family: Inter;
27
27
  font-size: 14px;
28
28
  font-style: normal;
@@ -37,6 +37,7 @@
37
37
  font-style: normal;
38
38
  font-weight: 400;
39
39
  line-height: 20px;
40
+ white-space: nowrap;
40
41
 
41
42
  .add-btn {
42
43
  color: var(--, #8157d5);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  export interface IpadModalProps extends PcModalProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  import './index.less';
3
4
  export interface MobileModalProps extends PcModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  import PcModal from './PcModal';
@@ -74,6 +74,8 @@ export interface PisellWalletPassCardProps {
74
74
  };
75
75
  };
76
76
  };
77
+ /** 编辑编辑按钮后,弹窗展示之前 */
78
+ beforeEdit?: (value: any) => Promise<any> | boolean | void;
77
79
  /** 编辑弹窗点击提交 */
78
80
  onConfirmEdit?: (value: any) => void;
79
81
  [key: string]: any;
@@ -4,6 +4,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
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
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
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
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
7
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
11
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -101,6 +104,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
101
104
  discount = props.discount,
102
105
  showActions = props.showActions,
103
106
  actions = props.actions,
107
+ beforeEdit = props.beforeEdit,
104
108
  onConfirmEdit = props.onConfirmEdit,
105
109
  originData = props.originData,
106
110
  _props$style = props.style,
@@ -124,19 +128,82 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
124
128
  });
125
129
  setIsShowDetail(true);
126
130
  };
127
- var onEdit = function onEdit() {
128
- var _actions$edit, _actions$edit2;
129
- if (disabled || disabledReason || !(actions !== null && actions !== void 0 && (_actions$edit = actions.edit) !== null && _actions$edit !== void 0 && _actions$edit.visible) || !(actions !== null && actions !== void 0 && (_actions$edit2 = actions.edit) !== null && _actions$edit2 !== void 0 && _actions$edit2.enableDialog)) return;
130
- form.setFieldsValue({
131
- name: name,
132
- storeName: storeName,
133
- balance: balance,
134
- redeem: redeem,
135
- code: code,
136
- validDate: dayjs(validDate)
137
- });
138
- setIsShowEdit(true);
139
- };
131
+ var onEdit = /*#__PURE__*/function () {
132
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
133
+ var _actions$edit, _actions$edit2;
134
+ var executeEdit, result, shouldProceed;
135
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
136
+ while (1) switch (_context.prev = _context.next) {
137
+ case 0:
138
+ if (!(disabled || disabledReason || !(actions !== null && actions !== void 0 && (_actions$edit = actions.edit) !== null && _actions$edit !== void 0 && _actions$edit.visible) || !(actions !== null && actions !== void 0 && (_actions$edit2 = actions.edit) !== null && _actions$edit2 !== void 0 && _actions$edit2.enableDialog))) {
139
+ _context.next = 2;
140
+ break;
141
+ }
142
+ return _context.abrupt("return");
143
+ case 2:
144
+ executeEdit = function executeEdit() {
145
+ form.setFieldsValue({
146
+ name: name,
147
+ storeName: storeName,
148
+ balance: balance,
149
+ redeem: redeem,
150
+ code: code,
151
+ validDate: dayjs(validDate)
152
+ });
153
+ setIsShowEdit(true);
154
+ };
155
+ if (beforeEdit) {
156
+ _context.next = 6;
157
+ break;
158
+ }
159
+ executeEdit();
160
+ return _context.abrupt("return");
161
+ case 6:
162
+ _context.prev = 6;
163
+ result = beforeEdit({
164
+ id: id,
165
+ name: name,
166
+ storeName: storeName,
167
+ balance: balance,
168
+ redeem: redeem,
169
+ code: code,
170
+ validDate: validDate,
171
+ originData: originData
172
+ }); // 处理 Promise 情况
173
+ if (!(result instanceof Promise)) {
174
+ _context.next = 14;
175
+ break;
176
+ }
177
+ _context.next = 11;
178
+ return result;
179
+ case 11:
180
+ shouldProceed = _context.sent;
181
+ if (shouldProceed !== false) {
182
+ // 显式检查 false
183
+ executeEdit();
184
+ }
185
+ return _context.abrupt("return");
186
+ case 14:
187
+ // 处理同步情况
188
+ if (result !== false) {
189
+ executeEdit();
190
+ }
191
+ _context.next = 20;
192
+ break;
193
+ case 17:
194
+ _context.prev = 17;
195
+ _context.t0 = _context["catch"](6);
196
+ console.error('Before edit check failed:', _context.t0);
197
+ case 20:
198
+ case "end":
199
+ return _context.stop();
200
+ }
201
+ }, _callee, null, [[6, 17]]);
202
+ }));
203
+ return function onEdit() {
204
+ return _ref.apply(this, arguments);
205
+ };
206
+ }();
140
207
 
141
208
  // 添加长按相关处理函数
142
209
  var handleTouchStart = function handleTouchStart() {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EditButton: ({ onEdit }: any) => JSX.Element;
3
4
  export default EditButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: (props: any) => JSX.Element;
3
4
  export default Header;