@pisell/private-materials 6.3.1 → 6.3.3

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 (73) 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 +5 -5
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +6 -6
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/booking/addons/model.d.ts +10 -1
  13. package/es/components/booking/forms/model.d.ts +10 -1
  14. package/es/components/booking/forms/single/RenderValueById.d.ts +1 -0
  15. package/es/components/booking/forms/single/RenderValueById.js +68 -17
  16. package/es/components/booking/forms/single/index.less +67 -1
  17. package/es/components/booking/info/model.d.ts +10 -1
  18. package/es/components/booking/info2/service/addService/utils.js +2 -1
  19. package/es/components/booking/info2/utilsByBooking.js +3 -2
  20. package/es/components/booking/locales.d.ts +3 -0
  21. package/es/components/booking/locales.js +6 -3
  22. package/es/components/booking/materiels/duration/index.js +1 -1
  23. package/es/components/booking/materiels/startTime/index.js +2 -2
  24. package/es/components/booking/model.d.ts +9 -1
  25. package/es/components/booking/notes/model.d.ts +10 -1
  26. package/es/components/booking/payments/model.d.ts +10 -1
  27. package/es/components/booking/utils.d.ts +2 -2
  28. package/es/components/booking/utils.js +3 -3
  29. package/es/components/eftposPay/amount.d.ts +1 -1
  30. package/es/components/eftposPay/device.d.ts +1 -1
  31. package/es/components/eftposPay/hooks.d.ts +2 -2
  32. package/es/components/eftposPay/store/index.d.ts +6 -6
  33. package/es/components/pay/toC/model.d.ts +9 -1
  34. package/es/components/schedules/model.d.ts +9 -1
  35. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  36. package/es/components/wallet/Detail/model.d.ts +13 -1
  37. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  38. package/es/components/wallet/PointCard/model.d.ts +13 -1
  39. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  40. package/es/components/wallet/Voucher/model.d.ts +13 -1
  41. package/es/components/wallet/model.d.ts +9 -1
  42. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  43. package/lib/components/booking/addons/model.d.ts +10 -1
  44. package/lib/components/booking/forms/model.d.ts +10 -1
  45. package/lib/components/booking/forms/single/RenderValueById.d.ts +1 -0
  46. package/lib/components/booking/forms/single/RenderValueById.js +37 -9
  47. package/lib/components/booking/forms/single/index.less +67 -1
  48. package/lib/components/booking/info/model.d.ts +10 -1
  49. package/lib/components/booking/info2/service/addService/utils.js +3 -3
  50. package/lib/components/booking/info2/utilsByBooking.js +4 -4
  51. package/lib/components/booking/locales.d.ts +3 -0
  52. package/lib/components/booking/locales.js +6 -3
  53. package/lib/components/booking/materiels/duration/index.js +1 -1
  54. package/lib/components/booking/materiels/startTime/index.js +1 -1
  55. package/lib/components/booking/model.d.ts +9 -1
  56. package/lib/components/booking/notes/model.d.ts +10 -1
  57. package/lib/components/booking/payments/model.d.ts +10 -1
  58. package/lib/components/booking/utils.d.ts +2 -2
  59. package/lib/components/booking/utils.js +3 -3
  60. package/lib/components/eftposPay/amount.d.ts +1 -1
  61. package/lib/components/eftposPay/device.d.ts +1 -1
  62. package/lib/components/eftposPay/hooks.d.ts +2 -2
  63. package/lib/components/eftposPay/store/index.d.ts +6 -6
  64. package/lib/components/pay/toC/model.d.ts +9 -1
  65. package/lib/components/schedules/model.d.ts +9 -1
  66. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  67. package/lib/components/wallet/Detail/model.d.ts +13 -1
  68. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  69. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  70. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  71. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  72. package/lib/components/wallet/model.d.ts +9 -1
  73. package/package.json +4 -4
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
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 +1,13 @@
1
- export declare const Provider: any, Context: any;
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ import './index.less';
1
2
  interface RenderValueByIdProps {
2
3
  field: any;
3
4
  value: any;
@@ -34,17 +34,20 @@ __export(RenderValueById_exports, {
34
34
  module.exports = __toCommonJS(RenderValueById_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_utils = require("@pisell/utils");
37
+ var import_materials = require("@pisell/materials");
37
38
  var import_antd = require("antd");
38
39
  var import_ahooks = require("ahooks");
39
40
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
40
41
  var import_serve = require("../serve");
42
+ var import_index = require("./index.less");
41
43
  var RenderValueById = (props) => {
42
- var _a, _b, _c, _d, _e, _f;
44
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
43
45
  const { field, value: propsValue } = props;
44
46
  const { appHelper } = (0, import_useEngineContext.default)();
47
+ const [displayCount, setDisplayCount] = (0, import_react.useState)(10);
45
48
  const _getFormData = (0, import_ahooks.useRequest)(import_serve.getFormData, {
46
49
  manual: true,
47
- cacheKey: `formOption-${(_a = field.setting) == null ? void 0 : _a.linkedTable}`,
50
+ cacheKey: `formOption-${(_a = field.setting) == null ? void 0 : _a.linkedTable}-${(_c = (_b = propsValue || []) == null ? void 0 : _b.toString) == null ? void 0 : _c.call(_b)}`,
48
51
  staleTime: 500,
49
52
  cacheTime: 5e3
50
53
  });
@@ -81,24 +84,49 @@ var RenderValueById = (props) => {
81
84
  }))) || [];
82
85
  }
83
86
  return (_e2 = field == null ? void 0 : field.setting) == null ? void 0 : _e2.customTypeList;
84
- }, [field.filed_type, (_b = field == null ? void 0 : field.setting) == null ? void 0 : _b.customTypeList, _getFormData.data]);
87
+ }, [field.filed_type, (_d = field == null ? void 0 : field.setting) == null ? void 0 : _d.customTypeList, _getFormData.data]);
85
88
  if ((0, import_utils.isArr)(value)) {
89
+ const formListDisplay = ((_e = field == null ? void 0 : field.setting) == null ? void 0 : _e.displayStyle) === "list" && (field == null ? void 0 : field.filed_type) === "form_to_form";
86
90
  let _list = options == null ? void 0 : options.filter((i) => {
87
91
  return value == null ? void 0 : value.includes((i == null ? void 0 : i.id) || i.value);
88
92
  });
89
- let _str = (_list == null ? void 0 : _list.map((i) => {
93
+ let _str = !formListDisplay && (_list == null ? void 0 : _list.map((i) => {
90
94
  var _a2;
91
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, null, (_a2 = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a2.translationShop((i == null ? void 0 : i.title) || (i == null ? void 0 : i.label)));
95
+ const title = (_a2 = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a2.translationShop((i == null ? void 0 : i.title) || (i == null ? void 0 : i.label));
96
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title }, /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { className: "pisell-lowcode__booking-form-link-tag-title" }, title));
92
97
  })) || "-";
93
- return /* @__PURE__ */ import_react.default.createElement("span", null, _str || "-");
98
+ if (formListDisplay) {
99
+ const displayList = (_list == null ? void 0 : _list.slice(0, displayCount)) || [];
100
+ _str = (displayList == null ? void 0 : displayList.map((i, index) => {
101
+ var _a2;
102
+ const title = (_a2 = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a2.translationShop((i == null ? void 0 : i.title) || (i == null ? void 0 : i.label));
103
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-form-link-to-list-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-form-link-to-list-item-index" }, index + 1), /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-form-link-to-list-item-title" }, title)));
104
+ })) || "-";
105
+ }
106
+ return /* @__PURE__ */ import_react.default.createElement(
107
+ "span",
108
+ {
109
+ className: formListDisplay ? "pisell-lowcode__booking-form-link-to-list-wrap" : ""
110
+ },
111
+ _str || "-",
112
+ formListDisplay && (_list == null ? void 0 : _list.length) > displayCount && /* @__PURE__ */ import_react.default.createElement(
113
+ "div",
114
+ {
115
+ className: "pisell-lowcode__booking-form-link-to-list-item-more",
116
+ onClick: () => setDisplayCount((prev) => Math.min(prev + 10, (_list == null ? void 0 : _list.length) || 0))
117
+ },
118
+ /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.text.form.link.to.another.record.more")),
119
+ /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "icona-IconStroke" })
120
+ )
121
+ );
94
122
  }
