@pisell/private-materials 3.3.20 → 3.3.22

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 (191) 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 +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/appointmentBooking/components/Cart/Item/index.js +19 -7
  8. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +2 -1
  9. package/es/components/appointmentBooking/components/Content/index.js +0 -1
  10. package/es/components/appointmentBooking/components/Date/index.js +1 -5
  11. package/es/components/appointmentBooking/components/Form/index.js +4 -3
  12. package/es/components/appointmentBooking/components/Services/index.js +21 -11
  13. package/es/components/appointmentBooking/hooks.d.ts +0 -1
  14. package/es/components/appointmentBooking/hooks.js +12 -18
  15. package/es/components/appointmentBooking/index.js +3 -5
  16. package/es/components/appointmentBooking/utils.d.ts +3 -3
  17. package/es/components/appointmentBooking/utils.js +15 -15
  18. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  19. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  20. package/es/components/booking/components/footer/index.d.ts +0 -1
  21. package/es/components/booking/components/footer/utils.js +1 -1
  22. package/es/components/booking/components/voucher/index.js +4 -2
  23. package/es/components/booking/forms/single/index.d.ts +0 -1
  24. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  25. package/es/components/booking/info/date/index.d.ts +0 -1
  26. package/es/components/booking/info/index.d.ts +0 -1
  27. package/es/components/booking/info/notes/index.d.ts +0 -1
  28. package/es/components/booking/info/service/Lists.d.ts +0 -1
  29. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  30. package/es/components/booking/info/service/addService/index.js +14 -16
  31. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  32. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  33. package/es/components/booking/info/service2/utils.d.ts +1 -1
  34. package/es/components/booking/info/service2/utils.js +1 -0
  35. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  36. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  37. package/es/components/booking/info2/service/addService/index.js +14 -15
  38. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  39. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  40. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  41. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  42. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  43. package/es/components/booking/utils.d.ts +2 -2
  44. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  45. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  46. package/es/components/ticketBooking/components/timeBar/index.js +1 -0
  47. package/lib/components/appointmentBooking/components/Cart/Item/index.js +12 -9
  48. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +7 -1
  49. package/lib/components/appointmentBooking/components/Content/index.js +1 -1
  50. package/lib/components/appointmentBooking/components/Date/index.js +1 -1
  51. package/lib/components/appointmentBooking/components/Form/index.js +3 -2
  52. package/lib/components/appointmentBooking/components/Services/index.js +8 -1
  53. package/lib/components/appointmentBooking/hooks.d.ts +0 -1
  54. package/lib/components/appointmentBooking/hooks.js +2 -6
  55. package/lib/components/appointmentBooking/index.js +2 -2
  56. package/lib/components/appointmentBooking/utils.d.ts +3 -3
  57. package/lib/components/appointmentBooking/utils.js +14 -23
  58. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  59. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  60. package/lib/components/booking/components/footer/index.d.ts +0 -1
  61. package/lib/components/booking/components/footer/utils.js +1 -1
  62. package/lib/components/booking/components/voucher/index.js +4 -2
  63. package/lib/components/booking/forms/single/index.d.ts +0 -1
  64. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  65. package/lib/components/booking/info/date/index.d.ts +0 -1
  66. package/lib/components/booking/info/index.d.ts +0 -1
  67. package/lib/components/booking/info/notes/index.d.ts +0 -1
  68. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  69. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  70. package/lib/components/booking/info/service/addService/index.js +14 -14
  71. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  72. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  73. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  74. package/lib/components/booking/info/service2/utils.js +1 -0
  75. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  76. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  77. package/lib/components/booking/info2/service/addService/index.js +15 -13
  78. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  79. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  80. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  81. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  82. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  83. package/lib/components/booking/utils.d.ts +2 -2
  84. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  85. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  86. package/lib/components/ticketBooking/components/timeBar/index.js +1 -0
  87. package/package.json +3 -3
  88. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
  89. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  90. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  91. package/es/components/appointmentBooking/locales.d.ts +0 -354
  92. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  93. package/es/components/booking/forms/footer.d.ts +0 -6
  94. package/es/components/booking/forms/sendModal/index.d.ts +0 -27
  95. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  96. package/es/components/booking/info2/utils.d.ts +0 -4
  97. package/es/components/booking/locales.d.ts +0 -807
  98. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  99. package/es/components/eftposPay/component/fail/index.d.ts +0 -3
  100. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
  101. package/es/components/eftposPay/hooks.d.ts +0 -35
  102. package/es/components/eftposPay/index.d.ts +0 -4
  103. package/es/components/eftposPay/locales.d.ts +0 -330
  104. package/es/components/eftposPay/pay.d.ts +0 -20
  105. package/es/components/eftposPay/payo/config.d.ts +0 -12
  106. package/es/components/eftposPay/payo/hooks.d.ts +0 -10
  107. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  108. package/es/components/eftposPay/windcave/helper.d.ts +0 -23
  109. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
  110. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  111. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  112. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  113. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  114. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  115. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  116. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  117. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  118. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  119. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  120. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  121. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  122. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -111
  123. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
  124. package/es/components/pay/toC/index.d.ts +0 -3
  125. package/es/components/pay/toC/utils.d.ts +0 -49
  126. package/es/components/ruleSetting/index.d.ts +0 -9
  127. package/es/components/ruleSetting/server.d.ts +0 -4
  128. package/es/components/shoppingCart/Provider.d.ts +0 -3
  129. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  130. package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
  131. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
  132. package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
  133. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  134. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  135. package/es/components/workSpaceList/components/EditableString/index.d.ts +0 -21
  136. package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
  137. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
  138. package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
  139. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  140. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
  141. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  142. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  143. package/lib/components/appointmentBooking/locales.d.ts +0 -354
  144. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  145. package/lib/components/booking/forms/footer.d.ts +0 -6
  146. package/lib/components/booking/forms/sendModal/index.d.ts +0 -27
  147. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  148. package/lib/components/booking/info2/utils.d.ts +0 -4
  149. package/lib/components/booking/locales.d.ts +0 -807
  150. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  151. package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
  152. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
  153. package/lib/components/eftposPay/hooks.d.ts +0 -35
  154. package/lib/components/eftposPay/index.d.ts +0 -4
  155. package/lib/components/eftposPay/locales.d.ts +0 -330
  156. package/lib/components/eftposPay/pay.d.ts +0 -20
  157. package/lib/components/eftposPay/payo/config.d.ts +0 -12
  158. package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
  159. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  160. package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
  161. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
  162. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  163. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  164. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  165. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  166. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  167. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  168. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  169. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  170. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  171. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  172. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  173. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  174. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -111
  175. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
  176. package/lib/components/pay/toC/index.d.ts +0 -3
  177. package/lib/components/pay/toC/utils.d.ts +0 -49
  178. package/lib/components/ruleSetting/index.d.ts +0 -9
  179. package/lib/components/ruleSetting/server.d.ts +0 -4
  180. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  181. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
  182. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
  183. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
  184. package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
  185. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  186. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  187. package/lib/components/workSpaceList/components/EditableString/index.d.ts +0 -21
  188. package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
  189. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
  190. package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
  191. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
