@pisell/private-materials 6.3.21 → 6.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 (57) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  9. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/index.d.ts +0 -1
  11. package/es/components/booking/components/footer/index.js +12 -1
  12. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  13. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  14. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  15. package/es/components/booking/info/service/Lists.d.ts +0 -1
  16. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  17. package/es/components/booking/info/service2/utils.d.ts +1 -1
  18. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  19. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  20. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  21. package/es/components/booking/locales.js +9 -9
  22. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  23. package/es/components/eftposPay/hooks.d.ts +2 -2
  24. package/es/components/eftposPay/store/index.d.ts +6 -6
  25. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  26. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  27. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  28. package/es/components/ruleSetting/locales.js +2 -2
  29. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  30. package/es/components/ticketBooking/components/ticketBooking/index.js +48 -41
  31. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  32. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  33. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  34. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  35. package/lib/components/appointmentBooking/index.d.ts +0 -1
  36. package/lib/components/booking/components/footer/index.js +15 -2
  37. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  38. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  39. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  40. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  41. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  42. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  43. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  44. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  45. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  46. package/lib/components/booking/locales.js +9 -9
  47. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  48. package/lib/components/eftposPay/hooks.d.ts +2 -2
  49. package/lib/components/eftposPay/store/index.d.ts +6 -6
  50. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  51. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  52. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  53. package/lib/components/ruleSetting/locales.js +2 -2
  54. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  55. package/lib/components/ticketBooking/components/ticketBooking/index.js +43 -29
  56. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  57. package/package.json +2 -2
