@pisell/private-materials 3.3.29 → 3.3.30

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 (189) 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 +1 -1
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +4 -4
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/index.d.ts +1 -0
  16. package/es/components/booking/addons/model.d.ts +10 -1
  17. package/es/components/booking/addons/model.js +5 -5
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  19. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  20. package/es/components/booking/components/browserSelect/index.js +1 -1
  21. package/es/components/booking/components/footer/index.d.ts +1 -0
  22. package/es/components/booking/components/footer/index.js +33 -13
  23. package/es/components/booking/components/footer/index.less +6 -1
  24. package/es/components/booking/deposit/index.d.ts +1 -0
  25. package/es/components/booking/deposit/index.js +4 -2
  26. package/es/components/booking/forms/model.d.ts +10 -1
  27. package/es/components/booking/forms/model.js +5 -5
  28. package/es/components/booking/info/client/index.js +2 -1
  29. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -1
  30. package/es/components/booking/info/hooks/useInfoHolder.js +2 -2
  31. package/es/components/booking/info/model.d.ts +10 -1
  32. package/es/components/booking/info/service/Lists.d.ts +1 -0
  33. package/es/components/booking/info/service/Lists.js +5 -4
  34. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  35. package/es/components/booking/info/service/editService/index.d.ts +1 -1
  36. package/es/components/booking/info/service/editService/index.js +6 -1
  37. package/es/components/booking/info/service/index.js +2 -2
  38. package/es/components/booking/info/service/like/index.js +1 -1
  39. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  40. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  41. package/es/components/booking/info/service2/index.js +2 -2
  42. package/es/components/booking/info/service2/utils.d.ts +1 -1
  43. package/es/components/booking/info2/service/editService/index.js +6 -1
  44. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  45. package/es/components/booking/materiels/startTime/index.js +1 -1
  46. package/es/components/booking/model.d.ts +9 -1
  47. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  48. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  49. package/es/components/booking/notes/model.d.ts +10 -1
  50. package/es/components/booking/notes/model.js +5 -5
  51. package/es/components/booking/payments/model.d.ts +10 -1
  52. package/es/components/booking/payments/model.js +5 -5
  53. package/es/components/eftposPay/amount.d.ts +1 -1
  54. package/es/components/eftposPay/device.d.ts +1 -1
  55. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  56. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  59. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +1 -1
  60. package/es/components/eventBooking/index.d.ts +1 -0
  61. package/es/components/listComponent/index.js +5 -5
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  63. package/es/components/pay/toC/model.d.ts +9 -1
  64. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  65. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  66. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  67. package/es/components/productExtension/card/index.js +3 -3
  68. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  69. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  70. package/es/components/productExtension/fields/Forms/index.js +12 -12
  71. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  72. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  73. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  74. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  75. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  76. package/es/components/productExtension/index.d.ts +1 -0
  77. package/es/components/productExtension/server.js +2 -2
  78. package/es/components/ruleSetting/index.d.ts +1 -0
  79. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  80. package/es/components/schedules/calendar/index.js +4 -4
  81. package/es/components/schedules/calendar/serve.js +2 -2
  82. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  83. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  84. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  85. package/es/components/schedules/components/ResourceList/index.js +1 -1
  86. package/es/components/schedules/components/Search/index.js +5 -5
  87. package/es/components/schedules/model.d.ts +9 -1
  88. package/es/components/schedules/model.js +5 -5
  89. package/es/components/schedules/openHours/index.js +1 -1
  90. package/es/components/schedules/openHours/serve.js +2 -2
  91. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  92. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  93. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  94. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  95. package/es/components/schedules/products/serve.js +2 -2
  96. package/es/components/schedules/products/utils.js +5 -5
  97. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  98. package/es/components/schedules/resources/detail/index.js +10 -10
  99. package/es/components/schedules/resources/list/index.js +2 -2
  100. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  101. package/es/components/schedules/resources/serve.js +2 -2
  102. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  103. package/es/components/schedules/utils.d.ts +1 -1
  104. package/es/components/schedules/utils.js +4 -4
  105. package/es/components/selectModal/index.js +2 -2
  106. package/es/components/shoppingCart/components/Cart/Product.js +8 -3
  107. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  108. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  109. package/es/components/shoppingCart/index.d.ts +1 -0
  110. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  111. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  112. package/es/components/ticketBooking/index.d.ts +1 -0
  113. package/es/components/wallet/Detail/model.d.ts +13 -1
  114. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  115. package/es/components/wallet/PointCard/model.d.ts +13 -1
  116. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  117. package/es/components/wallet/Voucher/model.d.ts +13 -1
  118. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  119. package/es/components/wallet/model.d.ts +9 -1
  120. package/es/hooks/useComponents.js +1 -1
  121. package/es/utils/index.d.ts +1 -1
  122. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  123. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  124. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  125. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  126. package/lib/components/appointmentBooking/index.d.ts +1 -0
  127. package/lib/components/booking/addons/model.d.ts +10 -1
  128. package/lib/components/booking/components/footer/index.d.ts +1 -0
  129. package/lib/components/booking/components/footer/index.js +66 -30
  130. package/lib/components/booking/components/footer/index.less +6 -1
  131. package/lib/components/booking/deposit/index.d.ts +1 -0
  132. package/lib/components/booking/deposit/index.js +4 -2
  133. package/lib/components/booking/forms/model.d.ts +10 -1
  134. package/lib/components/booking/info/client/index.js +2 -1
  135. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -1
  136. package/lib/components/booking/info/hooks/useInfoHolder.js +2 -2
  137. package/lib/components/booking/info/model.d.ts +10 -1
  138. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  139. package/lib/components/booking/info/service/Lists.js +42 -28
  140. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  141. package/lib/components/booking/info/service/editService/index.d.ts +1 -1
  142. package/lib/components/booking/info/service/editService/index.js +20 -13
  143. package/lib/components/booking/info/service/index.js +2 -2
  144. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  145. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  146. package/lib/components/booking/info/service2/index.js +2 -2
  147. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  148. package/lib/components/booking/info2/service/editService/index.js +14 -7
  149. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  150. package/lib/components/booking/model.d.ts +9 -1
  151. package/lib/components/booking/notes/model.d.ts +10 -1
  152. package/lib/components/booking/payments/model.d.ts +10 -1
  153. package/lib/components/eftposPay/amount.d.ts +1 -1
  154. package/lib/components/eftposPay/device.d.ts +1 -1
  155. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  156. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  157. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  158. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  159. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +1 -1
  160. package/lib/components/eventBooking/index.d.ts +1 -0
  161. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  162. package/lib/components/pay/toC/model.d.ts +9 -1
  163. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  164. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  165. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  166. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  167. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  168. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  169. package/lib/components/productExtension/index.d.ts +1 -0
  170. package/lib/components/ruleSetting/index.d.ts +1 -0
  171. package/lib/components/schedules/model.d.ts +9 -1
  172. package/lib/components/schedules/utils.d.ts +1 -1
  173. package/lib/components/schedules/utils.js +1 -1
  174. package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
  175. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  176. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  177. package/lib/components/shoppingCart/index.d.ts +1 -0
  178. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  179. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  180. package/lib/components/ticketBooking/index.d.ts +1 -0
  181. package/lib/components/wallet/Detail/model.d.ts +13 -1
  182. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  183. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  184. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  185. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  186. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  187. package/lib/components/wallet/model.d.ts +9 -1
  188. package/lib/utils/index.d.ts +1 -1
  189. package/package.json +4 -4
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,9 +1,9 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -6,7 +6,7 @@ import CollapsibleList from "../../collapsibleList";
6
6
  import { renderBundles } from "../../collapsibleList/utils";
