@pisell/private-materials 3.0.162-gray → 3.0.162

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 (111) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +1 -1
  3. package/build/lowcode/preview.js +8 -8
  4. package/build/lowcode/render/default/view.css +1 -1
  5. package/build/lowcode/render/default/view.js +10 -10
  6. package/build/lowcode/view.css +1 -1
  7. package/build/lowcode/view.js +11 -11
  8. package/es/components/booking/components/footer/index.js +5 -34
  9. package/es/components/booking/forms/forms.d.ts +0 -1
  10. package/es/components/booking/forms/forms.js +2 -4
  11. package/es/components/booking/forms/single/index.d.ts +1 -1
  12. package/es/components/booking/forms/single/index.js +6 -4
  13. package/es/components/booking/info/client/index.js +1 -1
  14. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
  15. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +2 -4
  16. package/es/components/booking/info/clientVariant/vertical/index.js +5 -6
  17. package/es/components/booking/info/clientVariant/vertical/index.less +0 -8
  18. package/es/components/booking/info/index.less +0 -19
  19. package/es/components/booking/info/main.js +5 -11
  20. package/es/components/booking/info/pet/index.js +1 -1
  21. package/es/components/booking/info/service/addService/index.d.ts +3 -9
  22. package/es/components/booking/info/service/addService/index.js +36 -82
  23. package/es/components/booking/info/service/addService/index.less +1 -27
  24. package/es/components/booking/info/service/editService/index.js +13 -11
  25. package/es/components/booking/info/service/index.js +2 -5
  26. package/es/components/booking/info/service/index.less +0 -18
  27. package/es/components/booking/info/service/serviceItem/index.d.ts +3 -3
  28. package/es/components/booking/info/service/serviceItem/index.js +8 -22
  29. package/es/components/booking/info/service/serviceItem/index.less +0 -8
  30. package/es/components/booking/info/service/serviceList/index.js +1 -20
  31. package/es/components/booking/info2/index.js +3 -9
  32. package/es/components/booking/info2/service/addService/index.d.ts +2 -8
  33. package/es/components/booking/info2/service/addService/index.js +36 -82
  34. package/es/components/booking/info2/service/addTimeModal/index.js +0 -1
  35. package/es/components/booking/info2/service/editService/index.js +4 -11
  36. package/es/components/booking/info2/service/index.js +2 -5
  37. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -1
  38. package/es/components/booking/info2/service/serviceItem/index.js +3 -16
  39. package/es/components/booking/info2/service/serviceList/index.js +1 -20
  40. package/es/components/booking/info2/utilsByBooking.js +2 -6
  41. package/es/components/booking/locales.d.ts +0 -60
  42. package/es/components/booking/locales.js +3 -63
  43. package/es/components/booking/model.d.ts +0 -2
  44. package/es/components/booking/utils.d.ts +1 -1
  45. package/es/components/booking/utils.js +51 -54
  46. package/es/index.d.ts +0 -2
  47. package/es/index.js +1 -3
  48. package/lib/components/booking/components/footer/index.js +5 -30
  49. package/lib/components/booking/forms/forms.d.ts +0 -1
  50. package/lib/components/booking/forms/forms.js +2 -5
  51. package/lib/components/booking/forms/single/index.d.ts +1 -1
  52. package/lib/components/booking/forms/single/index.js +5 -4
  53. package/lib/components/booking/info/client/index.js +1 -1
  54. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -1
  55. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +2 -4
  56. package/lib/components/booking/info/clientVariant/vertical/index.js +76 -88
  57. package/lib/components/booking/info/clientVariant/vertical/index.less +0 -8
  58. package/lib/components/booking/info/index.less +0 -19
  59. package/lib/components/booking/info/main.js +3 -9
  60. package/lib/components/booking/info/pet/index.js +1 -2
  61. package/lib/components/booking/info/service/addService/index.d.ts +3 -9
  62. package/lib/components/booking/info/service/addService/index.js +29 -66
  63. package/lib/components/booking/info/service/addService/index.less +1 -27
  64. package/lib/components/booking/info/service/editService/index.js +6 -9
  65. package/lib/components/booking/info/service/index.js +2 -4
  66. package/lib/components/booking/info/service/index.less +0 -18
  67. package/lib/components/booking/info/service/serviceItem/index.d.ts +3 -3
  68. package/lib/components/booking/info/service/serviceItem/index.js +1 -15
  69. package/lib/components/booking/info/service/serviceItem/index.less +0 -8
  70. package/lib/components/booking/info/service/serviceList/index.js +1 -18
  71. package/lib/components/booking/info2/index.js +2 -8
  72. package/lib/components/booking/info2/service/addService/index.d.ts +2 -8
  73. package/lib/components/booking/info2/service/addService/index.js +29 -66
  74. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
  75. package/lib/components/booking/info2/service/editService/index.js +1 -7
  76. package/lib/components/booking/info2/service/index.js +2 -4
  77. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -1
  78. package/lib/components/booking/info2/service/serviceItem/index.js +1 -14
  79. package/lib/components/booking/info2/service/serviceList/index.js +1 -18
  80. package/lib/components/booking/info2/utilsByBooking.js +1 -5
  81. package/lib/components/booking/locales.d.ts +0 -60
  82. package/lib/components/booking/locales.js +3 -63
  83. package/lib/components/booking/model.d.ts +0 -2
  84. package/lib/components/booking/utils.d.ts +1 -1
  85. package/lib/components/booking/utils.js +22 -57
  86. package/lib/index.d.ts +0 -2
  87. package/lib/index.js +0 -6
  88. package/package.json +4 -4
  89. package/es/components/booking/dashboard/index.d.ts +0 -20
  90. package/es/components/booking/dashboard/index.js +0 -298
  91. package/es/components/booking/dashboard/serve.d.ts +0 -1
  92. package/es/components/booking/dashboard/serve.js +0 -27
  93. package/es/components/booking/hooks/useClearCart.d.ts +0 -3
  94. package/es/components/booking/hooks/useClearCart.js +0 -27
  95. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  96. package/es/components/booking/hooks/useCreateBookingPageHeader.js +0 -21
  97. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
  98. package/es/components/booking/info/addServiceVariant/index.js +0 -42
  99. package/lib/components/booking/dashboard/index.d.ts +0 -20
  100. package/lib/components/booking/dashboard/index.js +0 -279
  101. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  102. package/lib/components/booking/dashboard/serve.js +0 -33
  103. package/lib/components/booking/hooks/useClearCart.d.ts +0 -3
  104. package/lib/components/booking/hooks/useClearCart.js +0 -62
  105. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  106. package/lib/components/booking/hooks/useCreateBookingPageHeader.js +0 -53
  107. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
  108. package/lib/components/booking/info/addServiceVariant/index.js +0 -70
  109. package/lowcode/booking-dashboard/meta.ts +0 -137
  110. package/lowcode/booking-vertical-add-service/meta.ts +0 -124
  111. package/lowcode/vertical-add-service/meta.ts +0 -71
