@pisell/private-materials 3.4.12 → 3.4.14

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 (139) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.js +12 -12
  8. package/build/lowcode/view.js +11 -11
  9. package/es/components/booking/addons/model.d.ts +1 -10
  10. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  11. package/es/components/booking/editBookingModal/index.js +3 -4
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/forms/single/RenderValueById.d.ts +7 -0
  14. package/es/components/booking/hooks/useClearCart.d.ts +2 -0
  15. package/es/components/booking/hooks/useQuotation.d.ts +5 -0
  16. package/es/components/booking/info/client/index.d.ts +4 -0
  17. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  18. package/es/components/booking/info/model.d.ts +1 -10
  19. package/es/components/booking/info/service/Lists.d.ts +2 -0
  20. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/info/service2/utils.d.ts +247 -0
  22. package/es/components/booking/info/utils.d.ts +50 -0
  23. package/es/components/booking/info2/index.d.ts +12 -0
  24. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  25. package/es/components/booking/info2/service/addService/utils.js +16 -1
  26. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  27. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  28. package/es/components/booking/info2/service/editService/index.d.ts +7 -0
  29. package/es/components/booking/info2/service/index.d.ts +4 -0
  30. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  31. package/es/components/booking/locales.d.ts +822 -0
  32. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  33. package/es/components/booking/materiels/startTime/index.d.ts +9 -0
  34. package/es/components/booking/model.d.ts +1 -9
  35. package/es/components/booking/notes/model.d.ts +1 -10
  36. package/es/components/booking/payments/model.d.ts +1 -10
  37. package/es/components/booking/utils.d.ts +174 -0
  38. package/es/components/eftposPay/const.d.ts +4 -1
  39. package/es/components/eftposPay/const.js +3 -1
  40. package/es/components/eftposPay/hooks.d.ts +2 -2
  41. package/es/components/eftposPay/hooks.js +3 -1
  42. package/es/components/eftposPay/index.js +1 -1
  43. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  44. package/es/components/eftposPay/linkly/const.js +82 -0
  45. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  46. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  47. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  48. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  49. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  50. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  51. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  52. package/es/components/eftposPay/linkly/index.js +197 -0
  53. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  54. package/es/components/eftposPay/linkly/service.js +81 -0
  55. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  56. package/es/components/eftposPay/manufacturer.js +4 -0
  57. package/es/components/eftposPay/pay.d.ts +1 -1
  58. package/es/components/eftposPay/pay.js +6 -2
  59. package/es/components/eftposPay/store/index.d.ts +4 -4
  60. package/es/components/pay/toC/model.d.ts +1 -9
  61. package/es/components/schedules/model.d.ts +1 -9
  62. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  63. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  64. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  65. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -0
  66. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  67. package/es/components/ticketBooking/utils/index.d.ts +25 -0
  68. package/es/components/wallet/Detail/model.d.ts +1 -13
  69. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  70. package/es/components/wallet/PointCard/model.d.ts +1 -13
  71. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  72. package/es/components/wallet/Voucher/model.d.ts +1 -13
  73. package/es/components/wallet/model.d.ts +1 -9
  74. package/lib/components/booking/addons/model.d.ts +1 -10
  75. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  76. package/lib/components/booking/editBookingModal/index.js +3 -4
  77. package/lib/components/booking/forms/model.d.ts +1 -10
  78. package/lib/components/booking/forms/single/RenderValueById.d.ts +7 -0
  79. package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
  80. package/lib/components/booking/hooks/useQuotation.d.ts +5 -0
  81. package/lib/components/booking/info/client/index.d.ts +4 -0
  82. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  83. package/lib/components/booking/info/model.d.ts +1 -10
  84. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  85. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  86. package/lib/components/booking/info/service2/utils.d.ts +247 -0
  87. package/lib/components/booking/info/utils.d.ts +50 -0
  88. package/lib/components/booking/info2/index.d.ts +12 -0
  89. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  90. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  91. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  92. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  93. package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
  94. package/lib/components/booking/info2/service/index.d.ts +4 -0
  95. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  96. package/lib/components/booking/locales.d.ts +822 -0
  97. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  98. package/lib/components/booking/materiels/startTime/index.d.ts +9 -0
  99. package/lib/components/booking/model.d.ts +1 -9
  100. package/lib/components/booking/notes/model.d.ts +1 -10
  101. package/lib/components/booking/payments/model.d.ts +1 -10
  102. package/lib/components/booking/utils.d.ts +174 -0
  103. package/lib/components/eftposPay/const.d.ts +4 -1
  104. package/lib/components/eftposPay/const.js +2 -0
  105. package/lib/components/eftposPay/hooks.d.ts +2 -2
  106. package/lib/components/eftposPay/hooks.js +11 -4
  107. package/lib/components/eftposPay/index.js +1 -1
  108. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  109. package/lib/components/eftposPay/linkly/const.js +102 -0
  110. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  111. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  112. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  113. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  114. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  115. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  116. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  117. package/lib/components/eftposPay/linkly/index.js +208 -0
  118. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  119. package/lib/components/eftposPay/linkly/service.js +55 -0
  120. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  121. package/lib/components/eftposPay/manufacturer.js +6 -0
  122. package/lib/components/eftposPay/pay.d.ts +1 -1
  123. package/lib/components/eftposPay/pay.js +13 -2
  124. package/lib/components/eftposPay/store/index.d.ts +4 -4
  125. package/lib/components/pay/toC/model.d.ts +1 -9
  126. package/lib/components/schedules/model.d.ts +1 -9
  127. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  128. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  129. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  130. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
  131. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  132. package/lib/components/ticketBooking/utils/index.d.ts +25 -0
  133. package/lib/components/wallet/Detail/model.d.ts +1 -13
  134. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  135. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  136. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  137. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  138. package/lib/components/wallet/model.d.ts +1 -9
  139. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ /**
2
+ * linkly支付接口
3
+ */
4
+ export declare const linklyPayApi: (data: any) => Promise<any>;
5
+ /**
6
+ * 查询linkly支付结果
7
+ */
8
+ export declare const linklyPayQueryApi: (param: any) => Promise<any>;
9
+ /**
10
+ * 取消linkly支付
11
+ */
12
+ export declare const linklyPayCancelApi: (param: any) => Promise<any>;
13
+ /**
14
+ * linkly支付签名结果处理
15
+ */
16
+ export declare const linklyPaySignatureApi: (param: any) => Promise<any>;
17
+ /**
18
+ * linkly退款接口
19
+ */
20
+ export declare const linklyRefundApi: (data: any) => Promise<any>;
21
+ /**
22
+ * 查询linkly退款结果
23
+ */
24
+ export declare const linklyRefundQueryApi: (param: any) => Promise<any>;
25
+ /**
26
+ * 取消linkly退款
27
+ */
28
+ export declare const linklyRefundCancelApi: (param: any) => Promise<any>;
29
+ /**
30
+ * linkly退款签名结果处理
31
+ */
32
+ export declare const linklyRefundSignatureApi: (param: any) => Promise<any>;
@@ -0,0 +1,55 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/eftposPay/linkly/service.ts
20
+ var service_exports = {};
21
+ __export(service_exports, {
22
+ linklyPayApi: () => linklyPayApi,
23
+ linklyPayCancelApi: () => linklyPayCancelApi,
24
+ linklyPayQueryApi: () => linklyPayQueryApi,
25
+ linklyPaySignatureApi: () => linklyPaySignatureApi,
26
+ linklyRefundApi: () => linklyRefundApi,
27
+ linklyRefundCancelApi: () => linklyRefundCancelApi,
28
+ linklyRefundQueryApi: () => linklyRefundQueryApi,
29
+ linklyRefundSignatureApi: () => linklyRefundSignatureApi
30
+ });
31
+ module.exports = __toCommonJS(service_exports);
32
+ var import_utils = require("../../../utils");
33
+ var linklyPayApi = (data) => {
34
+ return import_utils.request.getRequest().post("/shop/linkly/pay/apply", data, { customMessage: true, fullResult: true });
35
+ };
36
+ var linklyPayQueryApi = (param) => import_utils.request.getRequest().get("/shop/linkly/pay/query", param, { customMessage: true, fullResult: true });
37
+ var linklyPayCancelApi = (param) => import_utils.request.getRequest().post("/shop/linkly/pay/cancel", param, { customMessage: true, fullResult: true });
38
+ var linklyPaySignatureApi = (param) => import_utils.request.getRequest().post("/shop/linkly/pay/signature", param, { customMessage: true, fullResult: true });
39
+ var linklyRefundApi = (data) => {
40
+ return import_utils.request.getRequest().post("/shop/linkly/refund/apply", data, { customMessage: true, fullResult: true });
41
+ };
42
+ var linklyRefundQueryApi = (param) => import_utils.request.getRequest().get("/shop/linkly/refund/query", param, { customMessage: true, fullResult: true });
43
+ var linklyRefundCancelApi = (param) => import_utils.request.getRequest().post("/shop/linkly/refund/cancel", param, { customMessage: true, fullResult: true });
44
+ var linklyRefundSignatureApi = (param) => import_utils.request.getRequest().post("/shop/linkly/refund/signature", param, { customMessage: true, fullResult: true });
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ linklyPayApi,
48
+ linklyPayCancelApi,
49
+ linklyPayQueryApi,
50
+ linklyPaySignatureApi,
51
+ linklyRefundApi,
52
+ linklyRefundCancelApi,
53
+ linklyRefundQueryApi,
54
+ linklyRefundSignatureApi
55
+ });
@@ -3,4 +3,5 @@ export { getAmonunt } from './helper';
3
3
  export { default as Payo } from './payo';