7
7
  import "./index.less";
8
8
  var SelectProductItem = function SelectProductItem(_ref) {
9
- var _item$_extend, _item$_extend2;
9
+ var _item$_extend, _item$_extend$other, _item$_extend2, _item$_extend2$other;
10
10
  var item = _ref.item,
11
11
  _onClick = _ref.onClick,
12
12
  onChangeQuantity = _ref.onChangeQuantity,
@@ -28,7 +28,7 @@ var SelectProductItem = function SelectProductItem(_ref) {
28
28
  style: style,
29
29
  className: classNames("server-select-product", className),
30
30
  onClick: function onClick() {
31
- _onClick === null || _onClick === void 0 || _onClick(item);
31
+ _onClick === null || _onClick === void 0 ? void 0 : _onClick(item);
32
32
  }
33
33
  }, item.cover ? /*#__PURE__*/React.createElement("img", {
34
34
  src: image.ali(item.cover, 100),
@@ -39,11 +39,11 @@ var SelectProductItem = function SelectProductItem(_ref) {
39
39
  className: "server-select-product-title"
40
40
  }, item.title), /*#__PURE__*/React.createElement("div", {
41
41
  className: "server-select-product-subtitle"
42
- }, item.subtitle || ""), (((_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []).length ? /*#__PURE__*/React.createElement(CollapsibleList, {
42
+ }, item.subtitle || ""), (((_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : (_item$_extend$other = _item$_extend.other) === null || _item$_extend$other === void 0 ? void 0 : _item$_extend$other.bundle) || []).length ? /*#__PURE__*/React.createElement(CollapsibleList, {
43
43
  style: {
44
44
  width: "100%"
45
45
  },
46
- list: ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 || (_item$_extend2 = _item$_extend2.other) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.bundle) || [],
46
+ list: ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : (_item$_extend2$other = _item$_extend2.other) === null || _item$_extend2$other === void 0 ? void 0 : _item$_extend2$other.bundle) || [],
47
47
  renderItem: function renderItem(item) {
48
48
  return renderBundles(item, amountSymbol);
49
49
  }
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
2
2
  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."); }
3
3
  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); }
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
8
8
  import classNames from "classnames";
@@ -13,10 +13,6 @@ import "./index.less";
13
13
 
14
14
  // tabs 子组件定义
15
15
 
16
- // 定义主键类型
17
-
18
- // Tabs 可传递的参数
19
-
20
16
  var Tabs = function Tabs(_ref, ref) {
21
17
  var renderTab = _ref.renderTab,
22
18
  rowKey = _ref.rowKey,
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
29
29
  onChange: function onChange(e) {
30
30
  var _resetProps$onChange;
31
31
  e.persist();
32
- (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
32
+ (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
33
33
  }
34
34
  }), _options);
35
35
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -20,7 +20,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
  import { DownOutlined } from '@ant-design/icons';
21
21
  import ChevronDown from '@pisell/icon/es/ChevronDown';
22
22
  import { formatAmount, locales } from '@pisell/utils';
23
- import { Button, Dropdown, Modal, Skeleton, Space, message } from 'antd';
23
+ import { Button, Dropdown, Modal, Skeleton, Space, message, ConfigProvider } from 'antd';
24
24
  import classNames from 'classnames';
25
25
  import React, { useEffect, useMemo, useRef, useState } from 'react';
26
26
  import useEngineContext from "../../../../hooks/useEngineContext";
@@ -626,17 +626,23 @@ var Footer = function Footer(props) {
626
626
  if (!isEdit) {
627
627
  buttonType = 'primary';
628
628
  }
629
- return /*#__PURE__*/React.createElement(Button, {
630
- className: "pisell-lowcode__booking-footer-buttons-item"
629
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
630
+ theme: {
631
+ token: {
632
+ colorPrimary: buttonType === 'primary' ? '#7F56DA' : '#F79009'
633
+ }
634
+ }
635
+ }, /*#__PURE__*/React.createElement(Button, {
636
+ className: classNames('pisell-lowcode__booking-footer-buttons-item', _defineProperty({}, 'pisell-lowcode__booking-footer-buttons-item-primary', buttonType === 'primary'))
631
637
  // payment页面为主按钮 info页面 编辑时默认按钮 否则是主按钮
632
638
  ,
633
- type: buttonType,
639
+ type: 'primary',
634
640
  loading: checkoutLoading,
635
641
  onClick: function onClick() {
636
642
  handleCheckout();
637
643
  },
638
644
  disabled: isDisabled
639
- }, locales.getText('pisell2.text.checkout'));
645
+ }, locales.getText('pisell2.text.checkout')));
640
646
  }, [isEdit, checkoutLoading, isDisabled, state, source]);