@@ -196,26 +196,6 @@ declare const _default: {
196
196
  'page.booking.text.please-choose-an-option-2': string;
197
197
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
198
198
  'page.booking.text.price-extra': (origin: string, current: string) => string;
199
- 'pisell2.booking.dashboard.groups-on-site-now': string;
200
- 'pisell2.booking.dashboard.groups-on-site-now-tip': string;
201
- 'pisell2.booking.dashboard.people-on-site-now': string;
202
- 'pisell2.booking.dashboard.people-on-site-now-tip': string;
203
- 'pisell2.booking.dashboard.total-visitors-today': string;
204
- 'pisell2.booking.dashboard.total-visitors-today-tip': string;
205
- 'pisell2.booking.dashboard.ongoing-visitors': string;
206
- 'pisell2.booking.dashboard.ongoing-visitors-tip': string;
207
- 'pisell2.booking.dashboard.upcoming-visitors': string;
208
- 'pisell2.booking.dashboard.upcoming-visitors-tip': string;
209
- 'pisell2.booking.dashboard.overdue-visitors': string;
210
- 'pisell2.booking.dashboard.overdue-visitors-tip': string;
211
- 'pisell2.booking.dashboard.completed-visitors': string;
212
- 'pisell2.booking.dashboard.completed-visitors-tip': string;
213
- 'pisell2.booking.dashboard.departed-visitors': string;
214
- 'pisell2.booking.dashboard.departed-visitors-tip': string;
215
- 'pisell2.booking.dashboard.default': string;
216
- 'pisell2.booking.info.text.clear-cart': string;
217
- 'pisell2.booking.info.text.clear-all': string;
218
- 'pisell2.booking.info.text.create-new': string;
219
199
  };