4
4
  export { default as Windcave } from './windcave/windcave';
5
5
  export { default as Tyro } from './tyro';
6
+ export { default as Linkly } from './linkly';
6
7
  export declare const getInitState: (type: string, params?: any) => State;
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/eftposPay/manufacturer.tsx
30
30
  var manufacturer_exports = {};
31
31
  __export(manufacturer_exports, {
32
+ Linkly: () => import_linkly.default,
32
33
  Payo: () => import_payo.default,
33
34
  Tyro: () => import_tyro.default,
34
35
  Windcave: () => import_windcave.default,
@@ -40,10 +41,12 @@ var import_const = require("./const");
40
41
  var import_const2 = __toESM(require("./payo/const"));
41
42
  var import_const3 = __toESM(require("./tyro/const"));
42
43
  var import_const4 = __toESM(require("./windcave/const"));
44
+ var import_const5 = __toESM(require("./linkly/const"));
43
45
  var import_helper = require("./helper");
44
46
  var import_payo = __toESM(require("./payo"));
45
47
  var import_windcave = __toESM(require("./windcave/windcave"));
46
48
  var import_tyro = __toESM(require("./tyro"));
49
+ var import_linkly = __toESM(require("./linkly"));
47
50
  var getInitState = (type, params) => {
48
51
  switch (type) {
49
52
  case import_const.EftposEnum.Payo:
@@ -52,12 +55,15 @@ var getInitState = (type, params) => {
52
55
  return (0, import_const4.default)(params);
53
56
  case import_const.EftposEnum.Tyro:
54
57
  return (0, import_const3.default)(params);
58
+ case import_const.EftposEnum.Linkly:
59
+ return (0, import_const5.default)(params);
55
60
  default:
56
61
  throw new Error("未知的厂商类型");
57
62
  }
58
63
  };
59
64
  // Annotate the CommonJS export names for ESM import in node:
60
65
  0 && (module.exports = {
66
+ Linkly,
61
67
  Payo,
62
68
  Tyro,
63
69
  Windcave,
@@ -6,7 +6,7 @@ import './index.less';
6
6
  * @Author: hongbing.wang
7
7
  * @Date: 2024-08-20 14:59
8
8
  */
9
- declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client }: PayProps & {
9
+ declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client, }: PayProps & {
10
10
  terminal: {
11
11
  network: boolean;
12
12
  };
@@ -145,6 +145,7 @@ var Pay = ({
145
145
  }
146
146
  };
147
147
  }, []);
148
+ console.log("data =>>>>>> ", data);
148
149
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.render ? /* @__PURE__ */ import_react.default.createElement(
149
150
  "div",
150
151
  {
@@ -160,7 +161,16 @@ var Pay = ({
160
161
  }
161
162
  ),
162
163
  data.eftpos === "payo" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Payo, { api, onChange }, data.warn && data.status !== import_const.StatusEnum.Success && client === import_const.ClientEnum.Merchant ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-warn" }, data.warn) : null, data.status === import_const.StatusEnum.Success ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__eft-pay-step-item pisell-lowcode__eft-pay-step-item-tip" }, import_utils.locales.getText("page.eftpos-pay.text.transaction.end")) : null) : null,
163
- data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Tyro, { api, onChange, key: data.key, url: tyroUrl, version: tyroVersion }) : null,
164
+ data.eftpos === "tyro" ? /* @__PURE__ */ import_react.default.createElement(
165
+ import_manufacturer.Tyro,
166
+ {
167
+ api,
168
+ onChange,
169
+ key: data.key,
170
+ url: tyroUrl,
171
+ version: tyroVersion
172
+ }
173
+ ) : null,
164
174
  data.eftpos === "windcave" ? /* @__PURE__ */ import_react.default.createElement(
165
175
  import_manufacturer.Windcave,
166
176
  {
@@ -169,7 +179,8 @@ var Pay = ({
169
179
  key: data.key,
170
180
  formatAmount
171
181
  }
172
- ) : null
182
+ ) : null,
183
+ data.eftpos === "linkly" ? /* @__PURE__ */ import_react.default.createElement(import_manufacturer.Linkly, { key: data.key, api, onChange }) : null
173
184
  ) : null, data.type === import_const.PayRouteEnum.Unset && Comm ? /* @__PURE__ */ import_react.default.createElement(
174
185
  Comm,
175
186
  {
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "loading" | "warn" | "success" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,8 +297,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
+ action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -0,0 +1,3 @@
1
+ import { ProductProps } from '../../type';
2
+ declare const Product: (props: ProductProps) => JSX.Element;
3
+ export default Product;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Cart: () => JSX.Element;
3
+ export default Cart;
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ interface AddServiceProps {
3
+ onEdit?: any;
4
+ dispatch?: any;
5
+ state?: any;
6
+ renderMode?: 'current' | 'drawer';
7
+ }
8
+ declare const AddSerivce: (props: AddServiceProps) => JSX.Element | null;
9
+ export default AddSerivce;
@@ -249,6 +249,9 @@ var TicketBooking = () => {
249
249
  (type, orderId) => {
250
250
  _initFn(() => {
251
251
  });
252
+ setState({
253
+ createCount: state.createCount + 1
254
+ });
252
255
  }
253
256
  );
254
257
  (_f = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _f.mountFunction(
@@ -0,0 +1,12 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import './index.less';
3
+ interface ITimeBarProps {
4
+ globalState: any;
5
+ setGlobalState: any;
6
+ onDateChange: (date: Dayjs, dateString?: string) => void;
7
+ onDateTimeChange: (date: Dayjs, timeString: string) => void;
8
+ setIntervalTime: (value: boolean) => void;
9
+ locale: string;
10
+ }
11
+ declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
12
+ export default TimeBar;
@@ -0,0 +1,25 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ /** dayjs对象格式化为字符串时间 */
3
+ export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
+ export declare const getDefaultStartParam: () => string | string[];
5
+ export declare const formatBookingList: (bookingList: any[]) => any[];
6
+ export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
+ export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
+ export declare const restoreProductOtherData: (data: any) => {
9
+ product_id: any;
10
+ option: never[];
11
+ bundle: any;
12
+ product_variant_id: number;
13
+ quantity: number;
14
+ } | undefined;
15
+ export declare const isSameProduct: (a: any, b: any) => boolean;
16
+ export declare const addService: (list: any[], addItem: any, state: any) => {
17
+ list: any[];
18
+ quantity: any;
19
+ };
20
+ export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
21
+ export declare const getCartProductOverlay: (state: any) => any;
22
+ export declare const getIsOverlayProduct: (item: any, state: any) => any;
23
+ export declare const getIsShowNumber: (item: any, state: any) => any;
24
+ export declare const genServiceKey: (item: any) => string;
25
+ export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.12",
3
+ "version": "3.4.14",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",