@@ -134,7 +134,7 @@ var locales_default = {
134
134
  const obj = {
135
135
  shop: "Paid from Merchant Portal",
136
136
  "mini-program": "Paid from WeChat Mini-program",
137
- pos: "Paid from Pisell Terminal",
137
+ pos: "Paid from Terminal",
138
138
  PC: "Paid from Website",
139
139
  app: "Paid from APP"
140
140
  };
@@ -171,7 +171,7 @@ var locales_default = {
171
171
  "pisell2.text.edit-profile": "Edit profile",
172
172
  "pisell2.text.remove-contact": "Remove contact",
173
173
  "pisell2.text.order.sales.channel.online": "Online store",
174
- "pisell2.text.order.sales.channel.pos-terminal": "Pisell terminal",
174
+ "pisell2.text.order.sales.channel.pos-terminal": "Terminal",
175
175
  "pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
176
176
  "pisell2.text.order.sales.channel.tableorder": "Table order",
177
177
  "pisell2.text.order.sales.channel.reserve": "Google reservation",
@@ -215,7 +215,7 @@ var locales_default = {
215
215
  "page.booking.text.available": "Available",
216
216
  "page.booking.text.fully-booked": "Fully booked",
217
217
  "page.booking.text.unlimited": "Unlimited",
218
- "pisell2.text.terminal-edit-message": "This operation cannot be performed. To proceed, please use the Pisell Terminal.",
218
+ "pisell2.text.terminal-edit-message": "This operation cannot be performed. To proceed, please use the Terminal.",
219
219
  "pisell2.text.actions": "Actions",
220
220
  "pisell2.text.add-client": "Add customer",
221
221
  // 日称tab
@@ -449,7 +449,7 @@ var locales_default = {
449
449
  const obj = {
450
450
  shop: "在 管理后台 支付",
451
451
  "mini-program": "在 微信小程序 支付",
452
- pos: "在 Pisell 终端 支付",
452
+ pos: "在 终端 支付",
453
453
  PC: "在 网站 支付",
454
454
  app: "在 手机应用程序 支付"
455
455
  };
@@ -481,7 +481,7 @@ var locales_default = {
481
481
  "pisell2.text.edit-profile": "编辑个人资料",
482
482
  "pisell2.text.remove-contact": "删除联系人",
483
483
  "pisell2.text.order.sales.channel.online": "在线店铺",
484
- "pisell2.text.order.sales.channel.pos-terminal": "Pisell终端",
484
+ "pisell2.text.order.sales.channel.pos-terminal": "终端",
485
485
  "pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
486
486
  "pisell2.text.order.sales.channel.tableorder": "扫码点餐",
487
487
  "pisell2.text.order.sales.channel.reserve": "谷歌预约",
@@ -516,7 +516,7 @@ var locales_default = {
516
516
  "pisell2.text.send-mail": "发送邮件",
517
517
  "pisell2.text.copy-to-clipboard": "复制到剪切板",
518
518
  "pisell2.text.ok": "好的",
519
- "pisell2.text.terminal-edit-message": "此操作不可使用,如需使用请至Pisell 终端设备操作。",
519
+ "pisell2.text.terminal-edit-message": "此操作不可使用,如需使用请至终端设备操作。",
520
520
  "page.booking.text.add-time": "加时",
521
521
  "page.booking.text.quantity": "数量",
522
522
  "page.booking.text.sales": "销售",
@@ -759,7 +759,7 @@ var locales_default = {
759
759
  const obj = {
760
760
  shop: "在 管理後臺 支付",
761
761
  "mini-program": "在 微信小程序 支付",
762
- pos: "在 Pisell 終端 支付",
762
+ pos: "在 終端 支付",
763
763
  PC: "在 網站 支付",
764
764
  app: "在 手機應用程序 支付"
765
765
  };
@@ -791,7 +791,7 @@ var locales_default = {
791
791
  "pisell2.text.edit-profile": "編輯個人資料",
792
792
  "pisell2.text.remove-contact": "删除聯系人",
793
793
  "pisell2.text.order.sales.channel.online": "在線店鋪",
794
- "pisell2.text.order.sales.channel.pos-terminal": "Pisell终端",
794
+ "pisell2.text.order.sales.channel.pos-terminal": "终端",
795
795
  "pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
796
796
  "pisell2.text.order.sales.channel.tableorder": "掃碼點餐",
797
797
  "pisell2.text.order.sales.channel.reserve": "谷歌預約",
@@ -826,7 +826,7 @@ var locales_default = {
826
826
  "pisell2.text.send-mail": "發送郵件",
827
827
  "pisell2.text.copy-to-clipboard": "複製到剪切板",
828
828
  "pisell2.text.ok": "好的",
829
- "pisell2.text.terminal-edit-message": "此操作不可使用,如需使用請至Pisell 終端設備操作。",
829
+ "pisell2.text.terminal-edit-message": "此操作不可使用,如需使用請至終端設備操作。",
830
830
  "page.booking.text.add-time": "加時",
831
831
  "page.booking.text.quantity": "數量",
832
832
  "page.booking.text.sales": "銷售",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;
@@ -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" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "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" | "loading" | "warn" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "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?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
+ action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
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?: "success" | "warn" | "loading" | "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
  import './index.less';
3
2
  declare const ContinueButton: () => JSX.Element;
4
3
  export default ContinueButton;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type BoolConfigVal = 0 | 1;
4
3
  export interface ProductCardConfig {
@@ -35,7 +35,7 @@ var locales_default = {
35
35
  "pisell2.text.rule-setting.sales_channel": "Operation platform",
36
36
  "pisell2.text.rule-setting.staff": "Staff",
37
37
  "pisell2.text.rule-setting.payment_method": "Payment method",
38
- "pisell2.text.rule-setting.pisell_terminal_device": "Pisell terminal device",
38
+ "pisell2.text.rule-setting.pisell_terminal_device": "Terminal device",
39
39
  "pisell2.text.rule-setting.current_device": "Current device"
40
40
  },
41
41
  "zh-CN": {
@@ -65,7 +65,7 @@ var locales_default = {
65
65
  "pisell2.text.rule-setting.sales_channel": "操作平台",
66
66
  "pisell2.text.rule-setting.staff": "員工",
67
67
  "pisell2.text.rule-setting.payment_method": "支付方式",
68
- "pisell2.text.rule-setting.pisell_terminal_device": "Pisell終端",
68
+ "pisell2.text.rule-setting.pisell_terminal_device": "終端",
69
69
  "pisell2.text.rule-setting.current_device": "當前設備"
70
70
  }
71
71
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -49,6 +49,7 @@ var import_index = require("./index.less");
49
49
  var import_utils3 = require("../../../booking/info/service2/utils");
50
50
  var import_amount = require("../../../booking/components/footer/amount");
51
51
  var import_formatProductMessage = __toESM(require("../../utils/formatProductMessage"));
52
+ var import_ahooks = require("ahooks");
52
53
  var _formatBookingDetail = (data, modalState) => {
53
54
  var _a, _b, _c, _d;
54
55
  let {
@@ -208,8 +209,43 @@ var TicketBooking = () => {
208
209
  const _listTimerRef = (0, import_react.useRef)();
209
210
  const _timerRef = (0, import_react.useRef)();
210
211
  const _callbackFnRef = (0, import_react.useRef)();
212
+ const { run: clearAllCart } = (0, import_ahooks.useDebounceFn)(
213
+ (type, orderId) => {
214
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h;
215
+ try {
216
+ _initFn(() => {
217
+ });
218
+ setState({
219
+ createCount: state.createCount + 1
220
+ });
221
+ (0, import_utils.sendWarningLog)({
222
+ title: "清空购物车",
223
+ content: [
224
+ { key: "店铺id", value: (_d = (_c2 = (_b2 = (_a2 = store == null ? void 0 : store.getState) == null ? void 0 : _a2.call(store)) == null ? void 0 : _b2.global) == null ? void 0 : _c2.globalConfig) == null ? void 0 : _d.id },
225
+ { key: "订单id", value: orderId },
226
+ { key: "类型", value: type }
227
+ ]
228
+ });
229
+ } catch (err) {
230
+ (0, import_utils.sendWarningLog)({
231
+ title: "清空购物车失败",
232
+ content: [
233
+ { key: "店铺id", value: (_h = (_g = (_f = (_e = store == null ? void 0 : store.getState) == null ? void 0 : _e.call(store)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id },
234
+ { key: "订单id", value: orderId },
235
+ { key: "类型", value: type },
236
+ { key: "error", value: err == null ? void 0 : err.message }
237
+ ]
238
+ });
239
+ }
240
+ },
241
+ {
242
+ wait: 500,
243
+ leading: true,
244
+ trailing: false
245
+ }
246
+ );
211
247
  (0, import_react.useEffect)(() => {
212
- var _a2, _b2, _c2, _d, _e, _f;
248
+ var _a2, _b2, _c2, _d, _e, _f, _g;
213
249
  localStorage.removeItem("bookingResourceList");
214
250
  _persistentRef.current = storage.get(`drawer-booking`) === "true" ? true : isTerminal();
215
251
  if (lowcodeRef) {
@@ -247,36 +283,14 @@ var TicketBooking = () => {
247
283
  (_e = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e.mountFunction(
248
284
  "booking",
249
285
  "refreshBookingDetail",
250
- (type, orderId) => {
251
- var _a3, _b3, _c3, _d2, _e2, _f2, _g, _h;
252
- try {
253
- _initFn(() => {
254
- });
255
- setState({
256
- createCount: state.createCount + 1
257
- });
258
- (0, import_utils.sendWarningLog)({
259
- title: "清空购物车",
260
- content: [
261
- { key: "店铺id", value: (_d2 = (_c3 = (_b3 = (_a3 = store == null ? void 0 : store.getState) == null ? void 0 : _a3.call(store)) == null ? void 0 : _b3.global) == null ? void 0 : _c3.globalConfig) == null ? void 0 : _d2.id },
262
- { key: "订单id", value: orderId },
263
- { key: "类型", value: type }
264
- ]
265
- });
266
- } catch (err) {
267
- (0, import_utils.sendWarningLog)({
268
- title: "清空购物车失败",
269
- content: [
270
- { key: "店铺id", value: (_h = (_g = (_f2 = (_e2 = store == null ? void 0 : store.getState) == null ? void 0 : _e2.call(store)) == null ? void 0 : _f2.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id },
271
- { key: "订单id", value: orderId },
272
- { key: "类型", value: type },
273
- { key: "error", value: err == null ? void 0 : err.message }
274
- ]
275
- });
276
- }
277
- }
286
+ clearAllCart
278
287
  );
279
288
  (_f = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _f.mountFunction(
289
+ "bookingTicket",
290
+ "clearAllCart",
291
+ clearAllCart
292
+ );
293
+ (_g = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _g.mountFunction(
280
294
  "booking",
281
295
  "voidBooking",
282
296
  (orderId) => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Dayjs } from 'dayjs';
3
2
  import './index.less';
4
3
  interface ITimeBarProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.21",
3
+ "version": "6.3.22",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,8 +59,8 @@
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": "3.0.1",
63
62
  "@pisell/materials": "6.3.7",
63
+ "@pisell/utils": "3.0.1",
64
64
  "@pisell/icon": "0.0.11",
65
65
  "@pisell/date-picker": "3.0.4"
66
66
  },