@pisell/private-materials 3.0.76 → 3.0.77

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 (48) 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/render/default/view.js +2 -2
  7. package/build/lowcode/view.js +2 -2
  8. package/es/components/booking/addons/index.d.ts +1 -1
  9. package/es/components/booking/addons/model.d.ts +2 -1
  10. package/es/components/booking/components/footer/amount.d.ts +1 -0
  11. package/es/components/booking/components/footer/amount.js +18 -2
  12. package/es/components/booking/components/footer/index.js +7 -1
  13. package/es/components/booking/forms/forms.d.ts +1 -1
  14. package/es/components/booking/forms/index.d.ts +1 -1
  15. package/es/components/booking/forms/model.d.ts +2 -1
  16. package/es/components/booking/index.d.ts +1 -1
  17. package/es/components/booking/info/index.d.ts +1 -1
  18. package/es/components/booking/info/model.d.ts +2 -1
  19. package/es/components/booking/locales.d.ts +3 -0
  20. package/es/components/booking/locales.js +3 -0
  21. package/es/components/booking/model.d.ts +2 -1
  22. package/es/components/booking/notes/index.d.ts +1 -1
  23. package/es/components/booking/notes/model.d.ts +2 -1
  24. package/es/components/booking/payments/index.d.ts +1 -1
  25. package/es/components/booking/payments/model.d.ts +2 -1
  26. package/es/components/schedules/index.d.ts +1 -1
  27. package/es/components/schedules/model.d.ts +2 -1
  28. package/lib/components/booking/addons/index.d.ts +1 -1
  29. package/lib/components/booking/addons/model.d.ts +2 -1
  30. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  31. package/lib/components/booking/components/footer/amount.js +11 -2
  32. package/lib/components/booking/components/footer/index.js +5 -0
  33. package/lib/components/booking/forms/forms.d.ts +1 -1
  34. package/lib/components/booking/forms/index.d.ts +1 -1
  35. package/lib/components/booking/forms/model.d.ts +2 -1
  36. package/lib/components/booking/index.d.ts +1 -1
  37. package/lib/components/booking/info/index.d.ts +1 -1
  38. package/lib/components/booking/info/model.d.ts +2 -1
  39. package/lib/components/booking/locales.d.ts +3 -0
  40. package/lib/components/booking/locales.js +3 -0
  41. package/lib/components/booking/model.d.ts +2 -1
  42. package/lib/components/booking/notes/index.d.ts +1 -1
  43. package/lib/components/booking/notes/model.d.ts +2 -1
  44. package/lib/components/booking/payments/index.d.ts +1 -1
  45. package/lib/components/booking/payments/model.d.ts +2 -1
  46. package/lib/components/schedules/index.d.ts +1 -1
  47. package/lib/components/schedules/model.d.ts +2 -1
  48. package/package.json +3 -3
@@ -13,5 +13,5 @@ export interface InfoProps {
13
13
  setGlobalState: any;
14
14
  }
15
15
  export declare const formatProducts: (values: any) => any;
16
- declare const Addons: (props: any) => JSX.Element;
16
+ declare const Addons: (props: any) => any;
17
17
  export default Addons;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -19,4 +19,5 @@ export declare const getSumTotal: (state: any, isEdit: boolean) => {
19
19
  orderPaidAmount: number;
20
20
  totalRefundAmount: number;
21
21
  dueAmount: number;
22
+ roundingAmount: number;
22
23
  };
@@ -263,6 +263,15 @@ var getShopDiscount = function getShopDiscount(state) {
263
263
  var _state$bookingDetail8;
264
264
  return Number((_state$bookingDetail8 = state.bookingDetail) === null || _state$bookingDetail8 === void 0 ? void 0 : _state$bookingDetail8.shop_discount) || 0;
265
265
  };
266
+ var getRoundingAmount = function getRoundingAmount(state) {
267
+ var _state$bookingDetail9;
268
+ return Number(state === null || state === void 0 ? void 0 : (_state$bookingDetail9 = state.bookingDetail) === null || _state$bookingDetail9 === void 0 ? void 0 : _state$bookingDetail9.rounding_amount) || 0;
269
+ };
270
+ var getSumTotalAmount = function getSumTotalAmount(_ref2) {
271
+ var expectAmount = _ref2.expectAmount,
272
+ roundingAmount = _ref2.roundingAmount;
273
+ return expectAmount + roundingAmount;
274
+ };
266
275
 