220
200
  'zh-CN': {
221
201
  'pisell2.text.refunded-amount': string;
@@ -414,26 +394,6 @@ declare const _default: {
414
394
  'page.booking.text.please-choose-an-option-2': string;
415
395
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
416
396
  'page.booking.text.price-extra': (origin: string, current: string) => string;
417
- 'pisell2.booking.dashboard.groups-on-site-now': string;
418
- 'pisell2.booking.dashboard.groups-on-site-now-tip': string;
419
- 'pisell2.booking.dashboard.people-on-site-now': string;
420
- 'pisell2.booking.dashboard.people-on-site-now-tip': string;
421
- 'pisell2.booking.dashboard.total-visitors-today': string;
422
- 'pisell2.booking.dashboard.total-visitors-today-tip': string;
423
- 'pisell2.booking.dashboard.ongoing-visitors': string;
424
- 'pisell2.booking.dashboard.ongoing-visitors-tip': string;
425
- 'pisell2.booking.dashboard.upcoming-visitors': string;
426
- 'pisell2.booking.dashboard.upcoming-visitors-tip': string;
427
- 'pisell2.booking.dashboard.overdue-visitors': string;
428
- 'pisell2.booking.dashboard.overdue-visitors-tip': string;
429
- 'pisell2.booking.dashboard.completed-visitors': string;
430
- 'pisell2.booking.dashboard.completed-visitors-tip': string;
431
- 'pisell2.booking.dashboard.departed-visitors': string;
432
- 'pisell2.booking.dashboard.departed-visitors-tip': string;
433
- 'pisell2.booking.dashboard.default': string;
434
- 'pisell2.booking.info.text.clear-cart': string;
435
- 'pisell2.booking.info.text.clear-all': string;
436
- 'pisell2.booking.info.text.create-new': string;
437
397
  };
438
398
  'zh-HK': {
439
399
  'pisell2.text.refunded-amount': string;
@@ -632,26 +592,6 @@ declare const _default: {
632
592
  'page.booking.text.please-choose-an-option-2': string;
633
593
  'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
634
594
  'page.booking.text.price-extra': (origin: string, current: string) => string;
635
- 'pisell2.booking.dashboard.groups-on-site-now': string;
636
- 'pisell2.booking.dashboard.groups-on-site-now-tip': string;
637
- 'pisell2.booking.dashboard.people-on-site-now': string;
638
- 'pisell2.booking.dashboard.people-on-site-now-tip': string;
639
- 'pisell2.booking.dashboard.total-visitors-today': string;
640
- 'pisell2.booking.dashboard.total-visitors-today-tip': string;
641
- 'pisell2.booking.dashboard.ongoing-visitors': string;
642
- 'pisell2.booking.dashboard.ongoing-visitors-tip': string;
643
- 'pisell2.booking.dashboard.upcoming-visitors': string;
644
- 'pisell2.booking.dashboard.upcoming-visitors-tip': string;
645
- 'pisell2.booking.dashboard.overdue-visitors': string;
646
- 'pisell2.booking.dashboard.overdue-visitors-tip': string;
647
- 'pisell2.booking.dashboard.completed-visitors': string;
648
- 'pisell2.booking.dashboard.completed-visitors-tip': string;
649
- 'pisell2.booking.dashboard.departed-visitors': string;
650
- 'pisell2.booking.dashboard.departed-visitors-tip': string;
651
- 'pisell2.booking.dashboard.default': string;
652
- 'pisell2.booking.info.text.clear-cart': string;
653
- 'pisell2.booking.info.text.clear-all': string;
654
- 'pisell2.booking.info.text.create-new': string;
655
595
  };
656
596
  };
657
597
  export default _default;
@@ -251,27 +251,7 @@ var locales_default = {
251
251
  "page.booking.text.please-choose-an-option-1": "Refund: Cancel the appointment and process a refund.",
252
252
  "page.booking.text.please-choose-an-option-2": "Cancel only: Cancel the appointment without processing a refund. (You can still process a refund after cancellation if needed)",
253
253
  "page.booking.text.resource.min-length-error": (x, y) => `Select at least ${x} ${y}`,
254
- "page.booking.text.price-extra": (origin, current) => `Original price of the item:${origin},Current price of the item:${current}`,
255
- "pisell2.booking.dashboard.groups-on-site-now": "Groups on-site now",
256
- "pisell2.booking.dashboard.groups-on-site-now-tip": "Tip: Total number of groups who have checked in and are currently on-site",
257
- "pisell2.booking.dashboard.people-on-site-now": "People on-site now",
258
- "pisell2.booking.dashboard.people-on-site-now-tip": "Tip: Total number of people who have checked in and are currently on-site",
259
- "pisell2.booking.dashboard.total-visitors-today": "Total visitors today",
260
- "pisell2.booking.dashboard.total-visitors-today-tip": "Tip: Total number of visitors today, regardless of check-in status",
261
- "pisell2.booking.dashboard.ongoing-visitors": "Ongoing visitors",
262
- "pisell2.booking.dashboard.ongoing-visitors-tip": "Tip: Total number of visitors who have passed the start time, regardless of check-in status",
263
- "pisell2.booking.dashboard.upcoming-visitors": "Upcoming visitors",
264
- "pisell2.booking.dashboard.upcoming-visitors-tip": "Tip: Total number of visitors expected to arrive in the near future",
265
- "pisell2.booking.dashboard.overdue-visitors": "Overdue visitors",
266
- "pisell2.booking.dashboard.overdue-visitors-tip": "Tip: Total number of visitors whose playtime has expired but have not yet left the venue",
267
- "pisell2.booking.dashboard.completed-visitors": "Completed visitors",
268
- "pisell2.booking.dashboard.completed-visitors-tip": "Tip: Total number of visitors whose playtime has ended, regardless of whether they have left the venue",
269
- "pisell2.booking.dashboard.departed-visitors": "Departed visitors",
270
- "pisell2.booking.dashboard.departed-visitors-tip": "Tip: Total number of visitors who checked in and have left the venue today",
271
- "pisell2.booking.dashboard.default": "Default",
272
- "pisell2.booking.info.text.clear-cart": "Clear cart",
273
- "pisell2.booking.info.text.clear-all": "Clear all",
274
- "pisell2.booking.info.text.create-new": "Create new"
254
+ "page.booking.text.price-extra": (origin, current) => `Original price of the item:${origin},Current price of the item:${current}`
275
255
  },
276
256
  "zh-CN": {
277
257
  "pisell2.text.refunded-amount": "已退金额",
@@ -495,27 +475,7 @@ var locales_default = {
495
475
  "page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
496
476
  "page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)",
497
477
  "page.booking.text.resource.min-length-error": (x, y) => `至少选择${x}项${y}`,
498
- "page.booking.text.price-extra": (origin, current) => `商品原价:${origin},商品现价:${current}`,
499
- "pisell2.booking.dashboard.groups-on-site-now": "当前在场团体",
500
- "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已检票并在场内的团体总数",
501
- "pisell2.booking.dashboard.people-on-site-now": "当前在场人数",
502
- "pisell2.booking.dashboard.people-on-site-now-tip": "提示:已检票并在场内的总人数",
503
- "pisell2.booking.dashboard.total-visitors-today": "今日游客总数",
504
- "pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的游客总人数,无论是否检票入场",
505
- "pisell2.booking.dashboard.ongoing-visitors": "进行中的游客",
506
- "pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已过开始时间的游客总数,无论是否检票",
507
- "pisell2.booking.dashboard.upcoming-visitors": "即将到达的游客",
508
- "pisell2.booking.dashboard.upcoming-visitors-tip": "提示:预计将在未来到场的游客总人数",
509
- "pisell2.booking.dashboard.overdue-visitors": "超时的游客",
510
- "pisell2.booking.dashboard.overdue-visitors-tip": "提示:游玩时间已过,但尚未离场的游客总人数",
511
- "pisell2.booking.dashboard.completed-visitors": "已完成的游客",
512
- "pisell2.booking.dashboard.completed-visitors-tip": "提示:游玩时长已结束的游客总人数,无论是否离场",
513
- "pisell2.booking.dashboard.departed-visitors": "已离场的游客",
514
- "pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已检票并离场的游客总人数",
515
- "pisell2.booking.dashboard.default": "默认",
516
- "pisell2.booking.info.text.clear-cart": "清空购物车",
517
- "pisell2.booking.info.text.clear-all": "清空",
518
- "pisell2.booking.info.text.create-new": "新建"
478
+ "page.booking.text.price-extra": (origin, current) => `商品原价:${origin},商品现价:${current}`
519
479
  },
520
480
  "zh-HK": {
521
481
  "pisell2.text.refunded-amount": "已退金額",
@@ -739,26 +699,6 @@ var locales_default = {
739
699
  "page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
740
700
  "page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)",
741
701
  "page.booking.text.resource.min-length-error": (x, y) => `至少選擇${x}項${y}`,
742
- "page.booking.text.price-extra": (origin, current) => `商品原價:${origin},商品現價:${current}`,
743
- "pisell2.booking.dashboard.groups-on-site-now": "當前在場團體",
744
- "pisell2.booking.dashboard.groups-on-site-now-tip": "提示:已檢票並在場內的團體總數",
745
- "pisell2.booking.dashboard.people-on-site-now": "當前在場人數",
746
- "pisell2.booking.dashboard.people-on-site-now-tip": "提示:已檢票並在場內的總人數",
747
- "pisell2.booking.dashboard.total-visitors-today": "今日遊客總數",
748
- "pisell2.booking.dashboard.total-visitors-today-tip": "提示:今日的遊客總人數,無論是否檢票入場",
749
- "pisell2.booking.dashboard.ongoing-visitors": "進行中的遊客",
750
- "pisell2.booking.dashboard.ongoing-visitors-tip": "提示:已過開始時間的遊客總數,無論是否檢票",
751
- "pisell2.booking.dashboard.upcoming-visitors": "即將到達的遊客",
752
- "pisell2.booking.dashboard.upcoming-visitors-tip": "提示:預計將在未來到場的遊客總人數",
753
- "pisell2.booking.dashboard.overdue-visitors": "超時的遊客",
754
- "pisell2.booking.dashboard.overdue-visitors-tip": "提示:遊玩時間已過,但尚未離場的遊客總人數",
755
- "pisell2.booking.dashboard.completed-visitors": "已完成的遊客",
756
- "pisell2.booking.dashboard.completed-visitors-tip": "提示:遊玩時長已結束的遊客總人數,無論是否離場",
757
- "pisell2.booking.dashboard.departed-visitors": "已離場的遊客",
758
- "pisell2.booking.dashboard.departed-visitors-tip": "提示:今日已檢票並離場的遊客總人數",
759
- "pisell2.booking.dashboard.default": "默认",
760
- "pisell2.booking.info.text.clear-cart": "清空購物車",
761
- "pisell2.booking.info.text.clear-all": "清空",
762
- "pisell2.booking.info.text.create-new": "新建"
702
+ "page.booking.text.price-extra": (origin, current) => `商品原價:${origin},商品現價:${current}`
763
703
  }
764
704
  };
@@ -93,8 +93,6 @@ export interface FormState {
93
93
  disableEventBookingEdit?: boolean;
94
94
  /** 关闭自动打开选择服务弹窗 */
95
95
  closeAutoOpenService?: boolean;
96
- /** 是否terminal创建booking页面 */
97
- isBookingCreatePage?: boolean;
98
96
  loading: boolean;
99
97
  }
100
98
  export declare const walkInData: {
@@ -62,7 +62,7 @@ export declare const getServeStartTime: (start_time: string) => string;
62
62
  * @Date: 2024-04-26 14:04
63
63
  */
64
64
  export declare const getServiceTime: (item: any, currentDate: any) => string;
65
- export declare const findNextSlice: ({ timeSlices, index, date, }: {
65
+ export declare const findNextSlice: ({ timeSlices, index, date }: {
66
66
  timeSlices: any[];
67
67
  index?: number | undefined;
68
68
  date?: string | undefined;
@@ -112,9 +112,7 @@ var sliceDayIntoFiveMinutes = (config, locale) => {
112
112
  value: durationValue
113
113
  });
114
114
  } else {
115
- const durationLabel = `${durationValue} ${import_utils.locales.getText(
116
- "pisell2.text.min"
117
- )}`;
115
+ const durationLabel = `${durationValue} ${import_utils.locales.getText("pisell2.text.min")}`;
118
116
  durationSlicesBasedOnTime.push({
119
117
  label: durationLabel,
120
118
  value: durationValue
@@ -137,9 +135,7 @@ var getServeStartTime = (start_time) => {
137
135
  return start_time;
138
136
  };
139
137
  var getServiceTime = (item, currentDate) => {
140
- const startDate = (0, import_dayjs.default)(
141
- currentDate.format("YYYY-MM-DD") + " " + getServeStartTime(item._extend.start_time)
142
- );
138
+ const startDate = (0, import_dayjs.default)(currentDate.format("YYYY-MM-DD") + " " + getServeStartTime(item._extend.start_time));
143
139
  const startTime = startDate.format("HH:mm");
144
140
  const endTime = startDate.add(flexibleObj.getValue(item._extend.duration), "minute").format("HH:mm");
145
141
  const duration = getDiscountTime(flexibleObj.getValue(item._extend.duration));
@@ -187,7 +183,10 @@ var formatProductListByCategory = (list, filterItem) => {
187
183
  }
188
184
  categoryObject[categoryItem.id] = {
189
185
  ...categoryItem,
190
- products: [...categoryObject[categoryItem.id].products, productItem]
186
+ products: [
187
+ ...categoryObject[categoryItem.id].products,
188
+ productItem
189
+ ]
191
190
  };
192
191
  }
193
192
  } else {
@@ -209,9 +208,7 @@ var formatProductListByCategory = (list, filterItem) => {
209
208
  return Object.values(categoryObject).sort((a, b) => b.sort - a.sort);
210
209
  };
211
210
  var getResourceTimeIsUsable = (item, cacheItem) => {
212
- const startDate = (0, import_dayjs.default)(
213
- cacheItem._extend.start_date.format("YYYY-MM-DD") + " " + getServeStartTime(cacheItem._extend.start_time)
214
- );
211
+ const startDate = (0, import_dayjs.default)(cacheItem._extend.start_date.format("YYYY-MM-DD") + " " + getServeStartTime(cacheItem._extend.start_time));
215
212
  const isFlexible = flexibleObj.isFlexible(cacheItem._extend.duration);
216
213
  let isMaxLimitRange = false;
217
214
  let isDateRange = false;
@@ -221,22 +218,13 @@ var getResourceTimeIsUsable = (item, cacheItem) => {
221
218
  } else {
222
219
  isMaxLimitRange = "unknown";
223
220
  }
224
- const timeStartDate = (0, import_dayjs.default)(time.start_date + " " + time.start_time).subtract(
225
- 1,
226
- "second"
227
- );
228
- const timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(
229
- 1,
230
- "second"
231
- );
221
+ const timeStartDate = (0, import_dayjs.default)(time.start_date + " " + time.start_time).subtract(1, "second");
222
+ const timeEndDate = (0, import_dayjs.default)(time.end_date + " " + time.end_time).add(1, "second");
232
223
  let bol;
233
224
  if (isFlexible) {
234
225
  bol = startDate.isAfter(timeStartDate) && startDate.isBefore(timeEndDate);
235
226
  } else {
236
- let endDate = startDate.add(
237
- flexibleObj.getValue(cacheItem._extend.duration),
238
- "minute"
239
- );
227
+ let endDate = startDate.add(flexibleObj.getValue(cacheItem._extend.duration), "minute");
240
228
  bol = startDate.isAfter(timeStartDate) && endDate.isBefore(timeEndDate);
241
229
  }
242
230
  if (bol) {
@@ -341,9 +329,7 @@ var flexibleObj = {
341
329
  };
342
330
  var getEndDate = (startDate, duration, endDate) => {
343
331
  if (duration === "flexible") {
344
- let openingDate = (0, import_dayjs.default)(
345
- startDate.format("YYYY-MM-DD") + " " + getShopOpeningHours()
346
- );
332
+ let openingDate = (0, import_dayjs.default)(startDate.format("YYYY-MM-DD") + " " + getShopOpeningHours());
347
333
  if ((0, import_dayjs.default)(startDate).isAfter(openingDate)) {
348
334
  openingDate = openingDate.add(1, "day");
349
335
  }
@@ -358,13 +344,8 @@ var getEndDate = (startDate, duration, endDate) => {
358
344
  return startDate.add(duration, "minute");
359
345
  };
360
346
  var getServiceTimes = (service) => {
361
- const startDate = (0, import_dayjs.default)(
362
- (0, import_dayjs.default)(service._extend.start_date).format("YYYY-MM-DD ") + getServeStartTime(service._extend.start_time)
363
- );
364
- const endDate = startDate.add(
365
- flexibleObj.getValue(service._extend.duration),
366
- "minute"
367
- );
347
+ const startDate = (0, import_dayjs.default)((0, import_dayjs.default)(service._extend.start_date).format("YYYY-MM-DD ") + getServeStartTime(service._extend.start_time));
348
+ const endDate = startDate.add(flexibleObj.getValue(service._extend.duration), "minute");
368
349
  return {
369
350
  startDate,
370
351
  endDate
@@ -373,12 +354,10 @@ var getServiceTimes = (service) => {
373
354
  var getErrorList = (resource, cacheItem) => {
374
355
  var _a, _b, _c;
375
356
  if (!(cacheItem == null ? void 0 : cacheItem.id)) {
376
- return [
377
- {
378
- label: import_utils.locales.getText("pisell2.text.no-product-added"),
379
- type: "products"
380
- }
381
- ];
357
+ return [{
358
+ label: import_utils.locales.getText("pisell2.text.no-product-added"),
359
+ type: "products"
360
+ }];
382
361
  }
383
362
  if (!resource || !resource._extend || !cacheItem) {
384
363
  return [];
@@ -387,10 +366,7 @@ var getErrorList = (resource, cacheItem) => {
387
366
  if (!resource.usable) {
388
367
  if (!((_a = resource == null ? void 0 : resource._extend) == null ? void 0 : _a.usableProduct)) {
389
368
  list.push({
390
- label: import_utils.locales.getText("pisell1.text.resource-error-message-1")(
391
- resource.labelText,
392
- cacheItem == null ? void 0 : cacheItem.title
393
- ),
369
+ label: import_utils.locales.getText("pisell1.text.resource-error-message-1")(resource.labelText, cacheItem == null ? void 0 : cacheItem.title),
394
370
  type: "product"
395
371
  });
396
372
  }
@@ -402,21 +378,13 @@ var getErrorList = (resource, cacheItem) => {
402
378
  }
403
379
  if (!((_b = resource._extend) == null ? void 0 : _b.usableTime)) {
404
380
  list.push({
405
- label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(
406
- resource.labelText,
407
- startText,
408
- endText
409
- ),
381
+ label: import_utils.locales.getText("pisell1.text.resource-error-message-2")(resource.labelText, startText, endText),
410
382
  type: "time"
411
383
  });
412
384
  } else {
413
385
  if (!((_c = resource._extend) == null ? void 0 : _c.usableTime._extend.isMaxLimitRange)) {
414
386
  list.push({
415
- label: import_utils.locales.getText("pisell1.text.resource-error-message-3")(
416
- resource.labelText,
417
- startText,
418
- endText
419
- ),
387
+ label: import_utils.locales.getText("pisell1.text.resource-error-message-3")(resource.labelText, startText, endText),
420
388
  type: "limit"
421
389
  });
422
390
  }
@@ -486,14 +454,11 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
486
454
  _extend.resource = resourceId;
487
455
  }
488
456
  }
457
+ console.log("_extend", findNextSliceProps);
489
458
  if (findNextSliceProps.date && findNextSliceProps.date !== "00:00") {
490
459
  _extend.start_time = findNextSlice(findNextSliceProps);
491
460
  } else {
492
- if (cacheItem.currentDefaultTime) {
493
- _extend.start_time = cacheItem.currentDefaultTime;
494
- } else {
495
- _extend.start_time = (0, import_dayjs.default)().format("HH:mm");
496
- }
461
+ _extend.start_time = (0, import_dayjs.default)().format("HH:mm");
497
462
  }
498
463
  }
499
464
  _extend = {
package/lib/index.d.ts CHANGED
@@ -12,7 +12,6 @@ export { default as BookingStartTime } from './components/booking/materiels/star
12
12
  export { default as BookingDuration } from './components/booking/materiels/duration';
13
13
  export { default as BookingContacts } from './components/booking/materiels/contacts';
14
14
  export { VerticalClient } from './components/booking/info/clientVariant';
15
- export { default as VerticalAddService } from './components/booking/info/addServiceVariant';
16
15
  export { default as ProductExtension } from './components/productExtension';
17
16
  export { default as BookingDeposit } from './components/booking/deposit';
18
17
  export { default as RuleSetting } from './components/ruleSetting';
@@ -20,4 +19,3 @@ export { default as TaxSelect } from './components/taxSelect';
20
19
  export { default as ToCPay } from './components/pay/toC';
21
20
  export { default as Eftpos } from './components/eftpos';
22
21
  export { default as EftposPay } from './components/eftposPay';
23
- export { default as BookingDashboard } from './components/booking/dashboard';
package/lib/index.js CHANGED
@@ -32,7 +32,6 @@ __export(src_exports, {
32
32
  Booking: () => import_booking.default,
33
33
  BookingAddons: () => import_addons.default,
34
34
  BookingContacts: () => import_contacts.default,
35
- BookingDashboard: () => import_dashboard.default,
36
35
  BookingDeposit: () => import_deposit.default,
37
36
  BookingDuration: () => import_duration.default,
38
37
  BookingForms: () => import_forms.default,
@@ -49,7 +48,6 @@ __export(src_exports, {
49
48
  Schedules: () => import_schedules.default,
50
49
  TaxSelect: () => import_taxSelect.default,
51
50
  ToCPay: () => import_toC.default,
52
- VerticalAddService: () => import_addServiceVariant.default,
53
51
  VerticalClient: () => import_clientVariant.VerticalClient
54
52
  });
55
53
  module.exports = __toCommonJS(src_exports);
@@ -69,7 +67,6 @@ var import_startTime = __toESM(require("./components/booking/materiels/startTime
69
67
  var import_duration = __toESM(require("./components/booking/materiels/duration"));
70
68
  var import_contacts = __toESM(require("./components/booking/materiels/contacts"));
71
69
  var import_clientVariant = require("./components/booking/info/clientVariant");
72
- var import_addServiceVariant = __toESM(require("./components/booking/info/addServiceVariant"));
73
70
  var import_productExtension = __toESM(require("./components/productExtension"));
74
71
  var import_deposit = __toESM(require("./components/booking/deposit"));
75
72
  var import_ruleSetting = __toESM(require("./components/ruleSetting"));
@@ -77,7 +74,6 @@ var import_taxSelect = __toESM(require("./components/taxSelect"));
77
74
  var import_toC = __toESM(require("./components/pay/toC"));
78
75
  var import_eftpos = __toESM(require("./components/eftpos"));
79
76
  var import_eftposPay = __toESM(require("./components/eftposPay"));
80
- var import_dashboard = __toESM(require("./components/booking/dashboard"));
81
77
  import_dayjs.default.extend(import_weekday.default);
82
78
  import_dayjs.default.extend(import_localeData.default);
83
79
  // Annotate the CommonJS export names for ESM import in node:
@@ -85,7 +81,6 @@ import_dayjs.default.extend(import_localeData.default);
85
81
  Booking,
86
82
  BookingAddons,
87
83
  BookingContacts,
88
- BookingDashboard,
89
84
  BookingDeposit,
90
85
  BookingDuration,
91
86
  BookingForms,
@@ -102,6 +97,5 @@ import_dayjs.default.extend(import_localeData.default);
102
97
  Schedules,
103
98
  TaxSelect,
104
99
  ToCPay,
105
- VerticalAddService,
106
100
  VerticalClient
107
101
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.162-gray",
3
+ "version": "3.0.162",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/icon": "0.0.11",
63
- "@pisell/date-picker": "1.0.100",
64
62
  "@pisell/utils": "1.0.42",
65
- "@pisell/materials": "3.0.50-gray"
63
+ "@pisell/materials": "3.0.49",
64
+ "@pisell/icon": "0.0.11",
65
+ "@pisell/date-picker": "1.0.100"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- export interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivElement> {
3
- backgroundColors?: string[];
4
- labelColor?: string;
5
- valueColor?: string;
6
- otherParams?: Record<string, any>;
7
- refreshKey?: string;
8
- onDataChange?: (data: {
9
- groupsOnSiteNow: string | number;
10
- peopleOnSiteNow: string | number;
11
- totalVisitorsToday: string | number;
12
- ongoing: string | number;
13
- upcoming: string | number;
14
- overdue: string | number;
15
- completed: string | number;
16
- departed: string | number;
17
- }, dataList: string[]) => void;
18
- }
19
- declare const BookingDashboard: (props: BookingDashboardProps) => React.JSX.Element;
20
- export default BookingDashboard;