@pisell/private-materials 6.1.24 → 6.1.26

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 (165) 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.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/booking/components/footer/index.d.ts +1 -0
  8. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  9. package/es/components/booking/info2/index.js +2 -2
  10. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  11. package/es/components/ticketBooking/index.d.ts +1 -0
  12. package/es/components/ticketBooking/index.js +4 -2
  13. package/lib/components/booking/components/footer/index.d.ts +1 -0
  14. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  15. package/lib/components/booking/info2/index.js +5 -7
  16. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  17. package/lib/components/ticketBooking/index.d.ts +1 -0
  18. package/lib/components/ticketBooking/index.js +2 -2
  19. package/package.json +4 -4
  20. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  21. package/es/components/booking/components/voucher/index.d.ts +0 -3
  22. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  23. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  24. package/es/components/booking/info/client/index.d.ts +0 -4
  25. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  26. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  27. package/es/components/booking/info/index.d.ts +0 -3
  28. package/es/components/booking/info/service/Lists.d.ts +0 -2
  29. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  30. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
  31. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  32. package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
  33. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  34. package/es/components/booking/info/service2/Lists.d.ts +0 -2
  35. package/es/components/booking/info/service2/utils.d.ts +0 -251
  36. package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
  37. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  38. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  39. package/es/components/booking/info2/service/editService/index.d.ts +0 -7
  40. package/es/components/booking/info2/service/index.d.ts +0 -4
  41. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
  42. package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
  43. package/es/components/booking/locales.d.ts +0 -906
  44. package/es/components/booking/materiels/duration/index.d.ts +0 -13
  45. package/es/components/booking/materiels/startTime/index.d.ts +0 -9
  46. package/es/components/booking/utils.d.ts +0 -174
  47. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  48. package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
  49. package/es/components/pay/toB/components/Card/index.d.ts +0 -7
  50. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
  51. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
  52. package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
  53. package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
  54. package/es/components/pay/toB/components/Content/index.d.ts +0 -4
  55. package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
  56. package/es/components/pay/toB/components/index.d.ts +0 -5
  57. package/es/components/pay/toB/hooks.d.ts +0 -12
  58. package/es/components/pay/toB/index.d.ts +0 -3
  59. package/es/components/pay/toB/locales.d.ts +0 -54
  60. package/es/components/pay/toB/store/context.d.ts +0 -3
  61. package/es/components/pay/toB/store/hooks.d.ts +0 -15
  62. package/es/components/pay/toB/store/index.d.ts +0 -3
  63. package/es/components/pay/toB/store/provider.d.ts +0 -4
  64. package/es/components/pay/toB/store/utils.d.ts +0 -13
  65. package/es/components/pay/toB/types/index.d.ts +0 -1
  66. package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  70. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  71. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  72. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
  73. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  74. package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
  75. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  76. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  77. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  78. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  79. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  80. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  81. package/es/components/ticketBooking/locales.d.ts +0 -180
  82. package/es/components/ticketBooking/serve.d.ts +0 -288
  83. package/es/components/ticketBooking/utils/index.d.ts +0 -62
  84. package/es/components/walletList/index.d.ts +0 -28
  85. package/es/hooks/useEngineContext.d.ts +0 -3
  86. package/es/plus/clientCard/locales.d.ts +0 -18
  87. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  88. package/es/plus/clinetSearch/index.d.ts +0 -18
  89. package/es/pro/comprehensiveSearch/index.d.ts +0 -9
  90. package/es/pro/comprehensiveSearch/types.d.ts +0 -31
  91. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  92. package/es/pro/skuDetailModal/index.d.ts +0 -5
  93. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  94. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  95. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  96. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  97. package/lib/components/booking/info/client/index.d.ts +0 -4
  98. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  99. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  100. package/lib/components/booking/info/index.d.ts +0 -3
  101. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  102. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  103. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
  104. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  105. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
  106. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  107. package/lib/components/booking/info/service2/Lists.d.ts +0 -2
  108. package/lib/components/booking/info/service2/utils.d.ts +0 -251
  109. package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
  110. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  111. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  112. package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
  113. package/lib/components/booking/info2/service/index.d.ts +0 -4
  114. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
  115. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
  116. package/lib/components/booking/locales.d.ts +0 -906
  117. package/lib/components/booking/materiels/duration/index.d.ts +0 -13
  118. package/lib/components/booking/materiels/startTime/index.d.ts +0 -9
  119. package/lib/components/booking/utils.d.ts +0 -174
  120. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  121. package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
  122. package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
  123. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
  124. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
  125. package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
  126. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
  127. package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
  128. package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
  129. package/lib/components/pay/toB/components/index.d.ts +0 -5
  130. package/lib/components/pay/toB/hooks.d.ts +0 -12
  131. package/lib/components/pay/toB/index.d.ts +0 -3
  132. package/lib/components/pay/toB/locales.d.ts +0 -54
  133. package/lib/components/pay/toB/store/context.d.ts +0 -3
  134. package/lib/components/pay/toB/store/hooks.d.ts +0 -15
  135. package/lib/components/pay/toB/store/index.d.ts +0 -3
  136. package/lib/components/pay/toB/store/provider.d.ts +0 -4
  137. package/lib/components/pay/toB/store/utils.d.ts +0 -13
  138. package/lib/components/pay/toB/types/index.d.ts +0 -1
  139. package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
  140. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  141. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  142. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  143. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  144. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  145. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
  146. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  147. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
  148. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  149. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  150. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  151. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  152. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  153. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  154. package/lib/components/ticketBooking/locales.d.ts +0 -180
  155. package/lib/components/ticketBooking/serve.d.ts +0 -288
  156. package/lib/components/ticketBooking/utils/index.d.ts +0 -62
  157. package/lib/components/walletList/index.d.ts +0 -28
  158. package/lib/hooks/useEngineContext.d.ts +0 -3
  159. package/lib/plus/clientCard/locales.d.ts +0 -18
  160. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  161. package/lib/plus/clinetSearch/index.d.ts +0 -18
  162. package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
  163. package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
  164. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  165. package/lib/pro/skuDetailModal/index.d.ts +0 -5
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -44,7 +44,7 @@ var defaultModules = {
44
44
  };
