@pisell/private-materials 6.3.50 → 6.3.52

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 (181) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Voucher/index.js +1 -1
  13. package/es/components/booking/addons/index.js +20 -17
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  17. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  19. package/es/components/booking/components/footer/utils.d.ts +5 -0
  20. package/es/components/booking/components/footer/utils.js +85 -40
  21. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  22. package/es/components/booking/components/voucher/index.js +18 -5
  23. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  24. package/es/components/booking/info/date/index.d.ts +1 -0
  25. package/es/components/booking/info/notes/index.d.ts +1 -0
  26. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  27. package/es/components/booking/info/service2/utils.js +1 -0
  28. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  29. package/es/components/booking/info2/service/addService/index.js +2 -3
  30. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  31. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  32. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  33. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  34. package/es/components/booking/utils.d.ts +1 -0
  35. package/es/components/booking/utils.js +16 -2
  36. package/es/components/eftpos/form/index.d.ts +0 -1
  37. package/es/components/eftpos/hooks.d.ts +0 -1
  38. package/es/components/eftposPay/amount.d.ts +1 -0
  39. package/es/components/eftposPay/hooks.d.ts +1 -1
  40. package/es/components/eftposPay/payo/config.d.ts +1 -0
  41. package/es/components/eftposPay/store/index.d.ts +1 -1
  42. package/es/components/eftposPay/tip.d.ts +1 -0
  43. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  44. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  45. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  46. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  47. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  49. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  51. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  52. package/es/components/login/index.d.ts +1 -0
  53. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  54. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  55. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  56. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  57. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  58. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  59. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  60. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  61. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  62. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  63. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  64. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  65. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  66. package/es/components/schedules/calendar/index.d.ts +1 -0
  67. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  68. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  69. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  70. package/es/components/schedules/products/index.d.ts +0 -1
  71. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  72. package/es/components/schedules/products/list/index.d.ts +1 -0
  73. package/es/components/schedules/resources/list/index.d.ts +1 -0
  74. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  75. package/es/components/shoppingCart/index.d.ts +1 -0
  76. package/es/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
  77. package/es/components/ticketBooking/utils/index.js +23 -8
  78. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  79. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  80. package/es/hooks/usePaymentLogger.d.ts +1 -0
  81. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  82. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  83. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  84. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  85. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  86. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  87. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  88. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  89. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  90. package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
  91. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  92. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  93. package/es/plus/walletPassGallery/index.js +3 -1
  94. package/es/pro/Login2.0/index.less +15 -8
  95. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  96. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  97. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  98. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -1
  99. package/lib/components/booking/addons/index.js +10 -7
  100. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  101. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  102. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  103. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  104. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  105. package/lib/components/booking/components/footer/utils.d.ts +5 -0
  106. package/lib/components/booking/components/footer/utils.js +56 -23
  107. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  108. package/lib/components/booking/components/voucher/index.js +19 -6
  109. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  110. package/lib/components/booking/info/date/index.d.ts +1 -0
  111. package/lib/components/booking/info/notes/index.d.ts +1 -0
  112. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  113. package/lib/components/booking/info/service2/utils.js +1 -0
  114. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  115. package/lib/components/booking/info2/service/addService/index.js +1 -2
  116. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  117. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  118. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  119. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  120. package/lib/components/booking/utils.d.ts +1 -0
  121. package/lib/components/booking/utils.js +12 -0
  122. package/lib/components/eftpos/form/index.d.ts +0 -1
  123. package/lib/components/eftpos/hooks.d.ts +0 -1
  124. package/lib/components/eftposPay/amount.d.ts +1 -0
  125. package/lib/components/eftposPay/hooks.d.ts +1 -1
  126. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  127. package/lib/components/eftposPay/store/index.d.ts +1 -1
  128. package/lib/components/eftposPay/tip.d.ts +1 -0
  129. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  130. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  131. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  132. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  133. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  134. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  135. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  136. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  137. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  138. package/lib/components/login/index.d.ts +1 -0
  139. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  140. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  141. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  142. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  143. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  144. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  145. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  146. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  147. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  148. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  149. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  150. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  151. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  152. package/lib/components/schedules/calendar/index.d.ts +1 -0
  153. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  154. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  155. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  156. package/lib/components/schedules/products/index.d.ts +0 -1
  157. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  158. package/lib/components/schedules/products/list/index.d.ts +1 -0
  159. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  160. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  161. package/lib/components/shoppingCart/index.d.ts +1 -0
  162. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  163. package/lib/components/ticketBooking/utils/index.js +9 -4
  164. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  165. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  166. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  167. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  168. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  169. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  170. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  171. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  172. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  173. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  174. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  175. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  176. package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
  177. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  178. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  179. package/lib/plus/walletPassGallery/index.js +3 -1
  180. package/lib/pro/Login2.0/index.less +15 -8
  181. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface LoginProps {
3
4
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItemPreview;
@@ -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 RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Calendar: () => JSX.Element;
3
4
  export default Calendar;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ScheduleItem } from "../../type";
