@pisell/private-materials 6.3.5 → 6.3.7

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 (203) 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.js +1 -1
  8. package/build/lowcode/view.js +8 -8
  9. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  12. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  14. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  15. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  16. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  17. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  18. package/es/components/booking/deposit/index.d.ts +0 -1
  19. package/es/components/booking/editBookingModal/index.js +3 -4
  20. package/es/components/booking/forms/single/index.d.ts +0 -1
  21. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  22. package/es/components/booking/info/date/index.d.ts +0 -1
  23. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  24. package/es/components/booking/info/header/index.d.ts +0 -1
  25. package/es/components/booking/info/notes/index.d.ts +0 -1
  26. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  27. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  28. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  29. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  30. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  31. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  32. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  33. package/es/components/booking/info2/service/addService/utils.js +1 -1
  34. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  35. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  36. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  37. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  38. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  39. package/es/components/eftpos/index.d.ts +0 -1
  40. package/es/components/eftpos/pos.d.ts +0 -1
  41. package/es/components/eftposPay/amount.d.ts +0 -1
  42. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  43. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  44. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  45. package/es/components/eftposPay/device.d.ts +0 -1
  46. package/es/components/eftposPay/payo/config.d.ts +0 -1
  47. package/es/components/eftposPay/store/index.d.ts +1 -1
  48. package/es/components/eftposPay/tip.d.ts +0 -1
  49. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  50. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  51. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  52. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  53. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  60. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  61. package/es/components/eventBooking/components/progressBar/index.js +20 -0
  62. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  64. package/es/components/eventBooking/index.d.ts +0 -1
  65. package/es/components/login/index.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  68. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  69. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +12 -2
  70. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +31 -24
  71. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  72. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  73. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  74. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  75. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  76. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  77. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  78. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  79. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  80. package/es/components/productExtension/index.d.ts +0 -1
  81. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  82. package/es/components/schedules/calendar/index.d.ts +0 -1
  83. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  84. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  85. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  88. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  89. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  90. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  91. package/es/components/schedules/products/list/index.d.ts +0 -1
  92. package/es/components/schedules/resources/index.d.ts +0 -1
  93. package/es/components/schedules/resources/list/index.d.ts +0 -1
  94. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  95. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  96. package/es/components/schedules/schedules/index.d.ts +0 -1
  97. package/es/components/schedules/utils.d.ts +1 -1
  98. package/es/components/shoppingCart/index.d.ts +0 -1
  99. package/es/components/taxSelect/index.d.ts +0 -1
  100. package/es/components/wallet/Detail/index.js +2 -2
  101. package/es/components/wallet/components/WalletCard.js +3 -2
  102. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  103. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  104. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  105. package/es/utils/index.d.ts +1 -1
  106. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  107. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  108. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  109. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  110. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  111. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  112. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  113. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  114. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  115. package/lib/components/booking/deposit/index.d.ts +0 -1
  116. package/lib/components/booking/editBookingModal/index.js +3 -4
  117. package/lib/components/booking/forms/single/index.d.ts +0 -1
  118. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  119. package/lib/components/booking/info/date/index.d.ts +0 -1
  120. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  121. package/lib/components/booking/info/header/index.d.ts +0 -1
  122. package/lib/components/booking/info/notes/index.d.ts +0 -1
  123. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  124. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  125. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  126. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  127. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  128. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  129. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  130. package/lib/components/booking/info2/service/addService/utils.js +1 -1
  131. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  132. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  133. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  134. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  135. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  136. package/lib/components/eftpos/index.d.ts +0 -1
  137. package/lib/components/eftpos/pos.d.ts +0 -1
  138. package/lib/components/eftposPay/amount.d.ts +0 -1
  139. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  140. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  141. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  142. package/lib/components/eftposPay/device.d.ts +0 -1
  143. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  144. package/lib/components/eftposPay/store/index.d.ts +1 -1
  145. package/lib/components/eftposPay/tip.d.ts +0 -1
  146. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  147. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  148. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  149. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  150. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  151. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  152. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  153. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  154. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  155. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  156. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  157. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  158. package/lib/components/eventBooking/components/progressBar/index.js +18 -0
  159. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  160. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  161. package/lib/components/eventBooking/index.d.ts +0 -1
  162. package/lib/components/login/index.d.ts +0 -1
  163. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  164. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  165. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  166. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +9 -2
  167. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +6 -2
  168. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  169. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  170. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  171. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  172. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  173. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  174. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  175. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  176. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  177. package/lib/components/productExtension/index.d.ts +0 -1
  178. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  179. package/lib/components/schedules/calendar/index.d.ts +0 -1
  180. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  181. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  182. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  183. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  184. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  185. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  186. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  187. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  188. package/lib/components/schedules/products/list/index.d.ts +0 -1
  189. package/lib/components/schedules/resources/index.d.ts +0 -1
  190. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  191. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  192. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  193. package/lib/components/schedules/schedules/index.d.ts +0 -1
  194. package/lib/components/schedules/utils.d.ts +1 -1
  195. package/lib/components/shoppingCart/index.d.ts +0 -1
  196. package/lib/components/taxSelect/index.d.ts +0 -1
  197. package/lib/components/wallet/Detail/index.js +3 -3
  198. package/lib/components/wallet/components/WalletCard.js +1 -1
  199. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  200. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  201. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  202. package/lib/utils/index.d.ts +1 -1
  203. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 空状态
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
4
3
  export default FooterMenus;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: (props: any) => JSX.Element;