95
123
  if (!(0, import_utils.isUndefined)(value)) {
96
- if ((field == null ? void 0 : field.filed_type) === "select" && !((_c = field == null ? void 0 : field.setting) == null ? void 0 : _c.version)) {
124
+ if ((field == null ? void 0 : field.filed_type) === "select" && !((_f = field == null ? void 0 : field.setting) == null ? void 0 : _f.version)) {
97
125
  return /* @__PURE__ */ import_react.default.createElement("span", null, value || "-");
98
126
  }
99
127
  let _item = options == null ? void 0 : options.filter((i) => (i == null ? void 0 : i.id) == value);
100
- return ((_f = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _f.translationShop(
101
- ((_d = _item == null ? void 0 : _item[0]) == null ? void 0 : _d.title) || ((_e = _item == null ? void 0 : _item[0]) == null ? void 0 : _e.label)
128
+ return ((_i = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _i.translationShop(
129
+ ((_g = _item == null ? void 0 : _item[0]) == null ? void 0 : _g.title) || ((_h = _item == null ? void 0 : _item[0]) == null ? void 0 : _h.label)
102
130
  )) || "-";
103
131
  }
104
132
  return null;
@@ -1,3 +1,69 @@
1
1
  .attachment-item {
2
2
  width: 100%;
3
- }
3
+ }
4
+
5
+ .pisell-lowcode__booking-form-link-tag-title {
6
+ overflow: hidden;
7
+ text-overflow: ellipsis;
8
+ white-space: nowrap;
9
+ display: inline-block;
10
+ max-width: 100%;
11
+ }
12
+
13
+ .pisell-lowcode__booking-form-link-to-list-wrap {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 12px;
17
+
18
+
19
+ .pisell-lowcode__booking-form-link-to-list-item-more {
20
+ padding: 4px 6px;
21
+ color: #705dff;
22
+ font-size: 14px;
23
+ cursor: pointer;
24
+ background-color: #f9fafb;
25
+ border-radius: 8px;
26
+ border: 1px solid #eaecf0;
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
30
+ gap: 4px;
31
+ }
32
+
33
+ .pisell-lowcode__booking-form-link-to-list-item {
34
+ display: flex;
35
+ align-items: center;
36
+ gap: 8px;
37
+ background-color: #f9fafb;
38
+ padding: 12px 14px;
39
+ border-radius: 8px;
40
+ border: 1px solid #eaecf0;
41
+ color: #101828;
42
+ font-size: 16px;
43
+ font-weight: 500;
44
+ white-space: normal;
45
+
46
+ .pisell-lowcode__booking-form-link-to-list-item-index {
47
+ padding: 0 5px;
48
+ min-width: 20px;
49
+ min-height: 20px;
50
+ line-height: 20px;
51
+ border-radius: 20px;
52
+ font-size: 14px;
53
+ font-weight: 600;
54
+ background-color: #705dff;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ color: #fff;
59
+ }
60
+
61
+ .pisell-lowcode__booking-form-link-to-list-item-title {
62
+ flex: 1;
63
+ overflow: hidden;
64
+ text-overflow: ellipsis;
65
+ white-space: nowrap;
66
+ display: block;
67
+ }
68
+ }
69
+ }
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -384,7 +384,7 @@ var getIsAutoClose = (cacheItem) => {
384
384
  );
385
385
  };
386
386
  var getProductExtend = ({ cacheItem, state, isDisabledTime }) => {
387
- var _a, _b, _c, _d;
387
+ var _a, _b, _c, _d, _e, _f, _g;
388
388
  const isNew = cacheItem.new || !cacheItem._extend.endDate;
389
389
  let _cacheItem = { ...cacheItem };
390
390
  const resourcesOriginMap = state.service.resourcesOriginMap || {};
@@ -432,7 +432,7 @@ var getProductExtend = ({ cacheItem, state, isDisabledTime }) => {
432
432
  state
433
433
  });
434
434
  if ((0, import_utils.getDuration)(_cacheItem == null ? void 0 : _cacheItem.duration) === "flexible") {
435
- _cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
435
+ _cacheItem._extend.duration = (_e = (_d = (_c = _cacheItem._data.timeObj) == null ? void 0 : _c.durationSlicesBasedOnTime) == null ? void 0 : _d[0]) == null ? void 0 : _e.value;
436
436
  const { startDate, endDate } = (0, import_utils.getServiceTimes)({
437
437
  _extend: _cacheItem._extend
438
438
  });
@@ -466,7 +466,7 @@ var getProductExtend = ({ cacheItem, state, isDisabledTime }) => {
466
466
  {
467
467
  extraResources,
468
468
  // 此数据用来控制 该商品所展示的资源是自身关联的, 还是全部的
469
- resourceTab: (_d = (_c = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.resource_tab,
469
+ resourceTab: (_g = (_f = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _f.config) == null ? void 0 : _g.resource_tab,
470
470
  resourcesOrigin: state.service.resourcesOrigin
471
471
  }
472
472
  );
@@ -208,14 +208,14 @@ var getAppointmentTimingPreference = (state) => {
208
208
  return ((_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.information_tab) == null ? void 0 : _c.appointment_timing_preference) || "sequential";
209
209
  };
210
210
  var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
211
- var _a, _b, _c;
211
+ var _a, _b, _c, _d;
212
212
  const appointmentTimingPreference = getAppointmentTimingPreference(state);
213
213
  let lastServer = (0, import_utils2.getLastServer)(state.service.value);
214
214
  let _extend = {
215
215
  // 时长: 当前商品时长 > 第一个时长
216
216
  duration: (0, import_utils2.findNextDuration)(
217
217
  cacheItem.duration,
218
- timeObj.durationSlicesBasedOnTime,
218
+ timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime,
219
219
  (_a = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _a.value
220
220
  )
221
221
  };
@@ -226,7 +226,7 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
226
226
  _extend.start_time = lastServerStartDate.format("HH:mm");
227
227
  } else {
228
228
  if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
229
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
229
+ _extend.start_time = timeObj == null ? void 0 : timeObj.timeSlices[((_b = timeObj == null ? void 0 : timeObj.timeSlices) == null ? void 0 : _b.length) - 1].value;
230
230
  } else {
231
231
  _extend.start_time = lastServerEndDate.format("HH:mm");
232
232
  }
@@ -259,7 +259,7 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
259
259
  const { startDate, endDate } = (0, import_utils2.getServiceTimes)({ _extend });
260
260
  _extend.startDate = startDate;
261
261
  _extend.endDate = endDate;
262
- const session = (_c = (_b = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.session;
262
+ const session = (_d = (_c = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.session;
263
263
  if ((0, import_utils2.isSessionProduct)(cacheItem) && session) {
264
264
  _extend.start_date = session.start_at;
265
265
  _extend.startDate = session.start_at;
@@ -273,6 +273,7 @@ declare const _default: {
273
273
  'pisell2.text.validity.valid_through': (str: string) => string;
274
274
  'pisell2.text.quotation.product.change.title': string;
275
275
  'pisell2.text.quotation.product.change.describe': string;
276
+ 'pisell2.text.form.link.to.another.record.more': string;
276
277
  };
277
278
  'zh-CN': {
278
279
  'pisell2.text.refunded-amount': string;
@@ -548,6 +549,7 @@ declare const _default: {
548
549
  'pisell2.text.validity.valid_through': (str: string) => string;
549
550
  'pisell2.text.quotation.product.change.title': string;
550
551
  'pisell2.text.quotation.product.change.describe': string;
552
+ 'pisell2.text.form.link.to.another.record.more': string;
551
553
  };
552
554
  'zh-HK': {
553
555
  'pisell2.text.refunded-amount': string;
@@ -823,6 +825,7 @@ declare const _default: {
823
825
  'pisell2.text.validity.valid_through': (str: string) => string;
824
826
  'pisell2.text.quotation.product.change.title': string;
825
827
  'pisell2.text.quotation.product.change.describe': string;
828
+ 'pisell2.text.form.link.to.another.record.more': string;
826
829
  };
827
830
  };
828
831
  export default _default;
@@ -334,7 +334,8 @@ var locales_default = {
334
334
  return `Valid through ${str}`;
335
335
  },
336
336
  "pisell2.text.quotation.product.change.title": "Notification",
337
- "pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data."
337
+ "pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data.",
338
+ "pisell2.text.form.link.to.another.record.more": "View More"
338
339
  },
339
340
  "zh-CN": {
340
341
  "pisell2.text.refunded-amount": "已退金额",
@@ -641,7 +642,8 @@ var locales_default = {
641
642
  return `有效期至 ${str} (含当日)`;
642
643
  },
643
644
  "pisell2.text.quotation.product.change.title": "提示",
644
- "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
645
+ "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
646
+ "pisell2.text.form.link.to.another.record.more": "查看更多"
645
647
  },
646
648
  "zh-HK": {
647
649
  "pisell2.text.refunded-amount": "已退金額",
@@ -948,6 +950,7 @@ var locales_default = {
948
950
  return `有效期至 ${str} (含當日)`;
949
951
  },
950
952
  "pisell2.text.quotation.product.change.title": "提示",
951
- "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
953
+ "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
954
+ "pisell2.text.form.link.to.another.record.more": "查看更多"
952
955
  }
953
956
  };
@@ -77,7 +77,7 @@ var Duration = (props) => {
77
77
  });
78
78
  }
79
79
  return durationSlicesBasedOnTime;
80
- }, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
80
+ }, [timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
81
81
  (0, import_react.useEffect)(() => {
82
82
  timeObjChange == null ? void 0 : timeObjChange(times);
83
83
  }, [times]);
@@ -52,6 +52,6 @@ var StartTime = (props) => {
52
52
  },
53
53
  []
54
54
  );
55
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(timeObj.timeSlices));
55
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(timeObj == null ? void 0 : timeObj.timeSlices));
56
56
  };
57
57
  var startTime_default = StartTime;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -105,4 +106,11 @@ export declare const walkInData: {
105
106
  id: number;
106
107
  nickname: string;
107
108
  };
108
- export declare const Provider: any, Context: any;
109
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
+ state: FormState;
111
+ } & {
112
+ dispatch: (params: {
113
+ type: string;
114
+ payload: any;
115
+ }) => void;
116
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -550,7 +550,7 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
550
550
  }
551
551
  return findNextDuration(
552
552
  cacheItem.duration,
553
- timeObj.durationSlicesBasedOnTime,
553
+ timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime,
554
554
  (_a = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _a.value
555
555
  );
556
556
  };
@@ -566,14 +566,14 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
566
566
  _extend.start_time = lastServerStartDate.format("HH:mm");
567
567
  } else {
568
568
  if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
569
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
569
+ _extend.start_time = timeObj == null ? void 0 : timeObj.timeSlices[(timeObj == null ? void 0 : timeObj.timeSlices.length) - 1].value;
570
570
  } else {
571
571
  _extend.start_time = lastServerEndDate.format("HH:mm");
572
572
  }
573
573
  }
574
574
  } else {
575
575
  let findNextSliceProps = {
576
- timeSlices: timeObj.timeSlices,
576
+ timeSlices: timeObj == null ? void 0 : timeObj.timeSlices,
577
577
  index: 0,
578
578
  date: ""
579
579
  };
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -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" | "warn" | "loading" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -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,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
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
+ }>;
@@ -256,7 +256,7 @@ var AddSerivce = (props) => {
256
256
  setCurrentProduct(item);
257
257
  } else {
258
258
  setCurrentProduct(null);
259
- if (!isSession && (0, import_utils4.isNormalProductByDurationSchedule)(item)) {
259
+ if ((item == null ? void 0 : item.extension_type) === "normal") {
260
260
  cacheValues = {
261
261
  bundle: [],
262
262
  key: item.id,
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
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 {};