@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
@@ -46,33 +46,35 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
46
46
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
47
47
  const { isShowChangeHolder } = (0, import_useHolderConfig.default)(state);
48
48
  const { handleAddHolder } = (0, import_useAddHolder.default)(state, dispatch);
49
- const handleChange = (0, import_ahooks.useMemoizedFn)((currentItem, type, other) => {
50
- if (state.disabledEdit || state.disableEventBookingEdit) {
51
- return;
52
- }
53
- let products = (0, import_utils.updateServices)(state, currentItem, type, other, {
54
- handleAddHolder
55
- });
56
- if (type === "view") {
57
- let product = currentItem._origin;
58
- let cacheItem = { ...product, new: 0 };
59
- if (isParallelResource) {
60
- cacheItem = (0, import_utils2.getProductExtend)({
61
- cacheItem,
62
- state
63
- });
49
+ const handleChange = (0, import_ahooks.useMemoizedFn)(
50
+ (currentItem, type, other) => {
51
+ if (state.disabledEdit || state.disableEventBookingEdit) {
52
+ return;
53
+ }
54
+ let products = (0, import_utils.updateServices)(state, currentItem, type, other, {
55
+ handleAddHolder
56
+ });
57
+ if (type === "view" || type === "edit_product") {
58
+ let product = currentItem._origin;
59
+ let cacheItem = { ...product, new: 0 };
60
+ if (isParallelResource) {
61
+ cacheItem = (0, import_utils2.getProductExtend)({
62
+ cacheItem,
63
+ state
64
+ });
65
+ }
66
+ onChange({ editModal: true, cacheItem });
67
+ return onEdit == null ? void 0 : onEdit({ ...product, new: 0 }, type);
64
68
  }
65
- onChange({ editModal: true, cacheItem });
66
- return onEdit == null ? void 0 : onEdit({ ...product, new: 0 });
69
+ const params = {
70
+ editModal: false,
71
+ value: products,
72
+ edit: true,
73
+ cacheItem: null
74
+ };
75
+ onChange(params);
67
76
  }
68
- const params = {
69
- editModal: false,
70
- value: products,
71
- edit: true,
72
- cacheItem: null
73
- };
74
- onChange(params);
75
- });
77
+ );
76
78
  const productParams = (0, import_react.useMemo)(() => {
77
79
  return {
78
80
  hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
@@ -84,9 +86,15 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
84
86
  maxLength: (0, import_utils.isEventBooking)(state) ? 1 : 999,
85
87
  isShowChangeHolder,
86
88
  isShowChangeResource: true,
87
- isShowAddHolderButton: true
89
+ isShowAddHolderButton: true,
90
+ isShowEditProduct: true
88
91
  };
89
- }, [state == null ? void 0 : state.bookingId, state == null ? void 0 : state.disabledEdit, isShowChangeHolder, state.isBookingCreatePage]);
92
+ }, [
93
+ state == null ? void 0 : state.bookingId,
94
+ state == null ? void 0 : state.disabledEdit,
95
+ isShowChangeHolder,
96
+ state.isBookingCreatePage
97
+ ]);
90
98
  return /* @__PURE__ */ import_react.default.createElement(import_Provider.CartContext.Provider, { value: { state } }, /* @__PURE__ */ import_react.default.createElement(
91
99
  import_shoppingCart.default,
92
100
  {
@@ -98,7 +106,13 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
98
106
  onAddProduct: () => onChange({ addModal: true }),
99
107
  productParams: {
100
108
  ...productParams,
101
- products: (0, import_utils.formatProducts)(((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value) || [], state, false, true, isParallelResource)
109
+ products: (0, import_utils.formatProducts)(
110
+ ((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value) || [],
111
+ state,
112
+ false,
113
+ true,
114
+ isParallelResource
115
+ )
102
116
  }
103
117
  }
104
118
  ));
@@ -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;
@@ -264,20 +264,27 @@ var Info = (_, ref) => {
264
264
  }
265
265
  await editBooking({ booking: data });
266
266
  });