641
647
  var handleMenuClick = /*#__PURE__*/function () {
642
648
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(e) {
@@ -779,9 +785,15 @@ var Footer = function Footer(props) {
779
785
  if (transaction_habit_selection.type === 'service_now_pay_later') {
780
786
  buttonType = 'primary';
781
787
  }
782
- return /*#__PURE__*/React.createElement(Button, {
783
- className: "pisell-lowcode__booking-footer-buttons-item",
784
- type: buttonType,
788
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
789
+ theme: {
790
+ token: {
791
+ colorPrimary: buttonType === 'primary' ? '#7F56DA' : '#F79009'
792
+ }
793
+ }
794
+ }, /*#__PURE__*/React.createElement(Button, {
795
+ className: classNames('pisell-lowcode__booking-footer-buttons-item', _defineProperty({}, 'pisell-lowcode__booking-footer-buttons-item-primary', buttonType === 'primary')),
796
+ type: 'primary',
785
797
  onClick: function onClick() {
786
798
  handleSave({
787
799
  type: 'save'
@@ -789,7 +801,7 @@ var Footer = function Footer(props) {
789
801
  },
790
802
  disabled: isDisabled || !isEdit,
791
803
  loading: loading
792
- }, locales.getText('pisell2.text.save'));
804
+ }, locales.getText('pisell2.text.save')));
793
805
  }, [loading, isDisabled, isEdit, infoEdit, addonsEdit, state]);
794
806
 
795
807
  /**
@@ -852,11 +864,19 @@ var Footer = function Footer(props) {
852
864
  * @Date: 2024-10-26 10:52:01
853
865
  */
854
866
  var clearAllButton = useMemo(function () {
855
- return /*#__PURE__*/React.createElement(Button, {
867
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
868
+ theme: {
869
+ token: {
870
+ colorPrimary: '#f04438'
871
+ }
872
+ }
873
+ }, /*#__PURE__*/React.createElement(Button, {
856
874
  className: "pisell-lowcode__booking-footer-buttons-item",
857
- type: "default",
875
+ type: "primary",
858
876
  onClick: handleClearAll
859
- }, locales.getText('pisell2.booking.info.text.clear-all'));
877
+ // color="#f04438"
878
+ // style={{ backgroundColor: '#f04438', color: '#fff' }}
879
+ }, locales.getText('pisell2.booking.info.text.clear-all')));
860
880
  }, []);
