@pisell/materials 6.2.24 → 6.2.25

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 (194) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +36 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +41 -32
  11. package/es/components/DragSortList/index.js +6 -6
  12. package/es/components/classicLayout/index.js +4 -5
  13. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  14. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  16. package/es/components/icon/index.js +5 -5
  17. package/es/components/iconfont/index.js +1 -1
  18. package/es/components/list/index.js +6 -6
  19. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  20. package/es/components/pisellAdjustPrice/index.js +64 -8
  21. package/es/components/pisellAdjustPrice/index.less +35 -6
  22. package/es/components/pisellAdjustPrice/status.js +32 -0
  23. package/es/components/pisellAdjustPrice/type.js +1 -0
  24. package/es/components/pisellToast/index.js +3 -0
  25. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  26. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
  27. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  28. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  29. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  30. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  31. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  32. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  33. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  34. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  35. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  36. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  37. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  38. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  39. package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
  40. package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  41. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  42. package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
  43. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  44. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  45. package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
  46. package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  47. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  48. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
  49. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  50. package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
  51. package/es/components/productCard/cartSkuCard/index.js +195 -0
  52. package/es/components/productCard/cartSkuCard/index.less +69 -0
  53. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  54. package/es/components/productCard/components/Header/index.js +4 -3
  55. package/es/components/productCard/components/Sales/index.js +2 -2
  56. package/es/components/productCard/index.d.ts +3 -1
  57. package/es/components/productCard/index.js +2 -0
  58. package/es/components/qrcode/index.js +1 -1
  59. package/es/components/sort/components/InlineMenu/index.js +1 -1
  60. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  61. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  62. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  63. package/es/components/table/Header/Buttons/index.js +5 -5
  64. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  65. package/es/components/table/Table/SelectField/index.js +4 -4
  66. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  67. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  68. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  69. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  70. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  71. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  72. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  73. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  74. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  75. package/es/components/table/Table/utils.d.ts +1 -1
  76. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  77. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  78. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  79. package/es/components/translation/utils.js +5 -5
  80. package/es/components/virtual-keyboard/Amount/index.d.ts +3 -20
  81. package/es/components/virtual-keyboard/Amount/index.js +79 -7
  82. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  83. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  84. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  85. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  86. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  87. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  88. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  89. package/es/components/virtual-keyboard/Number/index.d.ts +3 -11
  90. package/es/components/virtual-keyboard/Number/index.js +77 -7
  91. package/es/components/virtual-keyboard/Number/index.less +39 -0
  92. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  93. package/es/components/virtual-keyboard/Number/types.js +1 -0
  94. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  95. package/es/components/virtual-keyboard/index.d.ts +11 -0
  96. package/es/components/virtual-keyboard/index.js +88 -3
  97. package/es/components/virtual-keyboard/index.less +33 -1
  98. package/es/hooks/useResponsive.js +2 -2
  99. package/es/utils/hoc.js +1 -1
  100. package/es/utils/miniRedux.js +8 -9
  101. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  102. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  103. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  104. package/lib/components/iconfont/index.js +1 -1
  105. package/lib/components/lowCodePage/index.js +1 -2
  106. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  107. package/lib/components/pisellAdjustPrice/index.js +119 -57
  108. package/lib/components/pisellAdjustPrice/index.less +35 -6
  109. package/lib/components/pisellAdjustPrice/status.js +60 -0
  110. package/lib/components/pisellAdjustPrice/type.js +17 -0
  111. package/lib/components/pisellToast/index.js +3 -0
  112. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  113. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
  114. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  115. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  116. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  117. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  118. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  119. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  120. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  121. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  122. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  123. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  124. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  125. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  126. package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
  127. package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  128. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  129. package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
  130. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  131. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  132. package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
  133. package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  134. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  135. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
  136. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  137. package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
  138. package/lib/components/productCard/cartSkuCard/index.js +216 -0
  139. package/lib/components/productCard/cartSkuCard/index.less +69 -0
  140. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  141. package/lib/components/productCard/components/Header/index.js +4 -3
  142. package/lib/components/productCard/components/Sales/index.js +2 -2
  143. package/lib/components/productCard/index.d.ts +3 -1
  144. package/lib/components/productCard/index.js +2 -0
  145. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  146. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  147. package/lib/components/table/Table/fields/utils/index.js +1 -2
  148. package/lib/components/table/Table/utils.d.ts +1 -1
  149. package/lib/components/virtual-keyboard/Amount/index.d.ts +3 -20
  150. package/lib/components/virtual-keyboard/Amount/index.js +72 -16
  151. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  152. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  153. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  154. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  155. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  156. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  157. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  158. package/lib/components/virtual-keyboard/Number/index.d.ts +3 -11
  159. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  160. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  161. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  162. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  163. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -20
  164. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  165. package/lib/components/virtual-keyboard/index.js +60 -2
  166. package/lib/components/virtual-keyboard/index.less +33 -1
  167. package/lib/hooks/useResponsive.js +3 -6
  168. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  169. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  170. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  171. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  172. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  173. package/lowcode/virtual-keyboard/meta.ts +131 -0
  174. package/package.json +1 -1
  175. package/dist/umd/materials.min.css +0 -1
  176. package/dist/umd/materials.min.js +0 -1
  177. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  178. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  179. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  180. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  181. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  182. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  183. package/es/components/iconfont/index.d.ts +0 -8
  184. package/es/components/productCard/locales.d.ts +0 -84
  185. package/es/components/productCard/status.d.ts +0 -32
  186. package/es/components/productCard/types.d.ts +0 -84
  187. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  188. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  189. package/lib/components/iconfont/index.d.ts +0 -8
  190. package/lib/components/productCard/locales.d.ts +0 -84
  191. package/lib/components/productCard/status.d.ts +0 -32
  192. package/lib/components/productCard/types.d.ts +0 -84
  193. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  194. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { DndContext, PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
8
8
  import { SortableContext, arrayMove, useSortable } from "@dnd-kit/sortable";
9
9
  import { CSS } from "@dnd-kit/utilities";
@@ -41,7 +41,7 @@ export default function Sortable(_ref) {
41
41
  var overIndex = list === null || list === void 0 ? void 0 : list.findIndex(function (i) {
42
42
  return getRowKey(i) === (over === null || over === void 0 ? void 0 : over.id);
43
43
  });
44
- onChange === null || onChange === void 0 ? void 0 : onChange(arrayMove(list, activeIndex, overIndex));
44
+ onChange === null || onChange === void 0 || onChange(arrayMove(list, activeIndex, overIndex));
45
45
  }
46
46
  },
