@pisell/private-materials 3.0.211 → 3.0.213

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 (101) 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 +8 -8
  11. package/es/components/Sales/Cart/index.js +3 -1
  12. package/es/components/Sales/Checkout/index.js +6 -0
  13. package/es/components/Sales/Event/Detail.js +1 -1
  14. package/es/components/Sales/Init/index.d.ts +4 -0
  15. package/es/components/Sales/Init/index.js +6 -2
  16. package/es/components/Sales/Resource/serve.d.ts +1 -0
  17. package/es/components/Sales/Summary/index.d.ts +3 -0
  18. package/es/components/Sales/Summary/index.js +9 -3
  19. package/es/components/Sales/Summary/serve.d.ts +0 -2
  20. package/es/components/Sales/Summary/serve.js +0 -11
  21. package/es/components/Sales/Summary/utils.d.ts +15 -1
  22. package/es/components/Sales/Summary/utils.js +32 -3
  23. package/es/components/eftposPay/hooks.d.ts +2 -2
  24. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +6 -2
  25. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
  26. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +46 -0
  27. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -8
  28. package/es/components/eventBooking/components/Provider/Cart/Item/index.less +42 -10
  29. package/es/components/eventBooking/components/Provider/Cart/index.js +1 -5
  30. package/es/components/eventBooking/components/Provider/Cart/index.less +0 -2
  31. package/es/components/eventBooking/components/Provider/Content/index.js +24 -0
  32. package/es/components/eventBooking/components/Provider/Content/index.less +3 -2
  33. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +1 -2
  34. package/es/components/eventBooking/components/Provider/Event/index.less +1 -1
  35. package/es/components/eventBooking/components/Provider/Footer/index.js +18 -11
  36. package/es/components/eventBooking/components/Provider/Footer/index.less +29 -5
  37. package/es/components/eventBooking/components/Provider/Header/index.js +4 -2
  38. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +1 -1
  39. package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -1
  40. package/es/components/eventBooking/components/Provider/Resource/index.js +4 -21
  41. package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  42. package/es/components/eventBooking/components/Provider/SelectProduct/index.js +77 -0
  43. package/es/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
  44. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +1 -0
  45. package/es/components/eventBooking/components/bookingDetailModal/index.js +142 -41
  46. package/es/components/eventBooking/components/bookingDetailModal/index.less +2 -2
  47. package/es/components/eventBooking/components/resourceDisplay/index.less +14 -0
  48. package/es/components/eventBooking/components/selectHolder/index.js +2 -6
  49. package/es/components/eventBooking/index.js +2 -1
  50. package/es/components/eventBooking/index.less +2 -0
  51. package/es/components/eventBooking/locales.d.ts +6 -3
  52. package/es/components/eventBooking/locales.js +22 -7
  53. package/es/components/eventBooking/utils.d.ts +9 -0
  54. package/es/components/eventBooking/utils.js +17 -0
  55. package/es/components/tabProduct/tabs/index.less +13 -3
  56. package/lib/components/Sales/Cart/index.js +6 -4
  57. package/lib/components/Sales/Checkout/index.js +3 -0
  58. package/lib/components/Sales/Event/Detail.js +1 -1
  59. package/lib/components/Sales/Init/index.d.ts +4 -0
  60. package/lib/components/Sales/Init/index.js +5 -2
  61. package/lib/components/Sales/Resource/serve.d.ts +1 -0
  62. package/lib/components/Sales/Summary/index.d.ts +3 -0
  63. package/lib/components/Sales/Summary/index.js +11 -3
  64. package/lib/components/Sales/Summary/serve.d.ts +0 -2
  65. package/lib/components/Sales/Summary/serve.js +0 -37
  66. package/lib/components/Sales/Summary/utils.d.ts +15 -1
  67. package/lib/components/Sales/Summary/utils.js +25 -5
  68. package/lib/components/eftposPay/hooks.d.ts +2 -2
  69. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +5 -0
  70. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +4 -0
  71. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +82 -0
  72. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -9
  73. package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +42 -10
  74. package/lib/components/eventBooking/components/Provider/Cart/index.js +1 -5
  75. package/lib/components/eventBooking/components/Provider/Cart/index.less +0 -2
  76. package/lib/components/eventBooking/components/Provider/Content/index.js +16 -0
  77. package/lib/components/eventBooking/components/Provider/Content/index.less +3 -2
  78. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +1 -2
  79. package/lib/components/eventBooking/components/Provider/Event/index.less +1 -1
  80. package/lib/components/eventBooking/components/Provider/Footer/index.js +14 -12
  81. package/lib/components/eventBooking/components/Provider/Footer/index.less +29 -5
  82. package/lib/components/eventBooking/components/Provider/Header/index.js +5 -2
  83. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +1 -1
  84. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +0 -1
  85. package/lib/components/eventBooking/components/Provider/Resource/index.js +4 -12
  86. package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +4 -0
  87. package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +69 -0
  88. package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +131 -0
  89. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +1 -0
  90. package/lib/components/eventBooking/components/bookingDetailModal/index.js +101 -22
  91. package/lib/components/eventBooking/components/bookingDetailModal/index.less +2 -2
  92. package/lib/components/eventBooking/components/resourceDisplay/index.less +14 -0
  93. package/lib/components/eventBooking/components/selectHolder/index.js +1 -1
  94. package/lib/components/eventBooking/index.js +2 -1
  95. package/lib/components/eventBooking/index.less +2 -0
  96. package/lib/components/eventBooking/locales.d.ts +6 -3
  97. package/lib/components/eventBooking/locales.js +10 -7
  98. package/lib/components/eventBooking/utils.d.ts +9 -0
  99. package/lib/components/eventBooking/utils.js +12 -2
  100. package/lib/components/tabProduct/tabs/index.less +13 -3
  101. package/package.json +2 -2