2
3
  import "./index.less";
3
4
  declare type ScheduleDetailListPropsType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ResourcesModule: ({ product }: {
2
3
  product: any;
3
4
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface ProductListProps {
3
4
  loading: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ResourcesListProps = {
3
4
  list: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -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;
@@ -300,12 +300,12 @@ var AddSerivce = (props) => {
300
300
  _extend: {
301
301
  start_date: state.date.value,
302
302
  quantity: (e == null ? void 0 : e.quantity) || 1,
303
- price: _detail.price,
304
303
  product_name: item.title,
305
304
  other
306
305
  },
307
306
  new: 1
308
307
  };
308
+ cacheItem._extend.price = (0, import_utils2.getMainPrice)(_detail, _detail.price);
309
309
  let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
310
310
  cacheItem._extend.total = _total;
311
311
  cacheItem._extend.origin_total = _total;
@@ -148,11 +148,16 @@ var addService = (list, addItem, state) => {
148
148
  let isNotSame = true;
149
149
  let isSetCount = false;
150
150
  value = list.map((item) => {
151
- var _a, _b, _c;
151
+ var _a, _b, _c, _d, _e;
152
152
  const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
153
- if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct) {
153
+ const bundleDiscountList = [];
154
+ (((_b = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []).forEach((item2) => {
155
+ bundleDiscountList.push(...(item2 == null ? void 0 : item2.discount_list) || []);
156
+ });
157
+ const isGoodPassBundleProduct = bundleDiscountList.some((item2) => item2.type === "good_pass");
158
+ if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isGoodPassBundleProduct) {
154
159
  isNotSame = false;
155
- const quantity = (((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.quantity) || 1) + (((_b = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _b.quantity) || 1);
160
+ const quantity = (((_c = item == null ? void 0 : item._extend) == null ? void 0 : _c.quantity) || 1) + (((_d = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _d.quantity) || 1);
156
161
  count = quantity;
157
162
  isSetCount = true;
158
163
  return {
@@ -161,7 +166,7 @@ var addService = (list, addItem, state) => {
161
166
  ...item._extend,
162
167
  quantity,
163
168
  other: {
164
- ...((_c = item._extend) == null ? void 0 : _c.other) || {},
169
+ ...((_e = item._extend) == null ? void 0 : _e.other) || {},
165
170
  quantity
166
171
  }
167
172
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from '../serve';
2
3
  /**
3
4
  * 钱包卡片Hook的参数
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface LogData {
2
3
  key: string;
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRStepStatus } from '../types';
2
3
  import '../index.less';
3
4
  declare const VerifyError: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VerifyingEmailLink: (props: {
3
4
  onVerifyLink: () => Promise<void>;
@@ -160,13 +160,13 @@ var FooterButtons = ({
160
160
  )
161
161
  );
162
162
  }
163
- const buttonCount = buttons.length;
164
- const className = `pisell-wallet-pass-gallery_footer-buttons pisell-wallet-pass-gallery_footer-buttons-count-${buttonCount}`;
163
+ const className = `pisell-wallet-pass-gallery_footer-buttons`;
165
164
  return buttons.length > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className }, buttons) : null;
166
165
  };
167
166
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_footer" }, renderButtons()), /* @__PURE__ */ import_react.default.createElement(
168
167
  import_materials.PisellModal,
169
168
  {
169
+ destroyOnClose: true,
170
170
  platform,
171
171
  mobileModalHeight: "auto",
172
172
  headerDivider: false,
@@ -1,83 +1,38 @@
1
1
  .pisell-wallet-pass-gallery_footer {
2
2
  position: relative;
3
- left: 0;
4
- right: 0;
5
- bottom: 0;
6
3
  background-color: #fff;
7
4
  padding: 24px;
8
5
  z-index: 100;
9
6
  border-top: 1px solid #d0d5de;
10
- margin-left: -20px;
11
- margin-right: -20px;
7
+ margin-left: -24px;
8
+ margin-right: -24px;
12
9
  &-buttons {
13
10
  display: flex;
14
11
  gap: 12px;
15
12
  width: 100%;
16
13
 
17
-
18
- .pisell-wallet-pass-gallery_footer-buttons-item-secondary{
19
- overflow: hidden;
20
- display: flex;
21
- >span{
22
- display: block;
23
- // width: 100%;
24
- flex:1;
14
+ .pisell-wallet-pass-gallery_footer-buttons-item-secondary {
15
+ overflow: hidden;
16
+ display: inline-block;
25
17
  white-space: nowrap;
26
18
  overflow: hidden;
27
19
  text-overflow: ellipsis;
28
20
  text-wrap: nowrap;
29
- }
30
- }
31
-
32
-
33
- // 按钮数量样式
34
- // 单个按钮占满宽度
35
- &-count-1 {
36
- .pisell-wallet-pass-gallery_footer-buttons-item {
37
- flex: 1;
38
- width: 100%;
39
- }
40
- }
41
-
42
- // 两个按钮各占一半
43
- &-count-2 {
44
- .pisell-wallet-pass-gallery_footer-buttons-item {
45
- flex: 1;
46
- width: calc(50% - 6px);
21
+ > span {
22
+ display: inline;
47
23
  }
48
24
  }
49
-
50
- // 三个按钮各占三分之一
51
- &-count-3 {
52
- .pisell-wallet-pass-gallery_footer-buttons-item {
53
- flex: 1;
54
- width: calc(33.33% - 8px);
55
- }
56
- }
57
-
58
- // 四个按钮各占四分之一
59
- &-count-4 {
60
- .pisell-wallet-pass-gallery_footer-buttons-item {
61
- flex: 1;
62
- width: calc(25% - 9px);
63
- }
64
- }
65
-
66
- // Ant Design按钮覆盖样式
67
- :global(.ant-btn) {
68
- height: 48px;
69
- border-radius: 6px;
70
- font-size: 16px;
71
- font-weight: 500;
72
- width: 100%;
25
+
26
+ .pisell-wallet-pass-gallery_footer-buttons-item {
27
+ flex-grow: 1;
73
28
  }
74
-
29
+
75
30
  &-item {
76
31
  // 修饰符:主按钮
77
32
  &-primary {
78
- background-color: var(--theme-color, #7F56D9);
33
+ background-color: var(--theme-color, #7f56d9);
79
34
  }
80
-
35
+
81
36
  // 修饰符:次按钮
82
37
  &-secondary {
83
38
  background-color: #fff;
@@ -90,4 +45,4 @@
90
45
 
91
46
  .pisell-wallet-pass-gallery_footer:empty {
92
47
  display: none;
93
- }
48
+ }
@@ -238,7 +238,10 @@ var PassDetail = (props) => {
238
238
  {
239
239
  className: (0, import_classnames.default)(
240
240
  `pisell-wallet-pass-gallery_detail`,
241
- `pisell-wallet-pass-gallery_detail-${platform}`
241
+ `pisell-wallet-pass-gallery_detail-${platform}`,
242
+ {
243
+ [`pisell-wallet-pass-gallery_detail-with-footer`]: platform === "h5" && tag === "gift_card"
244
+ }
242
245
  )
243
246
  },
244
247
  /* @__PURE__ */ import_react.default.createElement(
@@ -18,6 +18,10 @@
18
18
  padding: 20px 0px;
19
19
  }
20
20
 
21
+ &-with-footer {
22
+ height: calc(100% - 90px);
23
+ }
24
+
21
25
  .pisell-wallet-pass-gallery_detail-content {
22
26
  overflow-y: auto;
23
27
  height: 100%;
@@ -51,6 +51,7 @@ var Recharge = ({
51
51
  const { action, storage } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
52
52
  const dvaStore = (_e = (_d = (_c = (_b = context.appHelper) == null ? void 0 : _b.utils) == null ? void 0 : _c.getStore) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.getState();
53
53
  const shop = ((_g = (_f = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _f.core) == null ? void 0 : _g.shop) || {};
54
+ const [loading, setLoading] = (0, import_react.useState)(false);
54
55
  (0, import_react.useEffect)(() => {
55
56
  if (detailData) {
56
57
  setChargeItem(((detailData == null ? void 0 : detailData.gift_option) || [])[0]);
@@ -59,6 +60,7 @@ var Recharge = ({
59
60
  const handleRecharge = async () => {
60
61
  var _a2;
61
62
  try {
63
+ setLoading(true);
62
64
  const params = {
63
65
  voucher_id: (detailData == null ? void 0 : detailData.id) || "",
64
66
  product_id: (detailData == null ? void 0 : detailData.product_id) || "",
@@ -87,11 +89,14 @@ var Recharge = ({
87
89
  import_utils.locales.getText("wallet-pass-gallery.log.rechargeOrderFailed"),
88
90
  error
89
91
  );
92
+ } finally {
93
+ setLoading(false);
90
94
  }
91
95
  };
92
96
  return /* @__PURE__ */ import_react.default.createElement(
93
97
  import_antd.Drawer,
94
98
  {
99
+ destroyOnClose: true,
95
100
  title: import_utils.locales.getText("wallet-pass-gallery.rechargeOptions"),
96
101
  open,
97
102
  zIndex: 999,
@@ -105,7 +110,8 @@ var Recharge = ({
105
110
  block: true,
106
111
  size: "large",
107
112
  onClick: handleRecharge,
108
- disabled: !(chargeItem == null ? void 0 : chargeItem.id)
113
+ disabled: !(chargeItem == null ? void 0 : chargeItem.id),
114
+ loading
109
115
  },
110
116
  import_utils.locales.getText("wallet-pass-gallery.recharge")
111
117
  )
@@ -442,7 +442,9 @@ var WalletPassGallery = (props) => {
442
442
  ), /* @__PURE__ */ import_react.default.createElement(
443
443
  import_materials.PisellModal,
444
444
  {
445
- platform: "h5",
445
+ zIndex: 997,
446
+ destroyOnClose: true,
447
+ platform,
446
448
  visible: !!_currentItem,
447
449
  onCancel: () => setCurrentItemId(""),
448
450
  footer: null,
@@ -15,6 +15,14 @@
15
15
 
16
16
  /* 默认底部内边距 */
17
17
  padding-bottom: 24px;
18
+
19
+ // 加载状态优化
20
+ .pisell-lowcode-btn-loading-icon {
21
+ .anticon {
22
+ color: #ffffff !important;
23
+ }
24
+ }
25
+
18
26
 
19
27
  /* 在弹窗模式下不需要额外的底部内边距,因为使用 sticky 定位 */
20
28
  .pisell-lowcode-modal-body & {
@@ -462,6 +470,13 @@
462
470
  .login-lm-drawer-popover & {
463
471
  padding-bottom: 100px;
464
472
  }
473
+ // 加载状态优化
474
+ .pisell-lowcode-btn-loading-icon {
475
+ .anticon {
476
+ color: #ffffff !important;
477
+ }
478
+ }
479
+
465
480
  }
466
481
 
467
482
  // 错误提示样式优化
@@ -521,14 +536,6 @@
521
536
  // }
522
537
  // }
523
538
  // }
524
-
525
- // 加载状态优化
526
- .pisell-lowcode-btn-loading-icon {
527
- .anticon {
528
- color: #ffffff !important;
529
- }
530
- }
531
-
532
539
  // 切换认证方式按钮
533
540
  .login2-switch-button {
534
541
  margin-top: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.50",
3
+ "version": "6.3.52",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,9 +62,9 @@
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
64
  "@pisell/utils": "3.0.3",
65
- "@pisell/materials": "6.3.15",
65
+ "@pisell/icon": "0.0.11",
66
66
  "@pisell/date-picker": "3.0.6",
67
- "@pisell/icon": "0.0.11"
67
+ "@pisell/materials": "6.3.16"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.0.0",