267
- const setEditData = (0, import_ahooks.useMemoizedFn)((_cacheItem, open) => {
268
- setCurrentTab("batch_edit");
269
- isChangeTotal.current = false;
270
- let cacheItem = _cacheItem || state.service.cacheItem;
271
- let values = cacheItem._extend;
272
- values = {
273
- ...values,
274
- discount_reason: (values == null ? void 0 : values.discount_reason) || ""
275
- };
276
- form.setFieldsValue(values);
277
- if (!isEventBookingMode) {
278
- getResources(cacheItem, open);
267
+ const setEditData = (0, import_ahooks.useMemoizedFn)(
268
+ (_cacheItem, open, openProductDetail) => {
269
+ setCurrentTab("batch_edit");
270
+ isChangeTotal.current = false;
271
+ let cacheItem = _cacheItem || state.service.cacheItem;
272
+ let values = cacheItem._extend;
273
+ values = {
274
+ ...values,
275
+ discount_reason: (values == null ? void 0 : values.discount_reason) || ""
276
+ };
277
+ form.setFieldsValue(values);
278
+ if (openProductDetail) {
279
+ setTimeout(() => {
280
+ handleEdit({});
281
+ }, 100);
282
+ }
283
+ if (!isEventBookingMode) {
284
+ getResources(cacheItem, open);
285
+ }
279
286
  }
280
- });
287
+ );
281
288
  const isReason = (0, import_react.useMemo)(() => {
282
289
  var _a2;
283
290
  let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
@@ -66,10 +66,10 @@ var Service = () => {
66
66
  }
67
67
  return true;
68
68
  }, [state, appointment_card.quick_time]);
69
- const handleEdit = (cacheItem) => {
69
+ const handleEdit = (cacheItem, type) => {
70
70
  setTimeout(() => {
71
71
  var _a2, _b2;
72
- (_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem);
72
+ (_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem, false, type === "edit_product");
73
73
  }, 100);
74
74
  };
75
75
  const clearCart = (0, import_useClearCart.default)(state, dispatch);
@@ -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;
@@ -55,10 +55,10 @@ var Service2Cart = ({
55
55
  payload: { ...payload }
56
56
  });
57
57
  };
58
- const handleEdit = (cacheItem) => {
58
+ const handleEdit = (cacheItem, type) => {
59
59
  setTimeout(() => {
60
60
  var _a, _b;
61
- (_b = (_a = detailRef.current) == null ? void 0 : _a.init) == null ? void 0 : _b.call(_a, cacheItem);
61
+ (_b = (_a = detailRef.current) == null ? void 0 : _a.init) == null ? void 0 : _b.call(_a, cacheItem, false, type === "edit_product");
62
62
  }, 100);
63
63
  };
64
64
  const { dom } = (0, import_useQuotation.default)(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>;
@@ -206,13 +206,20 @@ var Info = (_, ref) => {
206
206
  }
207
207
  });
208
208
  };
209
- const setEditData = (0, import_ahooks.useMemoizedFn)((_cacheItem) => {
210
- form.resetFields();
211
- isChangeTotal.current = false;
212
- let cacheItem = _cacheItem || state.service.cacheItem;
213
- let values = cacheItem._extend;
214
- form.setFieldsValue(values);
215
- });
209
+ const setEditData = (0, import_ahooks.useMemoizedFn)(
210
+ (_cacheItem, open, openProductDetail) => {
211
+ form.resetFields();
212
+ isChangeTotal.current = false;
213
+ let cacheItem = _cacheItem || state.service.cacheItem;
214
+ let values = cacheItem._extend;
215
+ form.setFieldsValue(values);
216
+ if (openProductDetail) {
217
+ setTimeout(() => {
218
+ handleEdit({});
219
+ }, 100);
220
+ }
221
+ }
222
+ );
216
223
  const isReason = (0, import_react.useMemo)(() => {
217
224
  var _a2;
218
225
  let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ServiceList: ({ onEdit }: {
3
4
  onEdit: any;
@@ -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
+ }>;
@@ -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 +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
+ }>;
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -60,7 +60,7 @@ var Schedule = () => {
60
60
  if (!id) return;
61
61
  getEventDetailSelectDate.run(id, {
62
62
  days: 366,
63
- start_date: `${e}-01`
63
+ start_date: `${e}-01-01`
64
64
  });
65
65
  },
66
66
  type: initData == null ? void 0 : initData.scheduleDisplayType
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
32
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
+ state: FormState;
34
+ } & {
35
+ dispatch: (params: {
36
+ type: string;
37
+ payload: any;
38
+ }) => void;
39
+ }>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
- request = {};
31
30
  constructor() {
31
+ this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -50,7 +50,8 @@ var Product = (props) => {
50
50
  isShowDelete,
51
51
  isShowChangeHolder,
52
52
  isShowHolder,
53
- isShowAddHolderButton
53
+ isShowAddHolderButton,
54
+ isShowEditProduct
54
55
  } = state;
55
56
  const clearCart = (0, import_useClearCart.default)(id);
56
57
  const handleChange = (item, type, other) => {
@@ -66,7 +67,8 @@ var Product = (props) => {
66
67
  isShowChangeHolder,
67
68
  isShowDelete,
68
69
  isShowHolder,
69
- isShowAddHolderButton
70
+ isShowAddHolderButton,
71
+ isShowEditProduct
70
72
  };
71
73
  }, [
72
74
  isShowNote,
@@ -76,7 +78,8 @@ var Product = (props) => {
76
78
  isShowDelete,
77
79
  isShowHolder,
78
80
  isShowAddHolderButton,
79
- isShowChangeHolder
81
+ isShowChangeHolder,
82
+ isShowEditProduct
80
83
  ]);
81
84
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
82
85
  return /* @__PURE__ */ import_react.default.createElement(
@@ -88,6 +91,7 @@ var Product = (props) => {
88
91
  onDelete: (e) => handleChange(e, "delete", item),
89
92
  onNote: (e) => handleChange(e, "note", { note: e.note }),
90
93
  onLike: (e) => handleChange(e, "like", { like_status: e.like_status }),
94
+ onEditProduct: (e) => handleChange == null ? void 0 : handleChange(e, "edit_product"),
91
95
  onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
92
96
  onChangeResource: (e) => handleChange(item, "change_resource", e),
93
97
  onChangeHolder: (e) => handleChange(item, "change_holder", e),
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { shoppingCartProps } from './type';
2
3
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
3
4
  export default shoppingCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const TicketBooking: () => JSX.Element;
3
4
  export default TicketBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from '../serve';
2
3
  /**
3
4
  * 钱包卡片Hook的参数