47
47
  sensors: sensors
@@ -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
  };
@@ -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" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "saas" | "xzero";
22
+ rootDomain: "custom" | "xzero" | "saas";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -59,13 +59,11 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & 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").InputProps & {
67
- onChange: (value: string) => void;
68
- } & 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("./Input/type").InputProps> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
69
67
  JSON: import("react").FC<any>;
70
68
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
69
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -78,14 +76,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
76
  Subdomain: import("react").FC<import("antd").InputProps & {
79
77
  onChange: (value: string) => void;
80
78
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
81
- rootDomain: "custom" | "saas" | "xzero";
79
+ rootDomain: "custom" | "xzero" | "saas";
82
80
  customDomain?: string | undefined;
83
81
  value?: string | undefined;
84
82
  tenantId: string;
85
83
  name?: string | undefined;
86
84
  fieldKey?: string | undefined;
87
85
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
86
+ }) | (import("react").FC<{}> & {
89
87
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
88
  } & {
91
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +95,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
95
  extraParams?: Record<string, any> | undefined;
98
96
  } & {
99
97
  dataSource?: any;
100
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | 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>;
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
+ 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("./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
101
  export { getFieldComponent, formFieldMap };
@@ -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';
@@ -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.4.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.6.js' // 在 iconfont.cn 上生成
6
6
  });
7
7
  var IconFont = function IconFont(props) {
8
8
  return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
@@ -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,9 +1,4 @@
1
1
  import './index.less';
2
- export interface PisellAdjustPriceProps {
3
- value?: number;
4
- originValue: number;
5
- defaultValue?: number;
6
- onChange?: (val: number) => void;
7
- }
2
+ import { PisellAdjustPriceProps } from './type';
8
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
4
  export default PisellAdjustPrice;
@@ -1,9 +1,11 @@
1
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
- var _excluded = ["value", "onChange", "defaultValue", "originValue"];
2
+ var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
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; }
4
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
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); }
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
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
10
  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
11
  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); }
@@ -15,16 +17,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
17
  import React, { useEffect, useMemo, useState } from 'react';
16
18
  import { Segmented } from 'antd';
17
19
  import classNames from 'classnames';
20
+ import { setTheme } from '@pisell/utils';
18
21
  import PisellText from "../pisellText";
19
22
  import Amount from "../virtual-keyboard/Amount";
20
23
  import { getText } from "../../locales";