267
276
  /**
268
277
  * 总金额
@@ -275,6 +284,9 @@ export var getSumTotal = function getSumTotal(state, isEdit) {
275
284
  price = _getProductAmount.price,
276
285
  duration = _getProductAmount.duration;
277
286
 
287
+ // 舍入金额
288
+ var roundingAmount = getRoundingAmount(state);
289
+
278
290
  // 税费
279
291
  var tax = getTax(state, isEdit);
280
292
 
@@ -307,7 +319,10 @@ export var getSumTotal = function getSumTotal(state, isEdit) {
307
319
  });
308
320
 
309
321
  // 总支付金额 总计
310
- var sumTotalAmount = expectAmount;
322
+ var sumTotalAmount = getSumTotalAmount({
323
+ expectAmount: expectAmount,
324
+ roundingAmount: roundingAmount
325
+ });
311
326
 
312
327
  // 未支付的金额 负数代表着欠款
313
328
  var notPaidAmount = Number(formatAmount(sumTotalAmount, 2, '')) - orderPaidAmount;
@@ -332,6 +347,7 @@ export var getSumTotal = function getSumTotal(state, isEdit) {
332
347
  actualPaidAmount: actualPaidAmount,
333
348
  orderPaidAmount: orderPaidAmount,
334
349
  totalRefundAmount: totalRefundAmount,
335
- dueAmount: dueAmount
350
+ dueAmount: dueAmount,
351
+ roundingAmount: roundingAmount
336
352
  };
337
353
  };
@@ -1083,7 +1083,13 @@ var Footer = function Footer(props) {
1083
1083
  className: "order-total-item-label order-total-item-label-bold"
1084
1084
  }, locales.getText("pisell1.text.total")), /*#__PURE__*/React.createElement("span", {
1085
1085
  className: "order-total-item-value"
1086
- }, formatAmount(total.expectAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))), state.bookingId ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1086
+ }, formatAmount(total.expectAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))), !!total.roundingAmount && /*#__PURE__*/React.createElement("div", {
1087
+ className: "order-total-item"
1088
+ }, /*#__PURE__*/React.createElement("span", {
1089
+ className: "order-total-item-label"
1090
+ }, locales.getText('pisell1.text.rounding')), /*#__PURE__*/React.createElement("span", {
1091
+ className: "order-total-item-value"
1092
+ }, formatAmount(total.roundingAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || "$"))), state.bookingId ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1087
1093
  className: "order-total-item-border"