@@ -52,6 +52,8 @@ var BookingDetailModal = (props) => {
52
52
  const [activeTab, setActiveTab] = (0, import_react.useState)("introduction");
53
53
  const [isScrolling, setIsScrolling] = (0, import_react.useState)(false);
54
54
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
55
+ const isUserClickRef = (0, import_react.useRef)(false);
56
+ const scrollTimeoutRef = (0, import_react.useRef)(null);
55
57
  const anchorOptions = (0, import_react.useMemo)(
56
58
  () => [
57
59
  {
@@ -100,34 +102,104 @@ var BookingDetailModal = (props) => {
100
102
  if (!modalContentRef.current || !open)
101
103
  return;
102
104
  const handleScroll = () => {
103
- var _a2;
104
- if (isScrolling)
105
+ if (isScrolling || isUserClickRef.current)
105
106
  return;
106
107
  const container2 = modalContentRef.current;
107
108
  if (!container2)
108
109
  return;
109
- const scrollTop = container2.scrollTop;
110
- const headerHeight = 58;
111
- for (const option of anchorOptions) {
112
- const element = document.getElementById(option.id);
113
- if (element) {
110
+ if (scrollTimeoutRef.current) {
111
+ clearTimeout(scrollTimeoutRef.current);
112
+ }
113
+ scrollTimeoutRef.current = setTimeout(() => {
114
+ const scrollTop = container2.scrollTop;
115
+ const headerHeight = 58;
116
+ const containerHeight = container2.clientHeight;
117
+ const scrollHeight = container2.scrollHeight;
118
+ const viewportMiddle = headerHeight + (containerHeight - headerHeight) / 2;
119
+ const sectionPositions = anchorOptions.map((option) => {
120
+ const element = document.getElementById(option.id);
121
+ if (!element)
122
+ return null;
114
123
  const rect = element.getBoundingClientRect();
115
- const elementTop = rect.top;
116
- if (Math.abs(elementTop - headerHeight) < 50) {
117
- if (activeTab !== option.id) {
118
- setActiveTab(option.id);
119
- (_a2 = tabsRef == null ? void 0 : tabsRef.current) == null ? void 0 : _a2.scroll(option.id);
124
+ return {
125
+ id: option.id,
126
+ top: rect.top,
127
+ bottom: rect.bottom,
128
+ height: rect.height,
129
+ // 添加可见度计算
130
+ visibleTop: Math.max(rect.top, headerHeight),
131
+ visibleBottom: Math.min(rect.bottom, containerHeight),
132
+ // 计算元素中点到视口中点的距离
133
+ distanceToCenter: Math.abs((rect.top + rect.bottom) / 2 - viewportMiddle)
134
+ };
135
+ }).filter((section) => section !== null);
136
+ const isAtBottom = Math.abs(scrollTop + containerHeight - scrollHeight) <= 2;
137
+ if (isAtBottom) {
138
+ const lastOption = anchorOptions[anchorOptions.length - 1];
139
+ if (activeTab !== lastOption.id) {
140
+ setActiveTab(lastOption.id);
141
+ }
142
+ return;
143
+ }
144
+ let bestSection = null;
145
+ const sectionsWithPriority = sectionPositions.map((section) => {
146
+ const visibleHeight = section.visibleBottom - section.visibleTop;
147
+ const visibilityRatio = visibleHeight / section.height;
148
+ const topDistance = Math.abs(section.top - headerHeight);
149
+ const priority = (
150
+ // 基础可见度权重
151
+ visibilityRatio * 0.6 + // 小内容区域补偿
152
+ (section.height < 200 ? 0.3 : 0) + // 距离权重(反比,越近权重越大)
153
+ 0.4 * (1 - Math.min(topDistance / containerHeight, 1))
154
+ );
155
+ return {
156
+ ...section,
157
+ visibilityRatio,
158
+ topDistance,
159
+ priority
160
+ };
161
+ });
162
+ sectionsWithPriority.sort((a, b) => {
163
+ if (a.visibilityRatio > 0.1 && b.visibilityRatio > 0.1) {
164
+ if (Math.abs(a.topDistance - b.topDistance) < 50) {
165
+ return b.priority - a.priority;
120
166
  }
121
- break;
167
+ return a.topDistance - b.topDistance;
168
+ }
169
+ return b.priority - a.priority;
170
+ });
171
+ bestSection = sectionsWithPriority[0];
172
+ if (bestSection && activeTab !== bestSection.id) {
173
+ const currentSection = sectionPositions.find((s) => s.id === activeTab);
174
+ if (!currentSection || bestSection.priority > (currentSection.priority || 0) + 0.2 || bestSection.visibilityRatio > 0.3 && bestSection.topDistance < currentSection.topDistance) {
175
+ setActiveTab(bestSection.id);
122
176
  }
123
177
  }
124
- }
178
+ }, 200);
125
179
  };
126
180
  const container = modalContentRef.current;
127
181
  container.addEventListener("scroll", handleScroll);
128
- setTimeout(handleScroll, 100);
129
- return () => container.removeEventListener("scroll", handleScroll);
182
+ return () => {
183
+ container.removeEventListener("scroll", handleScroll);
184
+ if (scrollTimeoutRef.current) {
185
+ clearTimeout(scrollTimeoutRef.current);
186
+ }
187
+ };
130
188
  }, [anchorOptions, activeTab, open, isScrolling]);
189
+ const handleTabChange = (key) => {
190
+ if (isUserClickRef.current) {
191
+ setActiveTab(key);
192
+ setIsScrolling(true);
193
+ setTimeout(() => {
194
+ setIsScrolling(false);
195
+ isUserClickRef.current = false;
196
+ }, 1200);
197
+ } else {
198
+ if (!isScrolling && !isUserClickRef.current) {
199
+ setActiveTab(key);
200
+ }
201
+ }
202
+ };
131
203
  const content = () => {
132
204
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-detail-modal-content", ref: modalContentRef }, /* @__PURE__ */ import_react.default.createElement("div", { className: "anchor-wrapper" }, /* @__PURE__ */ import_react.default.createElement(
133
205
  import_materials.PisellAnchor,
@@ -135,9 +207,10 @@ var BookingDetailModal = (props) => {
135
207
  ref: tabsRef,
136
208
  options: anchorOptions,
137
209
  tab: activeTab,
138
- onChange: (key) => {
139
- scrollToElement(key);
140
- setActiveTab(key);
210
+ containerRef: modalContentRef,
211
+ onChange: handleTabChange,
212
+ onTabClick: () => {
213
+ isUserClickRef.current = true;
141
214
  }
142
215
  }
143
216
  )), /* @__PURE__ */ import_react.default.createElement("div", { className: "content-wrapper" }, /* @__PURE__ */ import_react.default.createElement("div", { id: "introduction", className: "content-section" }, (images == null ? void 0 : images.length) > 0 ? /* @__PURE__ */ import_react.default.createElement(
@@ -162,17 +235,23 @@ var BookingDetailModal = (props) => {
162
235
  }
163
236
  addToCart();
164
237
  };
238
+ (0, import_react.useEffect)(() => {
239
+ if (open) {
240
+ setActiveTab("introduction");
241
+ setIsScrolling(false);
242
+ isUserClickRef.current = false;
243
+ }
244
+ }, [open]);
165
245
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
166
246
  import_materials.PisellModal,
167
247
  {
168
248
  open,
169
249
  title: import_utils.locales.getText("pisell2.event.details"),
170
250
  platform: (0, import_utils.isMobile)() ? "h5" : "pc",
171
- bodyStyle: { padding: 0, overflow: "hidden" },
251
+ bodyStyle: { padding: 0 },
172
252
  destroyOnClose: true,
173
- mobileModalHeight: "80vh",
174
253
  className: "booking-detail-modal",
175
- onCancel: () => onCloseEventDetail(),
254
+ onCancel: onCloseEventDetail,
176
255
  okText: import_utils.locales.getText("pisell2.event.add.to.cart"),
177
256
  cancelVisible: false,
178
257
  onOk: handleOk,
@@ -2,7 +2,7 @@
2
2
  .booking-detail-modal-content {
3
3
  display: flex;
4
4
  flex-direction: column;
5
- height: calc(80vh - 140px);
5
+ height: 100%;
6
6
  overflow-y: auto;
7
7
  overflow-x: hidden;
8
8
  scroll-behavior: smooth;
@@ -12,7 +12,7 @@
12
12
  top: 0;
13
13
  z-index: 10;
14
14
  background: #fff;
15
- padding: 0 !important;
15
+ padding: 0 16px !important;
16
16
  // padding: 16px;
17
17
  }
18
18
 
@@ -78,4 +78,18 @@
78
78
  line-height: 10px;
79
79
  }
80
80
  }
81
+
82
+ &-empty-avatar {
83
+ .pisell-lowcode-avatar-string {
84
+ position: relative;
85
+ left: 0;
86
+ height: 32px;
87
+ line-height: 32px;
88
+ transform: scale(1) !important;
89
+ .pisell-lowcode-image {
90
+ width: 32px;
91
+ height: 32px;
92
+ }
93
+ }
94
+ }
81
95
  }
@@ -81,7 +81,7 @@ var PisellSelectHolder = ({
81
81
  onOk && onOk(e);
82
82
  },
83
83
  bodyStyle: { padding: (0, import_utils.isMobile)() ? "0 16px 16px" : 20 },
84
- mobileModalHeight: "90%",
84
+ mobileModalHeight: "auto",
85
85
  destroyOnClose: true,
86
86
  className: `select-holder-modal ${(0, import_utils.isMobile)() ? "select-holder-modal-mobile" : ""}`,
87
87
  headerDivider: false
@@ -59,7 +59,8 @@ var Content = () => {
59
59
  return;
60
60
  getResourceList.run({
61
61
  form_id,
62
- shop_id
62
+ shop_id,
63
+ form_data_status: "active"
63
64
  });
64
65
  }, [form_id]);
65
66
  return getResourceList.data ? /* @__PURE__ */ import_react.default.createElement(
@@ -14,6 +14,8 @@
14
14
  }
15
15
 
16
16
  .event-booking-mobile-wrap {
17
+ background: #ffffff;
18
+ min-height: 100vh;
17
19
  .pisell-section-headers-content {
18
20
  width: 100%;
19
21
  }
@@ -13,11 +13,12 @@ declare const _default: {
13
13
  'pisell2.event.close.continue': string;
14
14
  'pisell2.event.close.exit': string;
15
15
  'pisell2.event.step': (step: number) => string;
16
- 'pisell2.event.select.category': string;
16
+ 'pisell2.event.select.category': (val: string) => string;
17
17
  'pisell2.event.select.campus': (val: string) => string;
18
18
  'pisell2.event.select.event': string;
19
19
  'pisell2.event.cart': string;
20
20
  'pisell2.event.total': string;
21
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
21
22
  'pisell2.event.continue': string;
22
23
  'pisell2.event.details': string;
23
24
  'pisell2.event.introduction': string;
@@ -83,11 +84,12 @@ declare const _default: {
83
84
  'pisell2.event.close.continue': string;
84
85
  'pisell2.event.close.exit': string;
85
86
  'pisell2.event.step': (step: number) => string;
86
- 'pisell2.event.select.category': string;
87
+ 'pisell2.event.select.category': (val: string) => string;
87
88
  'pisell2.event.select.event': string;
88
89
  'pisell2.event.select.campus': (val: string) => string;
89
90
  'pisell2.event.cart': string;
90
91
  'pisell2.event.total': string;
92
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
91
93
  'pisell2.event.continue': string;
92
94
  'pisell2.event.details': string;
93
95
  'pisell2.event.introduction': string;
@@ -153,11 +155,12 @@ declare const _default: {
153
155
  'pisell2.event.close.continue': string;
154
156
  'pisell2.event.close.exit': string;
155
157
  'pisell2.event.step': (step: number) => string;
156
- 'pisell2.event.select.category': string;
158
+ 'pisell2.event.select.category': (val: string) => string;
157
159
  'pisell2.event.select.event': string;
158
160
  'pisell2.event.select.campus': (val: string) => string;
159
161
  'pisell2.event.cart': string;
160
162
  'pisell2.event.total': string;
163
+ 'pisell2.event.total.gst': (val: string, amount: any) => string;
161
164
  'pisell2.event.continue': string;
162
165
  'pisell2.event.details': string;
163
166
  'pisell2.event.introduction': string;
@@ -37,11 +37,12 @@ var locales_default = {
37
37
  "pisell2.event.close.continue": "Continue",
38
38
  "pisell2.event.close.exit": "Exit",
39
39
  "pisell2.event.step": (step) => `Step ${step}`,
40
- "pisell2.event.select.category": "Select category",
41
- "pisell2.event.select.campus": (val) => `Please choose ${val || "resource"}`,
42
- "pisell2.event.select.event": "Select event",
40
+ "pisell2.event.select.category": (val) => `Select ${val || "resource"}`,
41
+ "pisell2.event.select.campus": (val) => `Please select ${val || "resource"}`,
42
+ "pisell2.event.select.event": "Select service",
43
43
  "pisell2.event.cart": "Cart",
44
44
  "pisell2.event.total": "Total",
45
+ "pisell2.event.total.gst": (val, amount) => `Including ${val} ${amount}`,
45
46
  "pisell2.event.continue": "Continue",
46
47
  "pisell2.event.details": "Details",
47
48
  "pisell2.event.introduction": "Introduction",
@@ -107,11 +108,12 @@ var locales_default = {
107
108
  "pisell2.event.close.continue": "继续",
108
109
  "pisell2.event.close.exit": "退出",
109
110
  "pisell2.event.step": (step) => `步骤 ${step}`,
110
- "pisell2.event.select.category": "选择分类",
111
- "pisell2.event.select.event": "选择活动",
111
+ "pisell2.event.select.category": (val) => `选择${val || "资源"}`,
112
+ "pisell2.event.select.event": "选择服务",
112
113
  "pisell2.event.select.campus": (val) => `请选择${val || "资源"}`,
113
114
  "pisell2.event.cart": "购物车",
114
115
  "pisell2.event.total": "总计",
116
+ "pisell2.event.total.gst": (val, amount) => `包含${val} ${amount}`,
115
117
  "pisell2.event.continue": "继续",
116
118
  "pisell2.event.details": "详情",
117
119
  "pisell2.event.introduction": "介绍",
@@ -177,11 +179,12 @@ var locales_default = {
177
179
  "pisell2.event.close.continue": "繼續",
178
180
  "pisell2.event.close.exit": "退出",
179
181
  "pisell2.event.step": (step) => `步驟 ${step}`,
180
- "pisell2.event.select.category": "選擇分類",
181
- "pisell2.event.select.event": "選擇活動",
182
+ "pisell2.event.select.category": (val) => `選擇${val || "資源"}`,
183
+ "pisell2.event.select.event": "選擇服務",
182
184
  "pisell2.event.select.campus": (val) => `請選擇${val || "資源"}`,
183
185
  "pisell2.event.cart": "購物車",
184
186
  "pisell2.event.total": "總計",
187
+ "pisell2.event.total.gst": (val, amount) => `包含${val} ${amount}`,
185
188
  "pisell2.event.continue": "繼續",
186
189
  "pisell2.event.details": "詳情",
187
190
  "pisell2.event.introduction": "介紹",
@@ -34,3 +34,12 @@ export declare const getScheduleColors: (schedules: any[]) => string;
34
34
  * @Date: 2025-01-12 11:55
35
35
  */
36
36
  export declare const formatMonthDisplay: (dateString: string) => string;
37
+ /**
38
+ * @title: 资源名称
39
+ * @description:
40
+ * @param {any} data
41
+ * @return {*}
42
+ * @Author: WangHan
43
+ * @Date: 2025-02-11 13:39
44
+ */
45
+ export declare const resourceTitle: (data: any) => any;
@@ -32,7 +32,8 @@ __export(utils_exports, {
32
32
  formatBackgroundColors: () => formatBackgroundColors,
33
33
  formatMonthDisplay: () => formatMonthDisplay,
34
34
  getScheduleColors: () => getScheduleColors,
35
- getUsableSchedules: () => getUsableSchedules
35
+ getUsableSchedules: () => getUsableSchedules,
36
+ resourceTitle: () => resourceTitle
36
37
  });
37
38
  module.exports = __toCommonJS(utils_exports);
38
39
  var import_dayjs = __toESM(require("dayjs"));
@@ -71,10 +72,19 @@ var formatMonthDisplay = (dateString) => {
71
72
  const date = /* @__PURE__ */ new Date(dateString + "-01");
72
73
  return date.toLocaleString(locale, { month: "long", year: "numeric" });
73
74
  };
75
+ var resourceTitle = (data) => {
76
+ var _a, _b, _c, _d, _e, _f, _g;
77
+ const context = (0, import_useEngineContext.default)();
78
+ const form = (_c = (_b = (_a = data == null ? void 0 : data.initData) == null ? void 0 : _a.boardSetting) == null ? void 0 : _b.event_v2_form) == null ? void 0 : _c.form;
79
+ const title = ((_d = form == null ? void 0 : form.setting) == null ? void 0 : _d.title) || (form == null ? void 0 : form.title);
80
+ const translation = (_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.translation;
81
+ return (_g = translation(title)) == null ? void 0 : _g.toLowerCase();
82
+ };
74
83
  // Annotate the CommonJS export names for ESM import in node:
75
84
  0 && (module.exports = {
76
85
  formatBackgroundColors,
77
86
  formatMonthDisplay,
78
87
  getScheduleColors,
79
- getUsableSchedules
88
+ getUsableSchedules,
89
+ resourceTitle
80
90
  });
@@ -108,9 +108,19 @@
108
108
  white-space: nowrap;
109
109
  }
110
110
 
111
- &:hover {
112
- .pisell-tabs-tab-content {
113
- background-color: #f1f1f1;
111
+ @media (min-width: 769px) {
112
+ &:hover {
113
+ .pisell-tabs-tab-content {
114
+ background-color: #f1f1f1;
115
+ }
116
+ }
117
+ }
118
+
119
+ @media (max-width: 768px) {
120
+ &:hover {
121
+ .pisell-tabs-tab-content {
122
+ background-color: transparent;
123
+ }
114
124
  }
115
125
  }
116
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.211",
3
+ "version": "3.0.213",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,7 +60,7 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "1.0.42",
63
- "@pisell/materials": "3.0.64",
63
+ "@pisell/materials": "3.0.66",
64
64
  "@pisell/icon": "0.0.11",
65
65
  "@pisell/date-picker": "3.0.2"
66
66
  },