861
881
  var buttonMap = {
862
882
  checkout: checkoutButton,
@@ -1288,7 +1308,7 @@ var Footer = function Footer(props) {
1288
1308
  padding: "0"
1289
1309
  }
1290
1310
  }), /*#__PURE__*/React.createElement("div", {
1291
- className: state.bookingId ? "order-total-item-border" : ""
1311
+ className: state.bookingId ? 'order-total-item-border' : ''
1292
1312
  }), !!state.bookingId && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubTotal, {
1293
1313
  mode: "column1",
1294
1314
  list: orderTotalList,
@@ -111,7 +111,7 @@
111
111
  display: flex;
112
112
  align-items: center;
113
113
  justify-content: flex-start;
114
- gap: 12px;
114
+ gap: 8px !important;
115
115
 
116
116
 
117
117
 
@@ -122,4 +122,9 @@
122
122
  justify-content: center;
123
123
  flex: 1;
124
124
  }
125
+
126
+ .pisell-lowcode__booking-footer-buttons-item-primary {
127
+ flex: 2 !important;
128
+ order: 1;
129
+ }
125
130
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -79,7 +79,8 @@ var Deposit = function Deposit(props) {
79
79
  }).then(function (res) {
80
80
  setState({
81
81
  bookingDetail: _objectSpread(_objectSpread({}, bookingDetail), {}, {
82
- deposit_amount: 0
82
+ deposit_amount: 0,
83
+ is_deposit: 0
83
84
  })
84
85
  });
85
86
  callback === null || callback === void 0 || callback({
@@ -139,7 +140,8 @@ var Deposit = function Deposit(props) {
139
140
  }).then(function (res) {
140
141
  setState({
141
142
  bookingDetail: _objectSpread(_objectSpread({}, bookingDetail), {}, {
142
- deposit_amount: amount
143
+ deposit_amount: amount,
144
+ is_deposit: 1
143
145
  })
144
146
  });
145
147
  callback === null || callback === void 0 || callback({
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,9 +1,9 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -284,7 +284,8 @@ var Client = function Client() {
284
284
  getClients(_objectSpread(_objectSpread({}, state.client.clientsParams), {}, {
285
285
  search: '',
286
286
  customer_id: data === null || data === void 0 ? void 0 : data.id,
287
- skip: 1
287
+ skip: 1,
288
+ sort_by: 'id'
288
289
  }));
289
290
  }
290
291
  });
@@ -2,7 +2,7 @@
2
2
  import { EditServiceRef } from "../service/editService";
3
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
5
- handleEdit: (cacheItem: any) => void;
5
+ handleEdit: (cacheItem: any, type?: string) => void;
6
6
  dispatchService: (type: string, payload: any) => void;
7
7
  handleAction: (dataSource: any) => void;
8
8
  showAddTimeModal: boolean;
@@ -30,10 +30,10 @@ var useInfoHolder = function useInfoHolder(state, dispatch) {
30
30
  var showAddTimeModal = useMemo(function () {
31
31
  return isOpenAddTime(state);
32
32
  }, [state, appointment_card.quick_time]);
33
- var handleEdit = function handleEdit(cacheItem) {
33
+ var handleEdit = function handleEdit(cacheItem, type) {
34
34
  setTimeout(function () {
35
35
  var _detailRef$current, _detailRef$current$in;
36
- (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem);
36
+ (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem, false, type === 'edit_product');
37
37
  }, 100);
38
38
  };
39
39
  var dispatchService = function dispatchService(type, payload) {
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
3
  export default Lists;
@@ -10,7 +10,7 @@ import { CartContext } from "../../../shoppingCart/Provider";
10
10
  import { Context } from "../model";
11
11
  import { formatProducts, isEventBooking, updateServices } from "../service2/utils";
12
12
  import useHolderConfig from "../hooks/useHolderConfig";
13
- import { useMemoizedFn } from "ahooks";
13
+ import { useMemoizedFn } from 'ahooks';
14
14
  import { getProductExtend } from "../../info2/service/addService/utils";
15
15
  import useAddHolder from "../hooks/useAddHolder";
16
16
  var Lists = function Lists(_ref) {
@@ -44,7 +44,7 @@ var Lists = function Lists(_ref) {
44
44
  });
45
45
 
46
46
  // 查看
47
- if (type === 'view') {
47
+ if (type === 'view' || type === 'edit_product') {
48
48
  var product = currentItem._origin;
49
49
  var cacheItem = _objectSpread(_objectSpread({}, product), {}, {
50
50
  new: 0
@@ -61,7 +61,7 @@ var Lists = function Lists(_ref) {
61
61
  });
62
62
  return onEdit === null || onEdit === void 0 ? void 0 : onEdit(_objectSpread(_objectSpread({}, product), {}, {
63
63
  new: 0
64
- }));
64
+ }), type);
65
65
  }
66
66
  var params = {
67
67
  editModal: false,
@@ -91,7 +91,8 @@ var Lists = function Lists(_ref) {
91
91
  maxLength: isEventBooking(state) ? 1 : 999,
92
92
  isShowChangeHolder: isShowChangeHolder,
93
93
  isShowChangeResource: true,
94
- isShowAddHolderButton: true
94
+ isShowAddHolderButton: true,
95
+ isShowEditProduct: true
95
96
  };
96
97
  }, [state === null || state === void 0 ? void 0 : state.bookingId, state === null || state === void 0 ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage]);
97
98
  return /*#__PURE__*/React.createElement(CartContext.Provider, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellDrawerProps } from '../../../components/drawer';
2
3
  import './index.less';
3
4
  interface AddServiceProps {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  export interface EditServiceRef {
4
- init: (cacheItem?: any) => void;
4
+ init: (cacheItem?: any, open?: boolean, openEditProduct?: boolean) => void;
5
5
  }
6
6
  declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
7
7
  export default _default;
@@ -421,7 +421,7 @@ var Info = function Info(_, ref) {
421
421
  return _ref2.apply(this, arguments);
422
422
  };
423
423
  }());
424
- var setEditData = useMemoizedFn(function (_cacheItem, open) {
424
+ var setEditData = useMemoizedFn(function (_cacheItem, open, openProductDetail) {
425
425
  var _values;
426
426
  setCurrentTab('batch_edit');
427
427
  isChangeTotal.current = false;
@@ -433,6 +433,11 @@ var Info = function Info(_, ref) {
433
433
  discount_reason: ((_values = values) === null || _values === void 0 ? void 0 : _values.discount_reason) || ''
434
434
  });
435
435
  form.setFieldsValue(values);
436
+ if (openProductDetail) {
437
+ setTimeout(function () {
438
+ handleEdit({});
439
+ }, 100);
440
+ }
436
441
  if (!isEventBookingMode) {
437
442
  // 获取资源列表
438
443
  getResources(cacheItem, open);
@@ -39,10 +39,10 @@ var Service = function Service() {
39
39
  }
40
40
  return true;
41
41
  }, [state, appointment_card.quick_time]);
42
- var handleEdit = function handleEdit(cacheItem) {
42
+ var handleEdit = function handleEdit(cacheItem, type) {
43
43
  setTimeout(function () {
44
44
  var _detailRef$current, _detailRef$current$in;
45
- (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem);
45
+ (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem, false, type === 'edit_product');
46
46
  }, 100);
47
47
  };
48
48
  var clearCart = useClearCart(state, dispatch);
@@ -19,7 +19,7 @@ var Like = function Like(_ref) {
19
19
  }
20
20
  e.preventDefault();
21
21
  e.stopPropagation();
22
- onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
22
+ onChange === null || onChange === void 0 ? void 0 : onChange(status === "like" ? "common" : "like");
23
23
  }
24
24
  });
25
25
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
3
  export default Lists;
@@ -37,10 +37,10 @@ export var Service2Cart = function Service2Cart(_ref) {
37
37
  payload: _objectSpread({}, payload)
38
38
  });
39
39
  };
40
- var handleEdit = function handleEdit(cacheItem) {
40
+ var handleEdit = function handleEdit(cacheItem, type) {
41
41
  setTimeout(function () {
42
42
  var _detailRef$current, _detailRef$current$in;
43
- (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem);
43
+ (_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem, false, type === 'edit_product');
44
44
  }, 100);
45
45
  };
46
46
  var _useQuotation = useQuotation(state, dispatch),
@@ -240,4 +240,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
240
240
  * @Author: WangHan
241
241
  * @Date: 2024-12-24 11:32
242
242
  */
243
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
243
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -268,12 +268,17 @@ var Info = function Info(_, ref) {
268
268
  }
269
269
  });
270
270
  };
271
- var setEditData = useMemoizedFn(function (_cacheItem) {
271
+ var setEditData = useMemoizedFn(function (_cacheItem, open, openProductDetail) {
272
272
  form.resetFields();
273
273
  isChangeTotal.current = false;
274
274
  var cacheItem = _cacheItem || state.service.cacheItem;
275
275
  var values = cacheItem._extend;
276
276
  form.setFieldsValue(values);
277
+ if (openProductDetail) {
278
+ setTimeout(function () {
279
+ handleEdit({});
280
+ }, 100);
281
+ }
277
282
  });
278
283
 
279
284
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -25,7 +25,7 @@ var StartTime = function StartTime(props) {
25
25
  return sliceDayIntoFiveMinutes(slice, locale);
26
26
  }, [slice, locale]);
27
27
  useEffect(function () {
28
- timeObjChange === null || timeObjChange === void 0 || timeObjChange(timeObj);
28
+ timeObjChange === null || timeObjChange === void 0 ? void 0 : timeObjChange(timeObj);
29
29
  }, [timeObj]);
30
30
  var renderOptions = useCallback(function (array) {
31
31
  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "value";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
108
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
+ state: FormState;
110
+ } & {
111
+ dispatch: (params: {
112
+ type: string;
113
+ payload: any;
114
+ }) => void;
115
+ }>;
@@ -18,7 +18,7 @@ var NoteItem = function NoteItem(props) {
18
18
  _props$menus = props.menus,
19
19
  menus = _props$menus === void 0 ? defaultMenus : _props$menus;
20
20
  var menuChange = function menuChange(e) {
21
- onChange === null || onChange === void 0 || onChange(item, e.key);
21
+ onChange === null || onChange === void 0 ? void 0 : onChange(item, e.key);
22
22
  };
23
23
  return /*#__PURE__*/React.createElement("div", {
24
24
  className: "pisell-lowcode__booking-notes-item"