1088
1094
  }), /*#__PURE__*/React.createElement("div", {
1089
1095
  className: "order-total-item"
@@ -21,5 +21,5 @@ export interface InfoProps {
21
21
  * @Author: zhiwei.Wang
22
22
  * @Date: 2024-01-30 17:10
23
23
  */
24
- declare const Forms: (props: any) => JSX.Element;
24
+ declare const Forms: (props: any) => any;
25
25
  export default Forms;
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Forms: (props: any) => JSX.Element;
8
+ declare const Forms: (props: any) => any;
9
9
  export default Forms;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -1,2 +1,2 @@
1
- declare const Booking: (props: any) => JSX.Element;
1
+ declare const Booking: (props: any) => any;
2
2
  export default Booking;
@@ -8,5 +8,5 @@ export interface InfoProps {
8
8
  slot: any;
9
9
  setState: any;
10
10
  }
11
- declare const Info: (props: any) => JSX.Element;
11
+ declare const Info: (props: any) => any;
12
12
  export default Info;
@@ -1,9 +1,10 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
3
  export declare const walkInData: {
3
4
  id: number;
4
5
  nickname: string;
5
6
  };
6
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
7
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
7
8
  state: FormState;
8
9
  } & {
9
10
  dispatch: (params: {
@@ -96,6 +96,7 @@ declare const _default: {
96
96
  'pisell1.text.subtotal': string;
97
97
  'pisell1.text.tax': string;
98
98
  'pisell1.text.total': string;
99
+ 'pisell1.text.rounding': string;
99
100
  'pisell1.text.payment-fee': string;
100
101
  'pisell1.text.tomorrow': string;
101
102
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
@@ -259,6 +260,7 @@ declare const _default: {
259
260
  'pisell1.text.subtotal': string;
260
261
  'pisell1.text.tax': string;
261
262
  'pisell1.text.total': string;
263
+ 'pisell1.text.rounding': string;
262
264
  'pisell1.text.payment-fee': string;
263
265
  'pisell1.text.tomorrow': string;
264
266
  'pisell1.text.no-addons': string;
@@ -417,6 +419,7 @@ declare const _default: {
417
419
  'pisell1.text.subtotal': string;
418
420
  'pisell1.text.tax': string;
419
421
  'pisell1.text.total': string;
422
+ 'pisell1.text.rounding': string;
420
423
  'pisell1.text.payment-fee': string;
421
424
  'pisell1.text.tomorrow': string;
422
425
  'pisell1.text.no-addons': string;
@@ -105,6 +105,7 @@ export default {
105
105
  'pisell1.text.subtotal': 'Subtotal',
106
106
  'pisell1.text.tax': 'Tax',
107
107
  'pisell1.text.total': 'Total',
108
+ 'pisell1.text.rounding': 'Rounding',
108
109
  'pisell1.text.payment-fee': 'Payment fee',
109
110
  'pisell1.text.tomorrow': 'Tomorrow ',
110
111
  'pisell1.text.resource-error-message-1': function pisell1TextResourceErrorMessage1(x, y) {
@@ -288,6 +289,7 @@ export default {
288
289
  'pisell1.text.subtotal': '小计',
289
290
  'pisell1.text.tax': '税费',
290
291
  'pisell1.text.total': '总计',
292
+ 'pisell1.text.rounding': '舍入',
291
293
  'pisell1.text.payment-fee': '支付手续费',
292
294
  'pisell1.text.tomorrow': '明天',
293
295
  'pisell1.text.no-addons': '没有添加商品',
@@ -466,6 +468,7 @@ export default {
466
468
  'pisell1.text.subtotal': '小計',
467
469
  'pisell1.text.tax': '稅費',
468
470
  'pisell1.text.total': '總計',
471
+ 'pisell1.text.rounding': '舍入',
469
472
  'pisell1.text.payment-fee': '支付手續費',
470
473
  'pisell1.text.tomorrow': '明天',
471
474
  'pisell1.text.no-addons': '没有添加商品',
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -93,7 +94,7 @@ export declare const walkInData: {
93
94
  id: number;
94
95
  nickname: string;
95
96
  };
96
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
97
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
97
98
  state: FormState;
98
99
  } & {
99
100
  dispatch: (params: {
@@ -4,5 +4,5 @@ export interface InfoProps {
4
4
  globalState: any;
5
5
  setGlobalState: any;
6
6
  }
7
- declare const Notes: (props: any) => JSX.Element;
7
+ declare const Notes: (props: any) => any;
8
8
  export default Notes;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Payments: (props: any) => JSX.Element;
8
+ declare const Payments: (props: any) => any;
9
9
  export default Payments;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -1,3 +1,3 @@
1
1
  import "./index.less";
2
- declare const Schedules: (props: any) => JSX.Element;
2
+ declare const Schedules: (props: any) => any;
3
3
  export default Schedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,7 +69,7 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
72
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
72
73
  state: FormState;
73
74
  } & {
74
75
  dispatch: (params: {
@@ -13,5 +13,5 @@ export interface InfoProps {
13
13
  setGlobalState: any;
14
14
  }
15
15
  export declare const formatProducts: (values: any) => any;
16
- declare const Addons: (props: any) => JSX.Element;
16
+ declare const Addons: (props: any) => any;
17
17
  export default Addons;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -19,4 +19,5 @@ export declare const getSumTotal: (state: any, isEdit: boolean) => {
19
19
  orderPaidAmount: number;
20
20
  totalRefundAmount: number;
21
21
  dueAmount: number;
22
+ roundingAmount: number;
22
23
  };
@@ -154,8 +154,16 @@ var getShopDiscount = (state) => {
154
154
  var _a;
155
155
  return Number((_a = state.bookingDetail) == null ? void 0 : _a.shop_discount) || 0;
156
156
  };
157
+ var getRoundingAmount = (state) => {
158
+ var _a;
159
+ return Number((_a = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a.rounding_amount) || 0;
160
+ };
161
+ var getSumTotalAmount = ({ expectAmount, roundingAmount }) => {
162
+ return expectAmount + roundingAmount;
163
+ };
157
164
  var getSumTotal = (state, isEdit) => {
158
165
  const { price, duration } = getProductAmount(state, isEdit);
166
+ const roundingAmount = getRoundingAmount(state);
159
167
  const tax = getTax(state, isEdit);
160
168
  const paySurchargeFee = getPaySurchargeFee(state);
161
169
  const otherAmount = getOtherAmount(state);
@@ -164,7 +172,7 @@ var getSumTotal = (state, isEdit) => {
164
172
  const totalRefundAmount = getTotalRefundAmount(state);
165
173
  const shopDiscount = getShopDiscount(state);
166
174
  const expectAmount = getExpectAmount({ price, tax, otherAmount, shopDiscount, state, isEdit });
167
- const sumTotalAmount = expectAmount;
175
+ const sumTotalAmount = getSumTotalAmount({ expectAmount, roundingAmount });
168
176
  const notPaidAmount = Number((0, import_utils2.formatAmount)(sumTotalAmount, 2, "")) - orderPaidAmount;
169
177
  const actualPaidAmount = paidAmount;
170
178
  const dueAmount = notPaidAmount < 0 ? Number((0, import_utils2.formatAmount)(notPaidAmount + totalRefundAmount, 2, "")) : 0;
@@ -183,7 +191,8 @@ var getSumTotal = (state, isEdit) => {
183
191
  actualPaidAmount,
184
192
  orderPaidAmount,
185
193
  totalRefundAmount,
186
- dueAmount
194
+ dueAmount,
195
+ roundingAmount
187
196
  };
188
197
  };
189
198
  // Annotate the CommonJS export names for ESM import in node:
@@ -734,6 +734,11 @@ var Footer = (props) => {
734
734
  state.bookingId ? /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item-label" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, import_utils.locales.getText("pisell1.text.tax")), /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { fontSize: 14 } }, taxText)), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(total.tax, 2, (state == null ? void 0 : state.amountSymbol) || "$"))) : null,
735
735
  state.bookingId ? /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item-label" }, import_utils.locales.getText("pisell2.text.order-discount")), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(total.shopDiscount, 2, (state == null ? void 0 : state.amountSymbol) || "$"))) : null,
736
736
  /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-label order-total-item-label-bold" }, import_utils.locales.getText("pisell1.text.total")), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(total.expectAmount, 2, (state == null ? void 0 : state.amountSymbol) || "$"))),
737
+ !!total.roundingAmount && /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-label" }, import_utils.locales.getText("pisell1.text.rounding")), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(
738
+ total.roundingAmount,
739
+ 2,
740
+ (state == null ? void 0 : state.amountSymbol) || "$"
741
+ ))),
737
742
  state.bookingId ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item-border" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "order-total-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-label order-total-item-label-bold" }, import_utils.locales.getText("pisell2.text.amount-paid-on-order")), /* @__PURE__ */ import_react.default.createElement("span", { className: "order-total-item-value" }, (0, import_utils.formatAmount)(
738
743
  total.orderPaidAmount,
739
744
  2,
@@ -21,5 +21,5 @@ export interface InfoProps {
21
21
  * @Author: zhiwei.Wang
22
22
  * @Date: 2024-01-30 17:10
23
23
  */
24
- declare const Forms: (props: any) => JSX.Element;
24
+ declare const Forms: (props: any) => any;
25
25
  export default Forms;
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Forms: (props: any) => JSX.Element;
8
+ declare const Forms: (props: any) => any;
9
9
  export default Forms;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -1,2 +1,2 @@
1
- declare const Booking: (props: any) => JSX.Element;
1
+ declare const Booking: (props: any) => any;
2
2
  export default Booking;
@@ -8,5 +8,5 @@ export interface InfoProps {
8
8
  slot: any;
9
9
  setState: any;
10
10
  }
11
- declare const Info: (props: any) => JSX.Element;
11
+ declare const Info: (props: any) => any;
12
12
  export default Info;
@@ -1,9 +1,10 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
3
  export declare const walkInData: {
3
4
  id: number;
4
5
  nickname: string;
5
6
  };
6
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
7
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
7
8
  state: FormState;
8
9
  } & {
9
10
  dispatch: (params: {
@@ -96,6 +96,7 @@ declare const _default: {
96
96
  'pisell1.text.subtotal': string;
97
97
  'pisell1.text.tax': string;
98
98
  'pisell1.text.total': string;
99
+ 'pisell1.text.rounding': string;
99
100
  'pisell1.text.payment-fee': string;
100
101
  'pisell1.text.tomorrow': string;
101
102
  'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
@@ -259,6 +260,7 @@ declare const _default: {
259
260
  'pisell1.text.subtotal': string;
260
261
  'pisell1.text.tax': string;
261
262
  'pisell1.text.total': string;
263
+ 'pisell1.text.rounding': string;
262
264
  'pisell1.text.payment-fee': string;
263
265
  'pisell1.text.tomorrow': string;
264
266
  'pisell1.text.no-addons': string;
@@ -417,6 +419,7 @@ declare const _default: {
417
419
  'pisell1.text.subtotal': string;
418
420
  'pisell1.text.tax': string;
419
421
  'pisell1.text.total': string;
422
+ 'pisell1.text.rounding': string;
420
423
  'pisell1.text.payment-fee': string;
421
424
  'pisell1.text.tomorrow': string;
422
425
  'pisell1.text.no-addons': string;
@@ -129,6 +129,7 @@ var locales_default = {
129
129
  "pisell1.text.subtotal": "Subtotal",
130
130
  "pisell1.text.tax": "Tax",
131
131
  "pisell1.text.total": "Total",
132
+ "pisell1.text.rounding": "Rounding",
132
133
  "pisell1.text.payment-fee": "Payment fee",
133
134
  "pisell1.text.tomorrow": "Tomorrow ",
134
135
  "pisell1.text.resource-error-message-1": (x, y) => `${x} doesn't provide ${y}, but your team member can still book appointments.`,
@@ -306,6 +307,7 @@ var locales_default = {
306
307
  "pisell1.text.subtotal": "小计",
307
308
  "pisell1.text.tax": "税费",
308
309
  "pisell1.text.total": "总计",
310
+ "pisell1.text.rounding": "舍入",
309
311
  "pisell1.text.payment-fee": "支付手续费",
310
312
  "pisell1.text.tomorrow": "明天",
311
313
  "pisell1.text.no-addons": "没有添加商品",
@@ -478,6 +480,7 @@ var locales_default = {
478
480
  "pisell1.text.subtotal": "小計",
479
481
  "pisell1.text.tax": "稅費",
480
482
  "pisell1.text.total": "總計",
483
+ "pisell1.text.rounding": "舍入",
481
484
  "pisell1.text.payment-fee": "支付手續費",
482
485
  "pisell1.text.tomorrow": "明天",
483
486
  "pisell1.text.no-addons": "没有添加商品",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -93,7 +94,7 @@ export declare const walkInData: {
93
94
  id: number;
94
95
  nickname: string;
95
96
  };
96
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
97
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
97
98
  state: FormState;
98
99
  } & {
99
100
  dispatch: (params: {
@@ -4,5 +4,5 @@ export interface InfoProps {
4
4
  globalState: any;
5
5
  setGlobalState: any;
6
6
  }
7
- declare const Notes: (props: any) => JSX.Element;
7
+ declare const Notes: (props: any) => any;
8
8
  export default Notes;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Payments: (props: any) => JSX.Element;
8
+ declare const Payments: (props: any) => any;
9
9
  export default Payments;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from "../model";
2
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
3
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
3
4
  state: FormState;
4
5
  } & {
5
6
  dispatch: (params: {
@@ -1,3 +1,3 @@
1
1
  import "./index.less";
2
- declare const Schedules: (props: any) => JSX.Element;
2
+ declare const Schedules: (props: any) => any;
3
3
  export default Schedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,7 +69,7 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
72
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
72
73
  state: FormState;
73
74
  } & {
74
75
  dispatch: (params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.76",
3
+ "version": "3.0.77",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -58,9 +58,9 @@
58
58
  "ahooks": "^3.7.6",
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
- "@pisell/icon": "0.0.8",
61
+ "@pisell/utils": "1.0.25",
62
62
  "@pisell/date-picker": "1.0.74",
63
- "@pisell/utils": "1.0.25"
63
+ "@pisell/icon": "0.0.8"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "react": "^18.0.0",