21
24
  import "./index.less";
22
25
  import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
26
+ import { defaultConfig } from "./status";
23
27
  var PisellAdjustPrice = function PisellAdjustPrice(props) {
24
28
  var value = props.value,
25
29
  onChange = props.onChange,
26
30
  defaultValue = props.defaultValue,
27
31
  originValue = props.originValue,
32
+ _props$selectType = props.selectType,
33
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
28
34
  others = _objectWithoutProperties(props, _excluded);
29
35
  var config = usePisellConfig();
30
36
  var _useState = useState(value || 0),
@@ -47,6 +53,30 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
47
53
  useEffect(function () {
48
54
  document.body.id = 'body';
49
55
  }, []);
56
+
57
+ /**
58
+ * @title: 配置颜色
59
+ * @description: 根据 props 和 selectType 生成最终的配置颜色
60
+ * @param {*} useMemo
61
+ * @return {*}
62
+ * @Author: WangHan
63
+ * @Date: 2025-08-04 18:36
64
+ */
65
+ var configColor = useMemo(function () {
66
+ var currentConfig = defaultConfig[selectType];
67
+
68
+ // 过滤出有效的 props 并合并到默认配置中
69
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
70
+ var _ref2 = _slicedToArray(_ref, 2),
71
+ key = _ref2[0],
72
+ value = _ref2[1];
73
+ if (value !== undefined && key in currentConfig) {
74
+ acc[key] = value;
75
+ }
76
+ return acc;
77
+ }, {});
78
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
79
+ }, [selectType, props]);
50
80
  var handleEnter = function handleEnter() {
51
81
  if (isDiscountError) {
52
82
  return;
@@ -93,8 +123,21 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
93
123
  return "".concat(v, "%");
94
124
  }
95
125
  };
126
+ useEffect(function () {
127
+ setTheme({
128
+ '--pisell-adjust-price-text-color': configColor.textColor,
129
+ '--pisell-adjust-price-background-color': configColor.backgroundColor,
130
+ '--pisell-adjust-price-container-background-color': configColor.containerBackgroundColor,
131
+ '--pisell-adjust-price-button-background-color': configColor.buttonBackgroundColor,
132
+ '--pisell-adjust-price-main-text-color': configColor.mainTextColor,
133
+ '--pisell-adjust-price-sub-text-color': configColor.subTextColor
134
+ });
135
+ }, [configColor]);
96
136
  return /*#__PURE__*/React.createElement("div", {
97
- className: "pisell-lowcode-adjust-price-wrap"
137
+ className: classNames('pisell-lowcode-adjust-price-wrap', {
138
+ 'pisell-lowcode-adjust-price-dark': selectType === 'dark',
139
+ 'pisell-lowcode-adjust-price-light': selectType === 'light'
140
+ })
98
141
  }, /*#__PURE__*/React.createElement(Segmented, {
99
142
  size: "large",
100
143
  options: [{
@@ -125,6 +168,7 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
125
168
  }), /*#__PURE__*/React.createElement("div", {
126
169
  className: "pisell-lowcode-adjust-price-amount-wrap"
127
170
  }, /*#__PURE__*/React.createElement(Amount, _extends({}, others, {
171
+ selectType: selectType || 'light',
128
172
  inputFormat: inputFormat,
129
173
  defaultValue: updateMode === 'priceOverride' ? defaultValue : '',
130
174
  key: updateMode,
@@ -132,17 +176,29 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
132
176
  defaultSelect: updateMode === 'priceOverride',
133
177
  onChange: handleChange,
134
178
  onEnter: handleEnter,
135
- placeholder: discountMode === 'amount' ? '0' : '%'
136
- }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
179
+ placeholder: discountMode === 'amount' ? '0' : '%',
180
+ rightItemsStyle: {
181
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
182
+ textColor: configColor.textColor,
183
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
184
+ resetButtonTextColor: configColor.resetButtonTextColor,
185
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
186
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
187
+ doneButtonTextColor: configColor.doneButtonTextColor
188
+ }
189
+ }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, configColor.isShowMainText ? /*#__PURE__*/React.createElement("div", {
137
190
  className: "pisell-low-code-adjust-price-total"
138
191
  }, isDiscountError ? /*#__PURE__*/React.createElement(PisellText.Amount, {
139
192
  value: originValue
140
193
  }) : /*#__PURE__*/React.createElement(React.Fragment, null, newValue && getText('pisell-adjust-price-total-after-discount'), /*#__PURE__*/React.createElement(PisellText.Amount, {
141
194
  value: totalAfterDiscount
142
- }))), /*#__PURE__*/React.createElement("div", {
195
+ }))) : null, configColor.isShowSubText ? /*#__PURE__*/React.createElement("div", {
143
196
  className: classNames('pisell-low-code-adjust-price-amount-desc', _defineProperty({}, 'pisell-low-code-adjust-price-amount-desc-error', isDiscountError))
144
197
  }, getText('pisell-adjust-price-discount-can-be-maximum'), ' ', discountMode === 'amount' ? /*#__PURE__*/React.createElement(PisellText.Amount, {
145
- value: originValue
146
- }) : '100%')));
198
+ value: originValue,
199
+ style: {
200
+ color: configColor.subTextColor
201
+ }
202
+ }) : '100%') : null));
147
203
  };