@@ -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 {
@@ -138,7 +138,13 @@ var Info = (props) => {
138
138
  let data = await state.apis.getServices({
139
139
  skip: 1,
140
140
  num: 500,
141
- extension_type: state.renderType === "eventBooking" ? void 0 : ["product_appointment", "appointment_ticket", "service_product", "session_product", "session_ticket"],
141
+ extension_type: state.renderType === "eventBooking" ? void 0 : [
142
+ "product_appointment",
143
+ "appointment_ticket",
144
+ "service_product",
145
+ "session_product",
146
+ "session_ticket"
147
+ ],
142
148
  with: ["category", "resourceRelation"],
143
149
  ids: state.renderType === "eventBooking" ? (_c2 = state.eventOtherParams) == null ? void 0 : _c2.productIds : void 0,
144
150
  open_quotation: 1,
@@ -146,11 +152,7 @@ var Info = (props) => {
146
152
  with_count: ["bundleGroup", "optionGroup"],
147
153
  order_by_string: "sort:desc",
148
154
  status: "published",
149
- ...state.isBookingCreatePage ? { schedule_date: params == null ? void 0 : params.schedule_date } : {
150
- _config: {
151
- useCache: true
152
- }
153
- }
155
+ schedule_date: params == null ? void 0 : params.schedule_date
154
156
  });
155
157
  setLoading(false);
156
158
  if (!state.service.addModal) {
@@ -293,15 +295,15 @@ var Info = (props) => {
293
295
  const showAddButton = (0, import_react.useMemo)(() => {
294
296
  return !state.disabledEdit && !state.channelDisabledEdit;
295
297
  }, [state.disabledEdit, state.channelDisabledEdit]);
298
+ const currentDate = (0, import_react.useMemo)(() => {
299
+ return state.date.value.format("YYYY-MM-DD");
300
+ }, [state.date.value]);
296
301
  (0, import_ahooks.useUpdateEffect)(() => {
297
302
  if (state.service.addModal) {
298
- getServices();
303
+ getServices({ schedule_date: currentDate });
299
304
  setSearch("");
300
305
  }
301
- }, [state.service.addModal]);
302
- const currentDate = (0, import_react.useMemo)(() => {
303
- return state.date.value.format("YYYY-MM-DD");
304
- }, [state.date.value]);
306
+ }, [state.service.addModal, currentDate]);
305
307
  (0, import_react.useEffect)(() => {
306
308
  if (renderMode === "current") {
307
309
  getServices({ schedule_date: currentDate });
@@ -309,9 +311,9 @@ var Info = (props) => {
309
311
  }, [renderMode, currentDate]);
310
312
  (0, import_react.useEffect)(() => {
311
313
  if (state.renderType === "eventBooking" && state.modalOpen) {
312
- getServices();
314
+ getServices({ schedule_date: currentDate });
313
315
  }
314
- }, [state.renderType, state.modalOpen]);
316
+ }, [state.renderType, state.modalOpen, currentDate]);
315
317
  const addButton = (0, import_react.useMemo)(() => {
316
318
  if (state.isBookingCreatePage) {
317
319
  return /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -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 { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -163,10 +163,10 @@ export declare const getProductTotalPrice: (item: any) => number;
163
163
  export declare const getDuration: (duration: number | {
164
164
  type: string;
165
165
  value: number;
166
- }) => number | {
166
+ }) => number | "flexible" | {
167
167
  type: string;
168
168
  value: number;
169
- } | "flexible";
169
+ };
170
170
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
171
171
  export declare const getIsEdit: (state: any) => boolean;
172
172
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const TicketBooking: () => JSX.Element;
4
3
  export default TicketBooking;
@@ -101,6 +101,7 @@ var TimeBar = (props) => {
101
101
  /* @__PURE__ */ import_react.default.createElement(
102
102
  import_materials.DatePicker,
103
103
  {
104
+ inputReadOnly: true,
104
105
  value: (_b = (_a = state == null ? void 0 : state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value,
105
106
  format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
106
107
  onChange: props == null ? void 0 : props.onDateChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.20",
3
+ "version": "3.3.22",
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
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
+ "@pisell/utils": "1.0.42",
62
63
  "@pisell/icon": "0.0.11",
63
- "@pisell/materials": "3.3.7",
64
64
  "@pisell/date-picker": "3.0.2",
65
- "@pisell/utils": "1.0.42"
65
+ "@pisell/materials": "3.3.7"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
- export default Total;
@@ -1,63 +0,0 @@
1
- /**
2
- * @title: 获取包括今天的后七天日期
3
- * @description:
4
- * @param {*}
5
- * @return {*}
6
- * @Author: 严文强
7
- * @Date: 2024-02-01 11:00
8
- */
9
- export declare const getNextSevenDaysList: (defaultDay: string) => string[];
10
- /**
11
- * @title: 将年月日信息只展示为天
12
- * @description: 如果为今天 则返回ToDay
13
- * @param {*}
14
- * @return {*}
15
- * @Author: 严文强
16
- * @Date: 2024-02-01 11:00
17
- */
18
- export declare const ShowDayOnly: (date: string) => string;
19
- /**
20
- * @title: 日历星期多语言
21
- * @description:
22
- * @param {*}
23
- * @return {*}
24
- * @Author: 严文强
25
- * @Date: 2024-02-01 18:42
26
- */
27
- export declare const weekListText: string[];
28
- /**
29
- * @title: 不同状态颜色值
30
- * @description:
31
- * @param {*}
32
- * @return {*}
33
- * @Author: xiangxiang.shao
34
- * @Date: 2024-02-19 11:35
35
- */
36
- export declare const statusColor: {
37
- call_to_book: string;
38
- lots_of_space: string;
39
- filling_up_fast: string;
40
- sold_out: string;
41
- };
42
- /**
43
- * @title: 根据预约量数据判断当前状态
44
- * @description:
45
- * @param {*}
46
- * @return {*}
47
- * @Author: xiangxiang.shao
48
- * @Date: 2024-02-19 11:35
49
- */
50
- export declare const getStatus: (dateLimit: any, currentDate: string, cutTime: any) => {
51
- status: string;
52
- disabled: boolean;
53
- };
54
- /**
55
- * @title: 根据当前日期以设定判断当前是否是call_to_book状态
56
- * @description:
57
- * @param {*}
58
- * @return {*}
59
- * @Author: xiangxiang.shao
60
- * @Date: 2024-02-21 10:10
61
- */
62
- export declare const getCallToBookStatus: (currentDate: string, dateLimitData: any, cutTime: any) => boolean;
63
- export declare const localeTypes: any;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const DepositModal: (props: any) => JSX.Element;
3
- export default DepositModal;
@@ -1,354 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.event.calendar.limit.unavailable': string;
4
- 'pisell2.event.calendar.limit.sold.out': string;
5
- 'pisell2.event.calendar.limit.call.to.book': string;
6
- 'pisell2.event.calendar.limit.filling.up.fast': string;
7
- 'pisell2.event.calendar.limit.lots.of.space': string;
8
- 'pisell2.event.calendar.booking-closed': string;
9
- 'pisell2.event.calendar.call-to-book': string;
10
- 'pisell2.event.calendar.email-to-book': string;
11
- 'pisell2.event.close.title': string;
12
- 'pisell2.event.close.tip': string;
13
- 'pisell2.event.close.continue': string;
14
- 'pisell2.event.close.exit': string;
15
- 'pisell2.appointment.step': (step: number) => string;
16
- 'pisell2.event.select.category': (val: string) => string;
17
- 'pisell2.event.select.campus': (val: string) => string;
18
- 'pisell2.event.select.event': string;
19
- 'pisell2.event.cart': string;
20
- 'pisell2.event.total': string;
21
- 'pisell2.event.total.gst': (val: string, amount: any) => string;
22
- 'pisell2.event.continue': string;
23
- 'pisell2.event.details': string;
24
- 'pisell2.event.introduction': string;
25
- 'pisell2.event.schedule': string;
26
- 'pisell2.event.teacher': string;
27
- 'pisell2.event.campus': string;
28
- 'pisell2.event.resource': string;
29
- 'pisell2.event.booking.options': string;
30
- 'pisell2.event.add.to.cart': string;
31
- 'pisell2.event.description': string;
32
- 'pisell2.event.view.more': string;
33
- 'pisell2.event.view.less': string;
34
- 'pisell2.event.holder.modal.title': string;
35
- 'pisell2.event.confirm': string;
36
- 'pisell2.event.confirm.information': string;
37
- 'pisell2.event.confirm.information.tip': string;
38
- 'pisell2.event.confirm.information.other': string;
39
- 'pisell2.event.add.others': string;
40
- 'pisell2.event.checkout': string;
41
- 'pisell2.event.edit.event': string;
42
- 'pisell2.event.remove': string;
43
- 'pisell2.event.option': string;
44
- 'pisell2.event.order.items.error.title': string;
45
- 'pisell2.event.order.items.error.tip': (val: number) => string;
46
- 'pisell2.event.order.items.error.proceed': string;
47
- 'pisell2.event.order.items.error.return': string;
48
- 'pisell2.event.order.items.error.back': string;
49
- 'pisell2.event.order.items.error.continue': string;
50
- 'pisell2.event.order.items.error.all.tip': string;
51
- 'pisell2.event.remove.title': string;
52
- 'pisell2.event.remove.tip': string;
53
- 'pisell2.event.remove.cancel': string;
54
- 'pisell2.event.create': string;
55
- 'pisell2.event.search': string;
56
- 'pisell2.event.empty.service': string;
57
- 'pisell2.event.title': (val: number) => string;
58
- 'pisell2.event.create.form': string;
59
- 'pisell2.event.empty.event': string;
60
- 'pisell2.event.error.holder': string;
61
- 'pisell2.event.price.from': string;
62
- 'pisell2.event.empty.holder.title': string;
63
- 'pisell2.event.empty.holder.tip': string;
64
- 'pisell2.event.empty.holder.continue.tip': string;
65
- 'pisell2.event.empty.holder.go.back': string;
66
- 'pisell2.event.empty.holder.continue.anyway': string;
67
- 'pisell2.event.event.full.title': string;
68
- 'pisell2.event.event.full.tip': string;
69
- 'pisell2.event.event.full.ok': string;
70
- 'pisell2.event.capacity.limit.reached.title': string;
71
- 'pisell2.event.capacity.limit.reached.tip': string;
72
- 'pisell2.appointment.booking.empty.service': string;
73
- 'pisell2.appointment.booking.empty.data': string;
74
- 'pisell2.appointment.booking.empty.time': string;
75
- 'pisell2.appointment.service.title': (val: number) => string;
76
- 'pisell2.appointment.add.guest': string;
77
- 'pisell2.appointment.edit.service': string;
78
- 'pisell2.appointment.remove.guest': string;
79
- 'pisell2.appointment.no.available.service': string;
80
- 'pisell2.appointment.max.guest': string;
81
- 'pisell2.appointment.no.available.time': string;
82
- 'pisell2.appointment.monday': string;
83
- 'pisell2.appointment.tuesday': string;
84
- 'pisell2.appointment.wednesday': string;
85
- 'pisell2.appointment.thursday': string;
86
- 'pisell2.appointment.friday': string;
87
- 'pisell2.appointment.saturday': string;
88
- 'pisell2.appointment.sunday': string;
89
- 'pisell2.appointment.any.professional': string;
90
- 'pisell2.appointment.for.maximum.availability': string;
91
- 'pisell2.appointment.deposit': string;
92
- 'pisell2.appointment.deposit.agreed': string;
93
- 'pisell2.appointment.deposit.agree.policy': string;
94
- 'pisell2.appointment.deposit.and': string;
95
- 'pisell2.appointment.deposit.amount.tip1': string;
96
- 'pisell2.appointment.deposit.amount.tip2': string;
97
- 'pisell2.appointment.deposit.close': string;
98
- 'pisell2.appointment.tips': string;
99
- 'pisell2.appointment.tips.content': string;
100
- 'pisell2.appointment.fill-form': string;
101
- 'pisell2.appointment.select.holder': (val: string) => string;
102
- 'pisell2.appointment.select.time': string;
103
- 'pisell2.appointment.unselect.time': string;
104
- 'pisell2.appointment.unselect.date': string;
105
- 'pisell2.appointment.unuse.date': string;
106
- 'pisell2.appointment.add-guests': string;
107
- 'pisell2.appointment.policy': string;
108
- 'pisell2.appointment.policy.confirm': string;
109
- 'pisell2.text.apply': string;
110
- 'pisell2.text.goodpass': string;
111
- 'pisell2.text.goodpass.product-vouchers': string;
112
- 'pisell2.text.goodpass.view-more': string;
113
- 'pisell2.text.goodpass.code': string;
114
- 'pisell2.text.goodpass.enter-code': string;
115
- 'pisell2.text.goodpass.code-invalid': string;
116
- 'pisell2.text.goodpass.login': string;
117
- 'pisell2.text.goodpass.login-tip': string;
118
- };
119
- 'zh-CN': {
120
- 'pisell2.event.calendar.limit.unavailable': string;
121
- 'pisell2.event.calendar.limit.sold.out': string;
122
- 'pisell2.event.calendar.limit.call.to.book': string;
123
- 'pisell2.event.calendar.limit.filling.up.fast': string;
124
- 'pisell2.event.calendar.limit.lots.of.space': string;
125
- 'pisell2.event.calendar.booking-closed': string;
126
- 'pisell2.event.calendar.call-to-book': string;
127
- 'pisell2.event.calendar.email-to-book': string;
128
- 'pisell2.event.close.title': string;
129
- 'pisell2.event.close.tip': string;
130
- 'pisell2.event.close.continue': string;
131
- 'pisell2.event.close.exit': string;
132
- 'pisell2.appointment.step': (step: number) => string;
133
- 'pisell2.event.select.category': (val: string) => string;
134
- 'pisell2.event.select.event': string;
135
- 'pisell2.event.select.campus': (val: string) => string;
136
- 'pisell2.event.cart': string;
137
- 'pisell2.event.total': string;
138
- 'pisell2.event.total.gst': (val: string, amount: any) => string;
139
- 'pisell2.event.continue': string;
140
- 'pisell2.event.details': string;
141
- 'pisell2.event.introduction': string;
142
- 'pisell2.event.schedule': string;
143
- 'pisell2.event.teacher': string;
144
- 'pisell2.event.campus': string;
145
- 'pisell2.event.resource': string;
146
- 'pisell2.event.booking.options': string;
147
- 'pisell2.event.add.to.cart': string;
148
- 'pisell2.event.description': string;
149
- 'pisell2.event.view.more': string;
150
- 'pisell2.event.view.less': string;
151
- 'pisell2.event.holder.modal.title': string;
152
- 'pisell2.event.confirm': string;
153
- 'pisell2.event.confirm.information': string;
154
- 'pisell2.event.confirm.information.tip': string;
155
- 'pisell2.event.confirm.information.other': string;
156
- 'pisell2.event.add.others': string;
157
- 'pisell2.event.checkout': string;
158
- 'pisell2.event.edit.event': string;
159
- 'pisell2.event.remove': string;
160
- 'pisell2.event.option': string;
161
- 'pisell2.event.order.items.error.title': string;
162
- 'pisell2.event.order.items.error.tip': (val: number) => string;
163
- 'pisell2.event.order.items.error.proceed': string;
164
- 'pisell2.event.order.items.error.return': string;
165
- 'pisell2.event.order.items.error.back': string;
166
- 'pisell2.event.order.items.error.continue': string;
167
- 'pisell2.event.order.items.error.all.tip': string;
168
- 'pisell2.event.remove.title': string;
169
- 'pisell2.event.remove.tip': string;
170
- 'pisell2.event.remove.cancel': string;
171
- 'pisell2.event.create': string;
172
- 'pisell2.event.search': string;
173
- 'pisell2.event.empty.service': string;
174
- 'pisell2.event.title': (val: number) => string;
175
- 'pisell2.event.create.form': string;
176
- 'pisell2.event.empty.event': string;
177
- 'pisell2.event.error.holder': string;
178
- 'pisell2.event.price.from': string;
179
- 'pisell2.event.empty.holder.title': string;
180
- 'pisell2.event.empty.holder.tip': string;
181
- 'pisell2.event.empty.holder.continue.tip': string;
182
- 'pisell2.event.empty.holder.go.back': string;
183
- 'pisell2.event.empty.holder.continue.anyway': string;
184
- 'pisell2.event.event.full.title': string;
185
- 'pisell2.event.event.full.tip': string;
186
- 'pisell2.event.event.full.ok': string;
187
- 'pisell2.event.capacity.limit.reached.title': string;
188
- 'pisell2.event.capacity.limit.reached.tip': string;
189
- 'pisell2.appointment.booking.empty.service': string;
190
- 'pisell2.appointment.booking.empty.data': string;
191
- 'pisell2.appointment.booking.empty.time': string;
192
- 'pisell2.appointment.service.title': (val: number) => string;
193
- 'pisell2.appointment.add.guest': string;
194
- 'pisell2.appointment.edit.service': string;
195
- 'pisell2.appointment.remove.guest': string;
196
- 'pisell2.appointment.no.available.service': string;
197
- 'pisell2.appointment.max.guest': string;
198
- 'pisell2.appointment.no.available.time': string;
199
- 'pisell2.appointment.monday': string;
200
- 'pisell2.appointment.tuesday': string;
201
- 'pisell2.appointment.wednesday': string;
202
- 'pisell2.appointment.thursday': string;
203
- 'pisell2.appointment.friday': string;
204
- 'pisell2.appointment.saturday': string;
205
- 'pisell2.appointment.sunday': string;
206
- 'pisell2.appointment.any.professional': string;
207
- 'pisell2.appointment.for.maximum.availability': string;
208
- 'pisell2.appointment.deposit': string;
209
- 'pisell2.appointment.deposit.agreed': string;
210
- 'pisell2.appointment.deposit.agree.policy': string;
211
- 'pisell2.appointment.deposit.and': string;
212
- 'pisell2.appointment.deposit.amount.tip1': string;
213
- 'pisell2.appointment.deposit.amount.tip2': string;
214
- 'pisell2.appointment.deposit.close': string;
215
- 'pisell2.appointment.tips': string;
216
- 'pisell2.appointment.tips.content': string;
217
- 'pisell2.appointment.fill-form': string;
218
- 'pisell2.appointment.select.holder': (val: string) => string;
219
- 'pisell2.appointment.select.time': string;
220
- 'pisell2.appointment.unselect.time': string;
221
- 'pisell2.appointment.unselect.date': string;
222
- 'pisell2.appointment.unuse.date': string;
223
- 'pisell2.appointment.add-guests': string;
224
- 'pisell2.appointment.policy': string;
225
- 'pisell2.appointment.policy.confirm': string;
226
- 'pisell2.text.apply': string;
227
- 'pisell2.text.goodpass': string;
228
- 'pisell2.text.goodpass.product-vouchers': string;
229
- 'pisell2.text.goodpass.view-more': string;
230
- 'pisell2.text.goodpass.code': string;
231
- 'pisell2.text.goodpass.enter-code': string;
232
- 'pisell2.text.goodpass.code-invalid': string;
233
- 'pisell2.text.goodpass.login': string;
234
- 'pisell2.text.goodpass.login-tip': string;
235
- };
236
- 'zh-HK': {
237
- 'pisell2.event.calendar.limit.unavailable': string;
238
- 'pisell2.event.calendar.limit.sold.out': string;
239
- 'pisell2.event.calendar.limit.call.to.book': string;
240
- 'pisell2.event.calendar.limit.filling.up.fast': string;
241
- 'pisell2.event.calendar.limit.lots.of.space': string;
242
- 'pisell2.event.calendar.booking-closed': string;
243
- 'pisell2.event.calendar.call-to-book': string;
244
- 'pisell2.event.calendar.email-to-book': string;
245
- 'pisell2.event.close.title': string;
246
- 'pisell2.event.close.tip': string;
247
- 'pisell2.event.close.continue': string;
248
- 'pisell2.event.close.exit': string;
249
- 'pisell2.appointment.step': (step: number) => string;
250
- 'pisell2.event.select.category': (val: string) => string;
251
- 'pisell2.event.select.event': string;
252
- 'pisell2.event.select.campus': (val: string) => string;
253
- 'pisell2.event.cart': string;
254
- 'pisell2.event.total': string;
255
- 'pisell2.event.total.gst': (val: string, amount: any) => string;
256
- 'pisell2.event.continue': string;
257
- 'pisell2.event.details': string;
258
- 'pisell2.event.introduction': string;
259
- 'pisell2.event.schedule': string;
260
- 'pisell2.event.teacher': string;
261
- 'pisell2.event.campus': string;
262
- 'pisell2.event.resource': string;
263
- 'pisell2.event.booking.options': string;
264
- 'pisell2.event.add.to.cart': string;
265
- 'pisell2.event.description': string;
266
- 'pisell2.event.view.more': string;
267
- 'pisell2.event.view.less': string;
268
- 'pisell2.event.holder.modal.title': string;
269
- 'pisell2.event.confirm': string;
270
- 'pisell2.event.confirm.information': string;
271
- 'pisell2.event.confirm.information.tip': string;
272
- 'pisell2.event.confirm.information.other': string;
273
- 'pisell2.event.add.others': string;
274
- 'pisell2.event.checkout': string;
275
- 'pisell2.event.edit.event': string;
276
- 'pisell2.event.remove': string;
277
- 'pisell2.event.option': string;
278
- 'pisell2.event.order.items.error.title': string;
279
- 'pisell2.event.order.items.error.tip': (val: number) => string;
280
- 'pisell2.event.order.items.error.proceed': string;
281
- 'pisell2.event.order.items.error.return': string;
282
- 'pisell2.event.order.items.error.back': string;
283
- 'pisell2.event.order.items.error.continue': string;
284
- 'pisell2.event.order.items.error.all.tip': string;
285
- 'pisell2.event.remove.title': string;
286
- 'pisell2.event.remove.tip': string;
287
- 'pisell2.event.remove.cancel': string;
288
- 'pisell2.event.create': string;
289
- 'pisell2.event.search': string;
290
- 'pisell2.event.empty.service': string;
291
- 'pisell2.event.title': (val: number) => string;
292
- 'pisell2.event.create.form': string;
293
- 'pisell2.event.empty.event': string;
294
- 'pisell2.event.error.holder': string;
295
- 'pisell2.event.price.from': string;
296
- 'pisell2.event.empty.holder.title': string;
297
- 'pisell2.event.empty.holder.tip': string;
298
- 'pisell2.event.empty.holder.continue.tip': string;
299
- 'pisell2.event.empty.holder.go.back': string;
300
- 'pisell2.event.empty.holder.continue.anyway': string;
301
- 'pisell2.event.event.full.title': string;
302
- 'pisell2.event.event.full.tip': string;
303
- 'pisell2.event.event.full.ok': string;
304
- 'pisell2.event.capacity.limit.reached.title': string;
305
- 'pisell2.event.capacity.limit.reached.tip': string;
306
- 'pisell2.appointment.booking.empty.service': string;
307
- 'pisell2.appointment.booking.empty.data': string;
308
- 'pisell2.appointment.booking.empty.time': string;
309
- 'pisell2.appointment.service.title': (val: number) => string;
310
- 'pisell2.appointment.add.guest': string;
311
- 'pisell2.appointment.edit.service': string;
312
- 'pisell2.appointment.remove.guest': string;
313
- 'pisell2.appointment.no.available.service': string;
314
- 'pisell2.appointment.max.guest': string;
315
- 'pisell2.appointment.no.available.time': string;
316
- 'pisell2.appointment.monday': string;
317
- 'pisell2.appointment.tuesday': string;
318
- 'pisell2.appointment.wednesday': string;
319
- 'pisell2.appointment.thursday': string;
320
- 'pisell2.appointment.friday': string;
321
- 'pisell2.appointment.saturday': string;
322
- 'pisell2.appointment.sunday': string;
323
- 'pisell2.appointment.any.professional': string;
324
- 'pisell2.appointment.for.maximum.availability': string;
325
- 'pisell2.appointment.deposit': string;
326
- 'pisell2.appointment.deposit.agreed': string;
327
- 'pisell2.appointment.deposit.agree.policy': string;
328
- 'pisell2.appointment.deposit.and': string;
329
- 'pisell2.appointment.deposit.amount.tip1': string;
330
- 'pisell2.appointment.deposit.amount.tip2': string;
331
- 'pisell2.appointment.deposit.close': string;
332
- 'pisell2.appointment.tips': string;
333
- 'pisell2.appointment.tips.content': string;
334
- 'pisell2.appointment.fill-form': string;
335
- 'pisell2.appointment.select.holder': (val: string) => string;
336
- 'pisell2.appointment.select.time': string;
337
- 'pisell2.appointment.unselect.time': string;
338
- 'pisell2.appointment.unselect.date': string;
339
- 'pisell2.appointment.unuse.date': string;
340
- 'pisell2.appointment.add-guests': string;
341
- 'pisell2.appointment.policy': string;
342
- 'pisell2.appointment.policy.confirm': string;
343
- 'pisell2.text.apply': string;
344
- 'pisell2.text.goodpass': string;
345
- 'pisell2.text.goodpass.product-vouchers': string;
346
- 'pisell2.text.goodpass.view-more': string;
347
- 'pisell2.text.goodpass.code': string;
348
- 'pisell2.text.goodpass.enter-code': string;
349
- 'pisell2.text.goodpass.code-invalid': string;
350
- 'pisell2.text.goodpass.login': string;
351
- 'pisell2.text.goodpass.login-tip': string;
352
- };
353
- };
354
- export default _default;
@@ -1,38 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface CustomSelectProps {
4
- options: any[];
5
- onValueChange: (value: any[]) => void;
6
- value: any[];
7
- rowKey: string;
8
- previewItemRender?: (item: any) => React.ReactNode;
9
- previewItemTitleRender?: (item: any, index: number, values: any[]) => React.ReactNode;
10
- addButtonRender?: () => React.ReactNode;
11
- optionRender: (item: any) => React.ReactNode;
12
- addButtonProps?: any;
13
- drawerProps?: any;
14
- createItemText?: string;
15
- loading?: boolean;
16
- previewItemClassName?: string;
17
- optionClassName?: string;
18
- mode?: 'single' | 'multiple' | 'form';
19
- filterItem?: (item: any, search: string) => boolean;
20
- isPreview?: boolean;
21
- name?: string;
22
- handleCreateItem?: () => void;
23
- handleViewItem?: (item: any) => void;
24
- searchChange?: (e: string) => void;
25
- loadMore?: any;
26
- virtualListHeight?: number;
27
- disabled?: boolean;
28
- searchValue?: string;
29
- onVirtualListScroll?: any;
30
- modalOpen?: boolean;
31
- closeCallback?: () => any;
32
- autoFocus?: boolean;
33
- showDropDown?: boolean;
34
- handleOpenModal?: () => void;
35
- handleDayChange?: (value: any) => void;
36
- }
37
- declare const _default: React.ForwardRefExoticComponent<CustomSelectProps & React.RefAttributes<unknown>>;
38
- export default _default;
@@ -1,6 +0,0 @@
1
- interface FooterProps {
2
- state: any;
3
- reload: () => void;
4
- }
5
- declare const Footer: ({ state, reload }: FooterProps) => JSX.Element | null;
6
- export default Footer;
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type SendModalValues = {
4
- sendSms: boolean;
5
- sendEmail: boolean;
6
- phone: {
7
- code: string;
8
- phone: string;
9
- };
10
- email: string;
11
- };
12
- interface SendModalProps {
13
- open: boolean;
14
- refreshKey: string;
15
- onCancel: () => void;
16
- onOk: (values: SendModalValues) => void;
17
- defaultValues?: {
18
- email?: string;
19
- phone?: {
20
- code?: string;
21
- phone?: string;
22
- };
23
- };
24
- onValuesChange?: (values: any) => void;
25
- }
26
- declare const SendModal: React.FC<SendModalProps>;
27
- export default SendModal;