@pisell/materials 1.0.928 → 1.0.930

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 (218) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +4 -4
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +4 -4
  9. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  10. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  11. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +22 -11
  15. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  16. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  17. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/index.d.ts +2 -2
  22. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  23. package/es/components/date-picker/index.d.ts +0 -1
  24. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  25. package/es/components/filter/index.d.ts +0 -1
  26. package/es/components/iconfont/index.d.ts +8 -0
  27. package/es/components/iconfont/index.js +1 -1
  28. package/es/components/list/index.d.ts +0 -1
  29. package/es/components/lowCodePage/index.d.ts +0 -1
  30. package/es/components/page/index.d.ts +0 -1
  31. package/es/components/pisell-config-provider/context.d.ts +22 -0
  32. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  33. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  34. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  35. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  36. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  37. package/es/components/pisellInput/index.d.ts +0 -1
  38. package/es/components/pisellLoading/index.d.ts +0 -1
  39. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  40. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  41. package/es/components/pisellModal/components/index.d.ts +0 -1
  42. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  43. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  44. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  45. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  46. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  47. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  48. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  49. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  50. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  51. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  52. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  53. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  54. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  55. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  56. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  57. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +73 -5
  58. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
  59. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  60. package/es/components/productCard/cartSkuCard/index.d.ts +0 -1
  61. package/es/components/productCard/cartSkuCard/index.js +2 -11
  62. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  63. package/es/components/productCard/components/Action/index.d.ts +3 -0
  64. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  65. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  66. package/es/components/productCard/components/Header/index.d.ts +0 -1
  67. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  68. package/es/components/productCard/components/Note/index.d.ts +0 -1
  69. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  70. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  71. package/es/components/productCard/components/Packages/index.d.ts +0 -1
  72. package/es/components/productCard/components/Sales/index.d.ts +0 -1
  73. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  74. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  75. package/es/components/productCard/locales.d.ts +84 -0
  76. package/es/components/qrcode/index.d.ts +0 -1
  77. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  78. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  79. package/es/components/table/Actions/index.d.ts +0 -1
  80. package/es/components/table/BasicTable/index.d.ts +0 -1
  81. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  82. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  83. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  84. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  88. package/es/components/table/Table/fields/index.d.ts +0 -1
  89. package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
  90. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  91. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  92. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  96. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  97. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  98. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  100. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  101. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  102. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  103. package/es/components/table/Table/utils.d.ts +1 -1
  104. package/es/components/table/View/index.d.ts +0 -1
  105. package/es/components/versionSelect/index.d.ts +0 -1
  106. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
  107. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  108. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  109. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  110. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  111. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  112. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  113. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  114. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  115. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  116. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  117. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  118. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +9 -3
  119. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  120. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  121. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  122. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  123. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  124. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  125. package/lib/components/dataSourceComponents/fields/index.d.ts +2 -2
  126. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  127. package/lib/components/date-picker/index.d.ts +0 -1
  128. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  129. package/lib/components/filter/index.d.ts +0 -1
  130. package/lib/components/iconfont/index.d.ts +8 -0
  131. package/lib/components/iconfont/index.js +1 -1
  132. package/lib/components/list/index.d.ts +0 -1
  133. package/lib/components/lowCodePage/index.d.ts +0 -1
  134. package/lib/components/page/index.d.ts +0 -1
  135. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  136. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  137. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  138. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  139. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  140. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  141. package/lib/components/pisellInput/index.d.ts +0 -1
  142. package/lib/components/pisellLoading/index.d.ts +0 -1
  143. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  144. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  145. package/lib/components/pisellModal/components/index.d.ts +0 -1
  146. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  147. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  148. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  149. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  150. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  151. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  152. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  153. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  154. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  155. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  156. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  157. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  158. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  159. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  160. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  161. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +45 -11
  162. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
  163. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  164. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -1
  165. package/lib/components/productCard/cartSkuCard/index.js +2 -13
  166. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  167. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  168. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  169. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  170. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  171. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  172. package/lib/components/productCard/components/Note/index.d.ts +0 -1
  173. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  174. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  175. package/lib/components/productCard/components/Packages/index.d.ts +0 -1
  176. package/lib/components/productCard/components/Sales/index.d.ts +0 -1
  177. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  178. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  179. package/lib/components/productCard/locales.d.ts +84 -0
  180. package/lib/components/qrcode/index.d.ts +0 -1
  181. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  182. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  183. package/lib/components/table/Actions/index.d.ts +0 -1
  184. package/lib/components/table/BasicTable/index.d.ts +0 -1
  185. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  186. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  187. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  188. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  189. package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
  190. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  191. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  192. package/lib/components/table/Table/fields/index.d.ts +0 -1
  193. package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
  194. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  195. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  196. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  197. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  198. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  199. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  200. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  201. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  202. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  203. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  204. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  205. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  206. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  207. package/lib/components/table/Table/utils.d.ts +1 -1
  208. package/lib/components/table/View/index.d.ts +0 -1
  209. package/lib/components/versionSelect/index.d.ts +0 -1
  210. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
  211. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  212. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  213. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  214. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  215. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  216. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  217. package/lowcode/data-source-table/meta.ts +119 -66
  218. package/package.json +3 -3
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItem: (props: any) => JSX.Element;
3
2
  export default FormItem;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