148
204
  export default PisellAdjustPrice;
@@ -1,30 +1,59 @@
1
1
  .pisell-lowcode-adjust-price-wrap {
2
2
  width: 380px;
3
3
  border-radius: 10px;
4
- background-color: #fff;
4
+ background-color: var(--pisell-adjust-price-background-color);
5
5
  padding: 10px;
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: 10px;
9
+ transition: all 0.3s ease;
10
+
11
+ // 浅色模式样式
12
+ &.pisell-lowcode-adjust-price-light {
13
+ .pisell-lowcode-segmented-item-label {
14
+ color: #667085;
15
+ }
16
+ }
17
+
18
+ // 深色模式样式
19
+ &.pisell-lowcode-adjust-price-dark {
20
+ .pisell-lowcode-segmented-item-label {
21
+ color: #d0d5dd;
22
+ }
23
+ }
24
+
25
+ .pisell-lowcode-segmented {
26
+ background: var(--pisell-adjust-price-container-background-color);
27
+ :hover {
28
+ color: var(--pisell-adjust-price-text-color);
29
+ }
30
+ .pisell-lowcode-segmented-item-selected {
31
+ background: var(--pisell-adjust-price-button-background-color);
32
+ .pisell-lowcode-segmented-item-label {
33
+ color: var(--pisell-adjust-price-text-color) !important;
34
+ }
35
+ }
36
+ }
37
+
9
38
  .pisell-lowcode-adjust-price-amount-wrap {
10
39
  padding: 10px;
11
40
  border-radius: 10px;
12
- background: var(--Gray-300, #D0D5DD);
41
+ background: var(--pisell-adjust-price-container-background-color);
13
42
  }
14
43
  .pisell-low-code-adjust-price-total {
15
- color: var(--Gray-900, #101828);
44
+ color: var(--pisell-adjust-price-main-text-color);
16
45
  font-size: 20px;
17
46
  font-weight: 600;
18
47
  line-height: 30px; /* 150% */
19
48
  }
20
49
  .pisell-low-code-adjust-price-amount-desc {
21
- color: var(--Gray-500, #667085);
50
+ color: var(--pisell-adjust-price-sub-text-color);
22
51
  font-size: 16px;
23
52
  font-style: normal;
24
53
  font-weight: 400;
25
54
  line-height: 24px; /* 150% */
26
55
  }
27
56
  .pisell-low-code-adjust-price-amount-desc-error {
28
- color: var(--Error-600, #D92D20);
57
+ color: var(--Error-600, #d92d20);
29
58
  }
30
- }
59
+ }
@@ -0,0 +1,32 @@
1
+ export var defaultConfig = {
2
+ dark: {
3
+ backgroundColor: 'rgba(0, 0, 0, 0.70)',
4
+ containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
5
+ buttonBackgroundColor: '#ffffff',
6
+ textColor: '#000000',
7
+ resetButtonBackgroundColor: '#ffffff',
8
+ resetButtonTextColor: '#d92d20',
9
+ isDoneButtonFollowTheme: true,
10
+ doneButtonBackgroundColor: '#4ca30d',
11
+ doneButtonTextColor: '#ffffff',
12
+ isShowMainText: true,
13
+ mainTextColor: '#ffffff',
14
+ isShowSubText: true,
15
+ subTextColor: '#d0d5dd'
16
+ },
17
+ light: {
18
+ backgroundColor: '#ffffff',
19
+ containerBackgroundColor: '#d0d5dd',
20
+ buttonBackgroundColor: '#ffffff',
21
+ textColor: '#000000',
22
+ resetButtonBackgroundColor: '#ffffff',
23
+ resetButtonTextColor: '#d92d20',
24
+ isDoneButtonFollowTheme: true,
25
+ doneButtonBackgroundColor: '#4ca30d',
26
+ doneButtonTextColor: '#ffffff',
27
+ isShowMainText: true,
28
+ mainTextColor: '#101828',
29
+ isShowSubText: true,
30
+ subTextColor: '#667085'
31
+ }
32
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -10,6 +10,9 @@ var PisellToast = function PisellToast(props) {
10
10
  actionText = props.actionText,
11
11
  onClose = props.onClose;
12
12
  var key = getUniqueId();
13
+ if (!message) {
14
+ return alert(content);
15
+ }
13
16
  message.open({
14
17
  key: key,
15
18
  content: /*#__PURE__*/React.createElement("div", {
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface IProps {
4
+ isShowImage?: boolean;
5
+ dataSource: {
6
+ image?: string;
7
+ bundle?: any[];
8
+ options?: any[];
9
+ product_option_string?: string;
10
+ name?: string;
11
+ symbol?: string;
12
+ price?: string | number;
13
+ total?: number;
14
+ origin_total?: number;
15
+ num?: number;
16
+ };
17
+ style?: React.CSSProperties;
18
+ isMainProduct?: boolean;
19
+ }
20
+ declare const BasicInfo: (props: IProps) => JSX.Element;
21
+ export default BasicInfo;
@@ -0,0 +1,61 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import { image as imageAli, formatAmount } from '@pisell/utils';
4
+ import Specs from "../specs";
5
+ import { PREFIX } from "../../index";
6
+ import "./index.less";
7
+ var BasicInfo = function BasicInfo(props) {
8
+ var isShowImage = props.isShowImage,
9
+ _props$dataSource = props.dataSource,
10
+ dataSource = _props$dataSource === void 0 ? {} : _props$dataSource,
11
+ style = props.style,
12
+ isMainProduct = props.isMainProduct;
13
+ var image = dataSource.image,
14
+ bundle = dataSource.bundle,
15
+ options = dataSource.options,
16
+ product_option_string = dataSource.product_option_string,
17
+ name = dataSource.name,
18
+ price = dataSource.price,
19
+ symbol = dataSource.symbol,
20
+ _dataSource$total = dataSource.total,
21
+ total = _dataSource$total === void 0 ? 0 : _dataSource$total,
22
+ _dataSource$origin_to = dataSource.origin_total,
23
+ origin_total = _dataSource$origin_to === void 0 ? 0 : _dataSource$origin_to,
24
+ _dataSource$num = dataSource.num,
25
+ num = _dataSource$num === void 0 ? 1 : _dataSource$num;
26
+ var renderNumTag = function renderNumTag() {
27
+ if (num > 1) return /*#__PURE__*/React.createElement("div", {
28
+ className: classNames("num-tag", {
29
+ 'is-main': isMainProduct
30
+ })
31
+ }, num < 99 ? num : '99+');
32
+ return null;
33
+ };
34
+ var hasSpecs = (bundle === null || bundle === void 0 ? void 0 : bundle.length) || (options === null || options === void 0 ? void 0 : options.length) || product_option_string;
35
+ return /*#__PURE__*/React.createElement("div", {
36
+ className: "".concat(PREFIX, "__basic-info"),
37
+ style: style || {}
38
+ }, renderNumTag(), isShowImage && image && /*#__PURE__*/React.createElement("img", {
39
+ src: imageAli.ali(image, 64),
40
+ className: "product-cover"
41
+ }), (!isShowImage || !image) && num > 1 ? /*#__PURE__*/React.createElement("div", {
42
+ style: {
43
+ width: 26
44
+ }
45
+ }) : null, /*#__PURE__*/React.createElement("div", {
46
+ className: "product-info"
47
+ }, /*#__PURE__*/React.createElement("div", {
48
+ className: "product-name"
49
+ }, name), hasSpecs ? /*#__PURE__*/React.createElement(Specs, {
50
+ dataSource: dataSource
51
+ }) : /*#__PURE__*/React.createElement("div", {
52
+ className: "product-price"
53
+ }, formatAmount(price, 2, symbol))), /*#__PURE__*/React.createElement("div", {
54
+ className: "product-amount"
55
+ }, /*#__PURE__*/React.createElement("div", {
56
+ className: "total-amont"
57
+ }, formatAmount(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /*#__PURE__*/React.createElement("div", {
58
+ className: "origin-amount"
59
+ }, formatAmount(origin_total * num, 2, symbol)) : null));
60
+ };
61
+ export default BasicInfo;