3
2
  export default Deposit;
@@ -62,6 +62,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
62
62
  return {
63
63
  open: function open(params) {
64
64
  console.log('change', params);
65
+ form.resetFields();
65
66
  setParams(params);
66
67
  setOpen(true);
67
68
  }
@@ -173,9 +174,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
173
174
  });
174
175
  }, [data]);
175
176
  var updateResource = function updateResource(resource) {
176
- form.setFieldsValue({
177
- resource: resource
178
- });
177
+ form.setFieldValue('resource', resource);
179
178
  };
180
179
  var originCacheItem = useMemo(function () {
181
180
  if (!data) {
@@ -224,9 +223,9 @@ var EditBookingModal = function EditBookingModal(props, ref) {
224
223
  });
225
224
  }, [data, useToDate, useResource]);
226
225
  var initState = function initState() {
227
- form.resetFields();
228
226
  setData(null);
229
227
  setOpen(false);
228
+ form.resetFields();
230
229
  };
231
230
  var onCancel = function onCancel() {
232
231
  initState();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 表单选择器
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const header: ({ state, dispatch }: any) => JSX.Element;
4
3
  export default header;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingList: ({ items }: {
2
3
  items: any[];
3
4
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -278,7 +278,7 @@ export var setDefaultResource = function setDefaultResource(_ref6) {
278
278
  var _loop2 = function _loop2() {
279
279
  var item = _step.value;
280
280
  var renderList = item.renderList.filter(function (d) {
281
- return d.is_default == 1 || d.id === resourceId;
281
+ return d.id === resourceId;
282
282
  });
283
283
  var defaultOriginalResource = [];
284
284
  if (renderList.length === 0) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps, PosProps } from './const';
3
2
  import './device.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -298,7 +298,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 按钮操作区
4
3
  * @description: 仅包含签名
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectHolderModal: (props: any) => JSX.Element;
3
2
  export default SelectHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type CallToBookProps = {
2
3
  show: boolean;
3
4
  type: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -61,6 +61,26 @@ var ProgressBar = function ProgressBar(_ref) {
61
61
  var handleOk = function handleOk() {
62
62
  var _interaction$utils, _interaction$utils$is;
63
63
  if (interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils)) {
64
+ var url = window.location.href;
65
+
66
+ // 如果 url中包含 isByTabbar 删除url中的cacheId 并刷新页面
67
+ if (url.includes('isByTabbar')) {
68
+ removeSessionStorage === null || removeSessionStorage === void 0 || removeSessionStorage();
69
+ var urlParams = new URLSearchParams(window.location.search);
70
+ urlParams.delete('cacheId');
71
+ setOpen(false);
72
+ interaction.utils.postMessageToApp({
73
+ module: 'global',
74
+ key: 'openNative',
75
+ data: {
76
+ link: {
77
+ page: "home"
78
+ }
79
+ }
80
+ });
81
+ window.location.href = window.location.pathname + '?' + urlParams.toString();
82
+ return;
83
+ }
64
84
  interaction.utils.postMessageToApp({
65
85
  module: 'global',
66
86
  key: 'paymentResultAction',
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from '../../type';
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface LoginProps {
4
3
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
4
3
  export default ThreedsLoading;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -10,6 +10,7 @@ export interface WalletPassListProps {
10
10
  walletSetting: {
11
11
  name: string;
12
12
  };
13
+ onChangeDebounce?: boolean;
13
14
  }
14
15
  export declare type WalletPassListRef = {
15
16
  init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
@@ -20,7 +20,10 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  onChange = props.onChange,
21
21
  propsData = props.data,
22
22
  value = props.value,
23
- walletSetting = props.walletSetting;
23
+ walletSetting = props.walletSetting,
24
+ onLoadingChange = props.onLoadingChange,
25
+ propsLoading = props.loading,
26
+ onChangeDebounce = props.onChangeDebounce;
24
27
  var _useState = useState(propsData || []),
25
28
  _useState2 = _slicedToArray(_useState, 2),
26
29
  data = _useState2[0],
@@ -34,6 +37,9 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
34
37
  setData(propsData);
35
38
  }
36
39
  }, [propsData]);
40
+ useEffect(function () {
41
+ setLoading(!!propsLoading);
42
+ }, [propsLoading]);
37
43
  var getList = /*#__PURE__*/function () {
38
44
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, formatList) {
39
45
  var list;
@@ -84,6 +90,9 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
84
90
  init: init
85
91
  };
86
92
  });
93
+ useEffect(function () {
94
+ onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(loading);
95
+ }, [loading]);
87
96
 
88
97
  /**
89
98
  * 拆分出可用的和不可用的列表
@@ -131,7 +140,8 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
131
140
  value: value,
132
141
  onChange: handleChange,
133
142
  showEmpty: data.length === 0,
134
- empty: empty
143
+ empty: empty,
144
+ onChangeDebounce: onChangeDebounce
135
145
  }), !!disabledList.length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
136
146
  className: "pisell-walletPass-list-disabled"
137
147
  }, locales.getText('tocPay.text.walletPassDisabled')), /*#__PURE__*/React.createElement(PisellCardList, {
@@ -42,41 +42,45 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
42
42
  setCurrentWalletPass = _useState2[1];
43
43
  var _useState3 = useState(false),
44
44
  _useState4 = _slicedToArray(_useState3, 2),
45
- open = _useState4[0],
46
- setOpen = _useState4[1];
47
-
48
- /** 搜索 modal */
45
+ loading = _useState4[0],
46
+ setLoading = _useState4[1];
49
47
  var _useState5 = useState(false),
50
48
  _useState6 = _slicedToArray(_useState5, 2),
51
- searchOpen = _useState6[0],
52
- setSearchOpen = _useState6[1];
49
+ open = _useState6[0],
50
+ setOpen = _useState6[1];
53
51
 
54
- /** 搜索后添加的walletPass */
55
- var _useState7 = useState([]),
52
+ /** 搜索 modal */
53
+ var _useState7 = useState(false),
56
54
  _useState8 = _slicedToArray(_useState7, 2),
57
- addList = _useState8[0],
58
- setAddList = _useState8[1];
55
+ searchOpen = _useState8[0],
56
+ setSearchOpen = _useState8[1];
59
57
 
60
- /** 当前order信息 */
61
- var _useState9 = useState(null),
58
+ /** 搜索后添加的walletPass */
59
+ var _useState9 = useState([]),
62
60
  _useState10 = _slicedToArray(_useState9, 2),
63
- order = _useState10[0],
64
- setOrder = _useState10[1];
61
+ addList = _useState10[0],
62
+ setAddList = _useState10[1];
65
63
 
66
- /** 当前搜索modal内list数据 */
67
- var _useState11 = useState([]),
64
+ /** 当前order信息 */
65
+ var _useState11 = useState(null),
68
66
  _useState12 = _slicedToArray(_useState11, 2),
69
- searchData = _useState12[0],
70
- setSearchData = _useState12[1];
67
+ order = _useState12[0],
68
+ setOrder = _useState12[1];
69
+
70
+ /** 当前搜索modal内list数据 */
71
+ var _useState13 = useState([]),
72
+ _useState14 = _slicedToArray(_useState13, 2),
73
+ searchData = _useState14[0],
74
+ setSearchData = _useState14[1];
71
75
 
72
76
  /** 当前搜索modal内选中数据 */
73
- var _useState13 = useState({
77
+ var _useState15 = useState({
74
78
  ids: [],
75
79
  details: []
76
80
  }),
77
- _useState14 = _slicedToArray(_useState13, 2),
78
- searchSelectData = _useState14[0],
79
- setSearchSelectData = _useState14[1];
81
+ _useState16 = _slicedToArray(_useState15, 2),
82
+ searchSelectData = _useState16[0],
83
+ setSearchSelectData = _useState16[1];
80
84
 
81
85
  /** 是否默认选中 搜索时默认选中 列表select变更更新列表时不默认选中 */
82
86
  var isAutoSelect = useRef(false);
@@ -361,13 +365,16 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
361
365
  data: otherCustomerWalletPassList,
362
366
  title: locales.getText('tocPay.text.couponCodesAdded'),
363
367
  onChange: handleOtherChange,
364
- value: selectValue
368
+ value: selectValue,
369
+ loading: loading,
370
+ onChangeDebounce: true
365
371
  }), /*#__PURE__*/React.createElement(List, {
366
372
  walletSetting: walletSetting,
367
373
  title: walletSetting.name,
368
374
  onChange: handleCurrentChange,
369
375
  ref: listRef,
370
- value: selectValue
376
+ value: selectValue,
377
+ onLoadingChange: setLoading
371
378
  }))), /*#__PURE__*/React.createElement(PisellModal, {
372
379
  title: /*#__PURE__*/React.createElement("div", null, locales.getText('tocPay.text.searchResult')),
373
380
  mobileModalHeight: '90%',
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
3
2
  export default DateSectionCom;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GenderField: (props: any) => JSX.Element;
3
2
  export default GenderField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddClientProps {
4
3
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItemPreview;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface valueType {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
4
3
  export default SelectResourcesTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;