45
45
  locales.init(localeTexts, getLocale());
46
46
  var Info = Provider(function (props) {
47
- var _modal$state2, _modal$state3, _modal$state5, _context$appHelper4, _modal$state6;
47
+ var _modal$state2, _modal$state3, _modal$state5, _modal$state6;
48
48
  // return <Payments {...props} />;
49
49
  var style = props.style,
50
50
  globalState = props.globalState,
@@ -267,7 +267,7 @@ var Info = Provider(function (props) {
267
267
  }
268
268
  }), !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane, {
269
269
  style: {
270
- height: context !== null && context !== void 0 && (_context$appHelper4 = context.appHelper) !== null && _context$appHelper4 !== void 0 && (_context$appHelper4 = _context$appHelper4.utils) !== null && _context$appHelper4 !== void 0 && _context$appHelper4.isMobile ? '100%' : '100vh'
270
+ height: '100%'
271
271
  },
272
272
  header: header,
273
273
  footer: /*#__PURE__*/React.createElement(Footer, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -2,6 +2,7 @@ import './index.less';
2
2
  interface TicketBookingProps {
3
3
  productExtensionType: string[];
4
4
  bookingConfigParams: Record<string, any>;
5
+ isShowMenuBar?: boolean;
5
6
  }
6
7
  declare const _default: (props: TicketBookingProps) => JSX.Element;
7
8
  export default _default;
@@ -137,7 +137,9 @@ var initialState = {
137
137
  export default (function (props) {
138
138
  var _context$appHelper, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
139
139
  var productExtensionType = props.productExtensionType,
140
- bookingConfigParams = props.bookingConfigParams;
140
+ bookingConfigParams = props.bookingConfigParams,
141
+ _props$isShowMenuBar = props.isShowMenuBar,
142
+ isShowMenuBar = _props$isShowMenuBar === void 0 ? true : _props$isShowMenuBar;
141
143
  var storeRef = useRef(null);
142
144
  var context = useEngineContext();
143
145
  var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
@@ -169,7 +171,7 @@ export default (function (props) {
169
171
  }, []);
170
172
  return /*#__PURE__*/React.createElement("div", {
171
173
  className: "pisell-ticket-booking-wrapper"
172
- }, /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
174
+ }, isShowMenuBar && /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
173
175
  store: storeRef.current
174
176
  }, /*#__PURE__*/React.createElement(TicketBooking, null)));
175
177
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 底部
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -69,7 +69,7 @@ var defaultModules = {
69
69
  };
70
70
  import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
71
71
  var Info = (0, import_model.Provider)((props) => {
72
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
72
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
73
73
  const { style, globalState, modules = defaultModules, slot } = props;
74
74
  const modal = (0, import_react.useContext)(import_model.Context);
75
75
  const context = (0, import_useEngineContext.default)();
@@ -97,7 +97,7 @@ var Info = (0, import_model.Provider)((props) => {
97
97
  }
98
98
  }, []);
99
99
  (0, import_react.useMemo)(() => {
100
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m;
100
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m;
101
101
  const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
102
102
  modal.dispatch({
103
103
  type: "setState",
@@ -106,7 +106,7 @@ var Info = (0, import_model.Provider)((props) => {
106
106
  ...globalState,
107
107
  isTerminal: (_g2 = (_f2 = (_e2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.isTerminal) == null ? void 0 : _g2.call(_f2),
108
108
  isFranchisee,
109
- timezone: (_m = (_l2 = (_k2 = (_j2 = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j2.getState()) == null ? void 0 : _k2.global) == null ? void 0 : _l2.globalConfig) == null ? void 0 : _m.timezone
109
+ timezone: (_m = (_l = (_k = (_j2 = (_i2 = (_h2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _h2.utils) == null ? void 0 : _i2.store) == null ? void 0 : _j2.getState()) == null ? void 0 : _k.global) == null ? void 0 : _l.globalConfig) == null ? void 0 : _m.timezone
110
110
  }
111
111
  });
112
112
  }, [globalState]);
@@ -261,9 +261,7 @@ var Info = (0, import_model.Provider)((props) => {
261
261
  ), !!modal.state.setGlobalState ? /* @__PURE__ */ import_react.default.createElement(
262
262
  import_tabPane.default,
263
263
  {
264
- style: {
265
- height: ((_k = (_j = context == null ? void 0 : context.appHelper) == null ? void 0 : _j.utils) == null ? void 0 : _k.isMobile) ? "100%" : "100vh"
266
- },
264
+ style: { height: "100%" },
267
265
  header,
268
266
  footer: /* @__PURE__ */ import_react.default.createElement(
269
267
  import_footer.default,
@@ -297,7 +295,7 @@ var Info = (0, import_model.Provider)((props) => {
297
295
  style: { color: "#fff", fontSize: 42 }
298
296
  }
299
297
  )
300
- ) : null), modules.holder && !((_l = modal.state) == null ? void 0 : _l.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
298
+ ) : null), modules.holder && !((_j = modal.state) == null ? void 0 : _j.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
301
299
  import_antd.Skeleton,
302
300
  {
303
301
  loading: globalState.loading,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/addTimeModal/index.less';
2
3
  declare const AddTimeModal: () => JSX.Element;
3
4
  export default AddTimeModal;
@@ -2,6 +2,7 @@ import './index.less';
2
2
  interface TicketBookingProps {
3
3
  productExtensionType: string[];
4
4
  bookingConfigParams: Record<string, any>;
5
+ isShowMenuBar?: boolean;
5
6
  }
6
7
  declare const _default: (props: TicketBookingProps) => JSX.Element;
7
8
  export default _default;
@@ -187,7 +187,7 @@ var initialState = {
187
187
  };
188
188
  var ticketBooking_default = (props) => {
189
189
  var _a, _b, _c, _d, _e, _f, _g, _h;
190
- const { productExtensionType, bookingConfigParams } = props;
190
+ const { productExtensionType, bookingConfigParams, isShowMenuBar = true } = props;
191
191
  const storeRef = (0, import_react.useRef)(null);
192
192
  const context = (0, import_useEngineContext.default)();
193
193
  const { pisellos, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
@@ -218,5 +218,5 @@ var ticketBooking_default = (props) => {
218
218
  });
219
219
  }
220
220
  }, []);
221
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, null), /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current }, /* @__PURE__ */ import_react.default.createElement(import_ticketBooking.default, null)));
221
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, isShowMenuBar && /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, null), /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current }, /* @__PURE__ */ import_react.default.createElement(import_ticketBooking.default, null)));
222
222
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.1.24",
3
+ "version": "6.1.26",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "react-resizable": "^3.0.5",
61
61
  "styled-components": "^6.0.0-rc.3",
62
- "@pisell/utils": "3.0.0",
63
- "@pisell/materials": "6.1.8",
62
+ "@pisell/date-picker": "3.0.4",
64
63
  "@pisell/icon": "0.0.11",
65
- "@pisell/date-picker": "3.0.4"
64
+ "@pisell/materials": "6.1.8",
65
+ "@pisell/utils": "3.0.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const TabPane: React.FC<any>;
4
- export default TabPane;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const VoucherCard: (props: any) => JSX.Element | null;
3
- export default VoucherCard;
@@ -1 +0,0 @@
1
- export declare const useIsBooking4Shop: (state: any) => any;
@@ -1,6 +0,0 @@
1
- interface AddServiceVariantProps {
2
- globalState: any;
3
- setGlobalState: any;
4
- }
5
- declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
6
- export default AddServiceVariant;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
4
- export default _default;
@@ -1 +0,0 @@
1
- export declare const getWaiverTitle: (waiverForm: any[]) => string;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface VerticalClientProps {
4
- globalState: any;
5
- setGlobalState: any;
6
- }
7
- declare const VerticalClient: React.ForwardRefExoticComponent<VerticalClientProps & React.RefAttributes<unknown>>;
8
- export default VerticalClient;
@@ -1,3 +0,0 @@
1
- import { InfoProps } from './main';
2
- declare const APP: (props: InfoProps) => JSX.Element;
3
- export default APP;
@@ -1,2 +0,0 @@
1
- declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
2
- export default Lists;
@@ -1,11 +0,0 @@
1
- import { PisellDrawerProps } from '../../../components/drawer';
2
- import './index.less';
3
- interface AddServiceProps {
4
- onEdit?: any;
5
- dispatch?: any;
6
- state?: any;
7
- drawerProps?: PisellDrawerProps;
8
- renderMode?: 'current' | 'drawer';
9
- }
10
- declare const Info: (props: AddServiceProps) => JSX.Element;
11
- export default Info;
@@ -1,4 +0,0 @@
1
- declare const BookingList: ({ items }: {
2
- items: any[];
3
- }) => JSX.Element;
4
- export default BookingList;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface EditServiceRef {
4
- init: (cacheItem?: any, open?: boolean, openEditProduct?: boolean) => void;
5
- }
6
- declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
7
- export default _default;
@@ -1,5 +0,0 @@
1
- import './index.less';
2
- declare const ServiceList: ({ onEdit }: {
3
- onEdit: any;
4
- }) => JSX.Element;
5
- export default ServiceList;
@@ -1,20 +0,0 @@
1
- export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
2
- renderMode?: any;
3
- onEdit?: any;
4
- state?: any;
5
- dispatch?: any;
6
- }) => {
7
- createBookingData: ({ product }: any) => Promise<any>;
8
- editBookingData: ({ changeValues }: {
9
- changeValues: any;
10
- }) => Promise<any>;
11
- createBooking: ({ booking }: {
12
- booking: any;
13
- }) => Promise<void>;
14
- editBooking: ({ booking }: {
15
- booking: any;
16
- }) => Promise<void>;
17
- goEditPanel: ({ booking }: {
18
- booking: any;
19
- }) => void;
20
- };
@@ -1,2 +0,0 @@
1
- declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
2
- export default Lists;
@@ -1,251 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
3
- /**
4
- * @title: 获取资源名称
5
- * @description:
6
- * @param {any} id
7
- * @param {any} state
8
- * @return {*}
9
- * @Author: WangHan
10
- * @Date: 2024-11-29 18:02
11
- */
12
- export declare const getResourceItem: (id: any, state: any) => any;
13
- /**
14
- * @title: 错误提示
15
- * @description:
16
- * @param {any} service
17
- * @param {any} resourceItem
18
- * @return {*}
19
- * @Author: WangHan
20
- * @Date: 2024-11-29 18:41
21
- */
22
- export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
23
- /**
24
- * @title: 格式化主体列表
25
- * @description:
26
- * @param {any} lists
27
- * @param {boolean} isOpenGroup
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2024-12-04 11:27
31
- */
32
- export declare const formatHolderLists: (lists: any) => any;
33
- export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
34
- /**
35
- * @title: 是否是预约商品
36
- * @description:
37
- * @return {*}
38
- * @Author: WangHan
39
- * @Date: 2024-12-06 11:24
40
- */
41
- export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
42
- export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
43
- /**
44
- * @title: 更新商品数据
45
- * @description:
46
- * @param {any} state
47
- * @param currentItem
48
- * @param {string} type
49
- * @param {any} other
50
- * @param actions
51
- * @return {*}
52
- * @Author: WangHan
53
- * @Date: 2025-01-03 15:00
54
- */
55
- export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
56
- export declare const formItems: (items: any[]) => any[];
57
- export declare const getIsSubjectRequire: (state: any) => boolean;
58
- export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
- export declare const isAllNormalProduct: (items: any[]) => boolean;
60
- export declare const isAllNormalProductByState: (state: any) => boolean;
61
- export declare const genRowKey: (key: string) => string;
62
- /**
63
- * @title: 格式化商品数据
64
- * @description:
65
- * @param {any} lists
66
- * @return {*}
67
- * @Author: WangHan
68
- * @Date: 2024-11-29 17:36
69
- */
70
- export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
71
- _origin: any;
72
- id: any;
73
- _id: any;
74
- name: any;
75
- title: any;
76
- price: any;
77
- total: number;
78
- origin_total: number;
79
- num: any;
80
- image: any;
81
- isShowNote: boolean;
82
- note: any;
83
- like_status: any;
84
- bundle: any;
85
- options: any;
86
- errorMessage: string;
87
- product_option_string: any;
88
- discount_reason: any;
89
- resource_id: any;
90
- relation_form_name: any;
91
- holder_title: any;
92
- start_date: any;
93
- end_date: any;
94
- holder_id: any;
95
- isNormalProduct: boolean;
96
- isCustomItem: any;
97
- vouchersApplicable: any;
98
- locale: any;
99
- symbol: any;
100
- relation_products: any;
101
- items: any[];
102
- }[];
103
- /**
104
- * @title: 禁用日期
105
- * @description:
106
- * @param {any} current
107
- * @param {string} position
108
- * @param {any} startDate
109
- * @return {*}
110
- * @Author: WangHan
111
- * @Date: 2024-12-03 17:51
112
- */
113
- export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
114
- /**
115
- * @title: 是否是跨日预约
116
- * @description:
117
- * @param {any} state
118
- * @return {*}
119
- * @Author: WangHan
120
- * @Date: 2024-12-04 09:49
121
- */
122
- export declare const isDayBooking: (state: any) => boolean;
123
- export declare const isDaysBooking: (state: any) => boolean;
124
- export declare const isEventBooking: (state: any) => boolean;
125
- export declare const isAppointmentProduct: (item: any) => boolean;
126
- /**
127
- * @title: 是否是terminal上的跨日预约
128
- * @description:
129
- * @param {any} state
130
- * @return {*}
131
- * @Author: WangHan
132
- * @Date: 2024-12-04 15:31
133
- */
134
- export declare const isTerminalDayBooking: (state: any) => any;
135
- export declare const formatDayDate: (_extend: any) => any;
136
- /**
137
- * @title: 根据营业日时间格式化时间
138
- * @description:
139
- * @param {any} state
140
- * @return {*}
141
- * @Author: WangHan
142
- * @Date: 2024-12-04 12:07
143
- */
144
- export declare const formatDayTime: ({ startDate, endDate }: any) => {
145
- startDateTime: dayjs.Dayjs;
146
- endDateTime: dayjs.Dayjs;
147
- };
148
- export declare const formatDateTime: (start_date: any, end_date: any) => {
149
- value: dayjs.Dayjs;
150
- end_date: dayjs.Dayjs;
151
- };
152
- /**
153
- * @title: 初始化日期
154
- * @description:
155
- * @return {*}
156
- * @Author: WangHan
157
- * @Date: 2024-12-06 17:24
158
- */
159
- export declare const initDate: () => {
160
- value: dayjs.Dayjs;
161
- end_date: dayjs.Dayjs;
162
- };
163
- /**
164
- * @title: 是否有预约商品
165
- * @description:
166
- * @return {*}
167
- * @Author: WangHan
168
- * @Date: 2024-12-12 15:47
169
- */
170
- export declare const isHasDayAppointmentProduct: (state: any) => boolean;
171
- /**
172
- * @title: 过滤出如果是预约商品,则只获取跨日的预约商品
173
- * @description:
174
- * @param {any} lists
175
- * @return {*}
176
- * @Author: WangHan
177
- * @Date: 2024-12-13 16:44
178
- */
179
- export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
180
- /**
181
- * @title: 格式化表单数据
182
- * @description:
183
- * @param {any} state
184
- * @return {*}
185
- * @Author: WangHan
186
- * @Date: 2024-12-30 22:19
187
- */
188
- export declare const getPets: (state: any) => any;
189
- /**
190
- * @title: 得出预约商品
191
- * @description:
192
- * @param {any} state
193
- * @return {*}
194
- * @Author: WangHan
195
- * @Date: 2024-12-30 22:26
196
- */
197
- export declare const getAppointmentService: (state: any) => any;
198
- /**
199
- * @title: 判断是否打开删除宠物弹窗
200
- * @description:
201
- * @param {any} state
202
- * @param {any} newVal
203
- * @return {*}
204
- * @Author: WangHan
205
- * @Date: 2024-12-16 16:12
206
- */
207
- export declare const isOpenDeletePet: (state: any, newVal: any) => {
208
- ids: any;
209
- lists: any;
210
- };
211
- /**
212
- * @title: 当前选中的表单id
213
- * @description:
214
- * @param {any} state
215
- * @return {*}
216
- * @Author: WangHan
217
- * @Date: 2024-12-17 14:40
218
- */
219
- export declare const holderId: (state: any) => number;
220
- /**
221
- * @title: 更新套餐的价格
222
- * @description:
223
- * @param {any} currentValue
224
- * @param {any} newBundleData
225
- * @return {*}
226
- * @Author: WangHan
227
- * @Date: 2024-12-31 15:16
228
- */
229
- export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
230
- /**
231
- * @title: 更新预约商品报价单
232
- * @description:
233
- * @param {any} state
234
- * @param {any} cacheItem
235
- * @return {*}
236
- * @Author: WangHan
237
- * @Date: 2024-12-25 16:41
238
- */
239
- export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
240
- multiDayPrices: any;
241
- price: number;
242
- }>;
243
- /**
244
- * @title: 更新普通商品报价单价格
245
- * @description:
246
- * @param {any} state
247
- * @return {*}
248
- * @Author: WangHan
249
- * @Date: 2024-12-24 11:32
250
- */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { ClientCardRef } from './types';
3
- import './index.less';
4
- export type { ClientData } from './types';
5
- declare const CartClientCard: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ClientCardRef>>;
6
- export default CartClientCard;
@@ -1,11 +0,0 @@
1
- import { PisellDrawerProps } from '../../../components/drawer';
2
- import '../../../info/service/addService/index.less';
3
- interface AddServiceProps {
4
- onEdit: any;
5
- dispatch?: any;
6
- state?: any;
7
- drawerProps?: PisellDrawerProps;
8
- renderMode?: 'current' | 'drawer';
9
- }
10
- declare const Info: (props: AddServiceProps) => JSX.Element;
11
- export default Info;
@@ -1,98 +0,0 @@
1
- import dayjs from 'dayjs';
2
- export declare const getUsableTime: (cacheItem: any) => any;
3
- export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
- startDate: dayjs.Dayjs;
5
- usableTime: any;
6
- duration: string | number | {
7
- type: string;
8
- value: number;
9
- };
10
- locale: string;
11
- slice: any;
12
- selectProps: {
13
- size: string;
14
- };
15
- };
16
- /**
17
- * @title: 灵活时长选项
18
- * @description:
19
- * @param {*} useMemo
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-02-23 10:10
23
- */
24
- export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
- label: any;
26
- value: any;
27
- } | null;
28
- export declare const getTimeSlices: ({ state }: any) => {
29
- timeSlices: {
30
- label: string;
31
- value: string;
32
- }[];
33
- };
34
- /**
35
- * @title: 时间切片
36
- * @description:
37
- * @return {*}
38
- * @Author: zhiwei.Wang
39
- * @Date: 2024-01-09 13:37
40
- */
41
- export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
- timeSlices: {
43
- label: string;
44
- value: string;
45
- }[];
46
- durationSlicesBasedOnTime: {
47
- label: string;
48
- value: number;
49
- }[];
50
- };
51
- /**
52
- * @title: 获取资源列表
53
- * @description:
54
- * @return {*}
55
- * @Author: zhiwei.Wang
56
- * @Date: 2024-01-09 13:38
57
- */
58
- export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
59
- list: any;
60
- maps: any;
61
- };
62
- export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
- /**
64
- * @title: 设置默认容量
65
- * @description:
66
- * @param {any} param1
67
- * @return {*}
68
- * @Author: zhiwei.Wang
69
- * @Date: 2024-09-19 20:26
70
- */
71
- export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
- /**
73
- * @title: 将商品内关联的资源id还原成数据
74
- * @description:
75
- * @param {any} resourcesOriginMap
76
- * @param {any} cacheItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-09-19 20:23
80
- */
81
- export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
- /**
83
- * @title: 预生成服务的 extend
84
- * @description:
85
- * @param {any} param1
86
- * @return {*}
87
- * @Author: zhiwei.Wang
88
- * @Date: 2024-06-01 13:25
89
- */
90
- export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
91
- /**
92
- * @title: 格式化服务列表
93
- * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
94
- * 使用with resourceRelation后 返回的resource_relation是实时数据
95
- * 这里做一次转换
96
- * @param list
97
- */
98
- export declare const transServiceList: (list: any[]) => any[];