3
2
  export default DataSourceImage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceQRCode: (props: any) => JSX.Element;
3
2
  export default DataSourceQRCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const useDataSourceKey: () => {
3
2
  dataSourceKey: string | undefined;
4
3
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -113,7 +113,7 @@ var useTableProps = function useTableProps(props) {
113
113
 
114
114
  // 删除记录
115
115
  var handleDelete = useMemoizedFn( /*#__PURE__*/function () {
116
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(record, softDelete) {
116
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(record, softDelete, customDeleteAction) {
117
117
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
118
118
  while (1) switch (_context2.prev = _context2.next) {
119
119
  case 0:
@@ -126,28 +126,39 @@ var useTableProps = function useTableProps(props) {
126
126
  return _regeneratorRuntime().wrap(function _callee$(_context) {
127
127
  while (1) switch (_context.prev = _context.next) {
128
128
  case 0:
129
+ if (!customDeleteAction) {
130
+ _context.next = 5;
131
+ break;
132
+ }
133
+ _context.next = 3;
134
+ return customDeleteAction(record);
135
+ case 3:
136
+ _context.next = 13;
137
+ break;
138
+ case 5:
129
139
  if (!softDelete) {
130
- _context.next = 6;
140
+ _context.next = 11;
131
141
  break;
132
142
  }
143
+ // 软删除
133
144
  deleteTime = dayjs().format('YYYY-MM-DD HH:mm:ss');
134
- _context.next = 4;
145
+ _context.next = 9;
135
146
  return update === null || update === void 0 ? void 0 : update.runAsync(_objectSpread(_objectSpread({}, record), {}, {
136
147
  deleted_at: deleteTime
137
148
  }));
138
- case 4:
139
- _context.next = 8;
149
+ case 9:
150
+ _context.next = 13;
140
151
  break;
141
- case 6:
142
- _context.next = 8;
152
+ case 11:
153
+ _context.next = 13;
143
154
  return destroy === null || destroy === void 0 ? void 0 : destroy.runAsync(record.id);
144
- case 8:
155
+ case 13:
145
156
  onDeleteFinish === null || onDeleteFinish === void 0 || onDeleteFinish(record);
146
157
  refreshData();
147
158
  PisellToast({
148
159
  content: getText('pisell-action-delete-success')
149
160
  });
150
- case 11:
161
+ case 16:
151
162
  case "end":
152
163
  return _context.stop();
153
164
  }
@@ -165,7 +176,7 @@ var useTableProps = function useTableProps(props) {
165
176
  }
166
177
  }, _callee2);
167
178
  }));
168
- return function (_x, _x2) {
179
+ return function (_x, _x2, _x3) {
169
180
  return _ref2.apply(this, arguments);
170
181
  };
171
182
  }());
@@ -197,7 +208,7 @@ var useTableProps = function useTableProps(props) {
197
208
  okText: getText('pisell-delete-confirm-ok'),
198
209
  cancelText: getText('pisell-delete-confirm-cancel'),
199
210
  onOk: function onOk() {
200
- handleDelete(record, item === null || item === void 0 ? void 0 : item.softDelete);
211
+ handleDelete(record, item === null || item === void 0 ? void 0 : item.softDelete, item === null || item === void 0 ? void 0 : item.customDeleteAction);
201
212
  }
202
213
  });
203
214
  return;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { JsonProps } from "./type";
3
2
  import "./ReadPretty.less";
4
3
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PasswordProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
3
  optionSourceType?: "custom" | "default" | "api" | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -20,7 +20,7 @@ declare const formFieldMap: {
20
20
  Subdomain: import("react").FC<import("antd").InputProps & {
21
21
  onChange: (value: string) => void;
22
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "xzero" | "saas";
23
+ rootDomain: "custom" | "saas" | "xzero";
24
24
  customDomain?: string | undefined;
25
25
  value?: string | undefined;
26
26
  tenantId: string;
@@ -73,7 +73,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
73
73
  Subdomain: import("react").FC<import("antd").InputProps & {
74
74
  onChange: (value: string) => void;
75
75
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
76
- rootDomain: "custom" | "xzero" | "saas";
76
+ rootDomain: "custom" | "saas" | "xzero";
77
77
  customDomain?: string | undefined;
78
78
  value?: string | undefined;
79
79
  tenantId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => JSX.Element;
3
2
  export default DatePicker;
@@ -0,0 +1,18 @@
1
+ import './index.less';
2
+ import { ValueProps, SortType } from '../types';
3
+ declare type IdType = string | number;
4
+ declare type TreeItemProps = {
5
+ id: string | number;
6
+ key: string | number;
7
+ item: ValueProps | any;
8
+ depth: number;
9
+ lists: any[];
10
+ childrenProps?: SortType;
11
+ sensors?: any;
12
+ expandedKeys?: IdType[];
13
+ setExpandedKeys?: any;
14
+ onSelectKeys?: (ids: IdType) => void;
15
+ onChange?: (value: any[]) => void;
16
+ };
17
+ declare const TreeItem: (props: TreeItemProps) => JSX.Element;
18
+ export default TreeItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -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;
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import { createFromIconfontCN } from '@ant-design/icons';
3
3
  import React from 'react';
4
4
  var MyIcon = createFromIconfontCN({
5
- scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.13.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.14.js' // 在 iconfont.cn 上生成
6
6
  });
7
7
  var IconFont = function IconFont(props) {
8
8
  return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type LowCodePageProps = {
3
2
  id: number;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export interface PisellContextType {
3
+ platform: 'h5' | 'pc' | 'ipad';
4
+ /** 货币符号 */
5
+ symbol?: string;
6
+ /** 当前语言环境 */
7
+ locale?: string;
8
+ /** 获取货币符号 */
9
+ getSymbolic?: () => string;
10
+ }
11
+ export declare const PisellContext: import("react").Context<PisellContextType>;
12
+ /**
13
+ * provider外获取当前全局配置
14
+ */
15
+ declare class GlobalConfig {
16
+ private config;
17
+ constructor();
18
+ setConfig(config: PisellContextType): void;
19
+ getConfig(): PisellContextType;
20
+ }
21
+ export declare const globalConfig: GlobalConfig;
22
+ export default PisellContext;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { PisellAdjustPriceProps } from './type';
4
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -0,0 +1,22 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ resetText?: string;
21
+ doneText?: string;
22
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps, ButtonProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  export interface CopyProps extends InputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SpinProps } from 'antd';
3
2
  import './index.less';
4
3
  declare type MaskType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  export interface IpadModalProps extends PcModalProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  import './index.less';
4
3
  export interface MobileModalProps extends PcModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import IpadModal from './IpadModal';
3
2
  import MobileModal from './MobileModal';
4
3
  import PcModal from './PcModal';
@@ -0,0 +1,15 @@
1
+ import { clear, show, success, info, loading, fail, hide } from './methods';
2
+ import './index.less';
3
+ interface ToastInstance {
4
+ show: typeof show;
5
+ clear: typeof clear;
6
+ success: typeof success;
7
+ info: typeof info;
8
+ loading: typeof loading;
9
+ fail: typeof fail;
10
+ error: typeof fail;
11
+ hide: typeof hide;
12
+ }
13
+ declare const Toast: ToastInstance;
14
+ export declare const useToast: () => ToastInstance;
15
+ export default Toast;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ToastProps } from './toast';
3
+ interface ToastInstance {
4
+ close: () => void;
5
+ }
6
+ declare const show: (configOrContent: Partial<ToastProps> | React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
7
+ declare const clear: () => void;
8
+ declare const success: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
9
+ declare const info: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
10
+ declare const loading: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
11
+ declare const fail: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
12
+ declare const hide: () => void;
13
+ export { show, clear, success, info, loading, fail, hide };
@@ -0,0 +1,29 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { Root } from 'react-dom/client';
3
+ import React from 'react';
4
+ declare type ImperativeProps = {
5
+ open?: boolean;
6
+ onCancel?: () => void;
7
+ afterClose?: () => void;
8
+ };
9
+ declare type TargetElement = ReactElement<ImperativeProps>;
10
+ export declare type ImperativeHandler = {
11
+ close: () => void;
12
+ replace: (element: TargetElement) => void;
13
+ isRendered?: () => boolean;
14
+ };
15
+ export declare type UnmountType = () => Promise<void>;
16
+ export declare type RenderType = (node: React.ReactElement, container: Element | DocumentFragment) => UnmountType;
17
+ declare const MARK = "__pisell_react_root__";
18
+ declare type ContainerType = (Element | DocumentFragment) & {
19
+ [MARK]?: Root;
20
+ };
21
+ export declare function render(node: React.ReactElement, container: ContainerType): void;
22
+ export declare function unmount(container: ContainerType): Promise<void>;
23
+ /**
24
+ * @deprecated 设置 React 渲染函数以兼容使用。
25
+ */
26
+ export declare function unstableSetRender(render?: RenderType): RenderType;
27
+ export declare function renderToBody(element: ReactElement): UnmountType;
28
+ export declare function renderImperatively(element: TargetElement): ImperativeHandler;
29
+ export {};
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
4
+ export interface ToastProps {
5
+ /** Toast 类型 */
6
+ icon?: ToastType | React.ReactNode;
7
+ /** 显示的内容,支持文本或 React 节点 */
8
+ content: React.ReactNode;
9
+ /** 是否显示 */
10
+ open?: boolean;
11
+ /** 自动关闭时间,单位毫秒,0 表示不自动关闭 */
12
+ duration?: number;
13
+ /** 关闭 */
14
+ onCancel?: () => void;
15
+ /** 关闭后回调 */
16
+ afterClose?: () => void;
17
+ /** 自定义样式类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示遮罩 */
22
+ mask?: boolean;
23
+ }
24
+ declare const Toast: React.FC<ToastProps>;
25
+ export default Toast;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
3
  export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Note: (props: any) => JSX.Element | null;
4
3
  export default Note;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DiscountReason: (props: any) => JSX.Element;
3
2
  export default DiscountReason;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Holders: (props: any) => JSX.Element | null;
4
3
  export default Holders;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  isShowImage?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: (props: any) => JSX.Element | null;
4
3
  export default Resources;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  hideDivider?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Specs: (props: any) => JSX.Element | null;
4
3
  export default Specs;
@@ -0,0 +1,46 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ declare type NativeProps<S extends string = never> = {
4
+ className?: string;
5
+ style?: React.CSSProperties & Partial<Record<S, string>>;
6
+ };
7
+ declare type PropagationEvent = 'click';
8
+ import './index.less';
9
+ declare type SideType = 'left' | 'right';
10
+ export declare type SwipeActionRef = {
11
+ close: () => void;
12
+ show: (side?: SideType) => void;
13
+ };
14
+ declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
+ export declare type Action = {
16
+ key: string | number;
17
+ text: ReactNode;
18
+ color?: ActionColor | string;
19
+ onClick?: (e: React.MouseEvent) => void;
20
+ style?: React.CSSProperties;
21
+ };
22
+ export declare type SwipeActionProps = {
23
+ rightActions?: Action[];
24
+ leftActions?: Action[];
25
+ onAction?: (action: Action, e: React.MouseEvent) => void;
26
+ closeOnTouchOutside?: boolean;
27
+ closeOnAction?: boolean;
28
+ children: ReactNode;
29
+ stopPropagation?: PropagationEvent[];
30
+ onActionsReveal?: (side: SideType) => void;
31
+ onClose?: () => void;
32
+ escapeDom?: string;
33
+ } & NativeProps<'--background'>;
34
+ export declare const SwipeAction: React.ForwardRefExoticComponent<{
35
+ rightActions?: Action[] | undefined;
36
+ leftActions?: Action[] | undefined;
37
+ onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
38
+ closeOnTouchOutside?: boolean | undefined;
39
+ closeOnAction?: boolean | undefined;
40
+ children: ReactNode;
41
+ stopPropagation?: "click"[] | undefined;
42
+ onActionsReveal?: ((side: SideType) => void) | undefined;
43
+ onClose?: (() => void) | undefined;
44
+ escapeDom?: string | undefined;
45
+ } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
46
+ export {};