@pisell/private-materials 6.3.96 → 6.3.97

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 (185) 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/Sales/Cart/index.d.ts +53 -0
  8. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  9. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  10. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  11. package/es/components/booking/addons/index.d.ts +17 -0
  12. package/es/components/booking/addons/model.d.ts +1 -10
  13. package/es/components/booking/components/footer/amount.d.ts +25 -0
  14. package/es/components/booking/dashboard/serve.d.ts +1 -0
  15. package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
  16. package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
  17. package/es/components/booking/deposit/index.d.ts +3 -0
  18. package/es/components/booking/forms/forms.d.ts +30 -0
  19. package/es/components/booking/forms/model.d.ts +1 -10
  20. package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  21. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  22. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  23. package/es/components/booking/info/client/index.d.ts +4 -0
  24. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  25. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  26. package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  27. package/es/components/booking/info/index.d.ts +4 -0
  28. package/es/components/booking/info/main.d.ts +12 -0
  29. package/es/components/booking/info/model.d.ts +5 -0
  30. package/es/components/booking/info/service/Lists.d.ts +3 -0
  31. package/es/components/booking/info/service/addService/index.d.ts +12 -0
  32. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  33. package/es/components/booking/info/service/serve.d.ts +20 -0
  34. package/es/components/booking/info/service/serviceList/index.d.ts +6 -0
  35. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  36. package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
  37. package/es/components/booking/info/service2/Lists.d.ts +3 -0
  38. package/es/components/booking/info/service2/utils.d.ts +248 -0
  39. package/es/components/booking/info/utils.d.ts +50 -0
  40. package/es/components/booking/info2/index.d.ts +12 -0
  41. package/es/components/booking/info2/service/addService/index.d.ts +12 -0
  42. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  43. package/es/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
  44. package/es/components/booking/info2/service/index.d.ts +4 -0
  45. package/es/components/booking/info2/service/serviceList/index.d.ts +6 -0
  46. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  47. package/es/components/booking/locales.d.ts +846 -0
  48. package/es/components/booking/model.d.ts +1 -9
  49. package/es/components/booking/notes/model.d.ts +1 -10
  50. package/es/components/booking/payments/model.d.ts +1 -10
  51. package/es/components/booking/utils.d.ts +175 -0
  52. package/es/components/eftposPay/amount.d.ts +1 -1
  53. package/es/components/eftposPay/app.d.ts +11 -0
  54. package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  55. package/es/components/eftposPay/component/fail/index.d.ts +4 -0
  56. package/es/components/eftposPay/device.d.ts +24 -0
  57. package/es/components/eftposPay/index.d.ts +5 -0
  58. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  59. package/es/components/eftposPay/pay.d.ts +21 -0
  60. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  64. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  65. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +18 -7
  66. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
  67. package/es/components/pay/toC/serve.d.ts +62 -0
  68. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
  69. package/es/components/ruleSetting/locales.d.ts +48 -0
  70. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
  71. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +5 -0
  72. package/es/components/ticketBooking/index.d.ts +8 -0
  73. package/es/components/ticketBooking/serve.d.ts +287 -0
  74. package/es/components/ticketBooking/utils/index.d.ts +25 -0
  75. package/es/plus/clientCard/types.d.ts +135 -0
  76. package/es/plus/orderList/config.d.ts +2 -2
  77. package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  78. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  79. package/es/pro/Selector/Selector.d.ts +1 -1
  80. package/lib/components/Sales/Cart/index.d.ts +53 -0
  81. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  82. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  83. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  84. package/lib/components/booking/addons/index.d.ts +17 -0
  85. package/lib/components/booking/addons/model.d.ts +1 -10
  86. package/lib/components/booking/components/footer/amount.d.ts +25 -0
  87. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  88. package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
  89. package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
  90. package/lib/components/booking/deposit/index.d.ts +3 -0
  91. package/lib/components/booking/forms/forms.d.ts +30 -0
  92. package/lib/components/booking/forms/model.d.ts +1 -10
  93. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  94. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  95. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  96. package/lib/components/booking/info/client/index.d.ts +4 -0
  97. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  98. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  99. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
  100. package/lib/components/booking/info/index.d.ts +4 -0
  101. package/lib/components/booking/info/main.d.ts +12 -0
  102. package/lib/components/booking/info/model.d.ts +5 -0
  103. package/lib/components/booking/info/service/Lists.d.ts +3 -0
  104. package/lib/components/booking/info/service/addService/index.d.ts +12 -0
  105. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  106. package/lib/components/booking/info/service/serve.d.ts +20 -0
  107. package/lib/components/booking/info/service/serviceList/index.d.ts +6 -0
  108. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  109. package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
  110. package/lib/components/booking/info/service2/Lists.d.ts +3 -0
  111. package/lib/components/booking/info/service2/utils.d.ts +248 -0
  112. package/lib/components/booking/info/utils.d.ts +50 -0
  113. package/lib/components/booking/info2/index.d.ts +12 -0
  114. package/lib/components/booking/info2/service/addService/index.d.ts +12 -0
  115. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  116. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
  117. package/lib/components/booking/info2/service/index.d.ts +4 -0
  118. package/lib/components/booking/info2/service/serviceList/index.d.ts +6 -0
  119. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  120. package/lib/components/booking/locales.d.ts +846 -0
  121. package/lib/components/booking/model.d.ts +1 -9
  122. package/lib/components/booking/notes/model.d.ts +1 -10
  123. package/lib/components/booking/payments/model.d.ts +1 -10
  124. package/lib/components/booking/utils.d.ts +175 -0
  125. package/lib/components/eftposPay/amount.d.ts +1 -1
  126. package/lib/components/eftposPay/app.d.ts +11 -0
  127. package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
  128. package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
  129. package/lib/components/eftposPay/device.d.ts +24 -0
  130. package/lib/components/eftposPay/index.d.ts +5 -0
  131. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  132. package/lib/components/eftposPay/pay.d.ts +21 -0
  133. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  134. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  135. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  136. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  137. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  138. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -1
  139. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
  140. package/lib/components/pay/toC/serve.d.ts +62 -0
  141. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
  142. package/lib/components/ruleSetting/locales.d.ts +48 -0
  143. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
  144. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +5 -0
  145. package/lib/components/ticketBooking/index.d.ts +8 -0
  146. package/lib/components/ticketBooking/serve.d.ts +287 -0
  147. package/lib/components/ticketBooking/utils/index.d.ts +25 -0
  148. package/lib/plus/clientCard/types.d.ts +135 -0
  149. package/lib/plus/orderList/config.d.ts +2 -2
  150. package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  151. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  152. package/lib/pro/Selector/Selector.d.ts +1 -1
  153. package/lowcode/eco-cup-list/meta.ts +1 -1
  154. package/lowcode/eco-customer-list/meta.ts +1 -1
  155. package/package.json +1 -1
  156. package/es/components/ecocup/cupList/const.d.ts +0 -133
  157. package/es/components/ecocup/hooks.d.ts +0 -49
  158. package/es/components/ecocup/locales.d.ts +0 -339
  159. package/es/components/eftpos/index.d.ts +0 -47
  160. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
  161. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  162. package/es/components/eftposPay/payo/config.d.ts +0 -13
  163. package/es/components/eftposPay/payo/const.d.ts +0 -26
  164. package/es/components/eftposPay/tyro/const.d.ts +0 -17
  165. package/es/components/eftposPay/windcave/const.d.ts +0 -119
  166. package/es/components/eftposPay/windcave/helper.d.ts +0 -23
  167. package/es/components/pay/toC/model.d.ts +0 -40
  168. package/es/components/systemSettings/registry/services.d.ts +0 -77
  169. package/es/plus/saasAttendance/locales.d.ts +0 -381
  170. package/es/plus/saasAttendance/settings/types.d.ts +0 -134
  171. package/lib/components/ecocup/cupList/const.d.ts +0 -133
  172. package/lib/components/ecocup/hooks.d.ts +0 -49
  173. package/lib/components/ecocup/locales.d.ts +0 -339
  174. package/lib/components/eftpos/index.d.ts +0 -47
  175. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
  176. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  177. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  178. package/lib/components/eftposPay/payo/const.d.ts +0 -26
  179. package/lib/components/eftposPay/tyro/const.d.ts +0 -17
  180. package/lib/components/eftposPay/windcave/const.d.ts +0 -119
  181. package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
  182. package/lib/components/pay/toC/model.d.ts +0 -40
  183. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  184. package/lib/plus/saasAttendance/locales.d.ts +0 -381
  185. package/lib/plus/saasAttendance/settings/types.d.ts +0 -134
@@ -0,0 +1,50 @@
1
+ export declare const getIsBundleOrCombination: (productDetail: any) => boolean;
2
+ export declare const uniqueByField: (arr: any[], field: string) => any[];
3
+ export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[];
4
+ /**
5
+ * @title: 判断两个时间是否在同一个时间段内
6
+ * @description:
7
+ * @param {number} time1 开始时间
8
+ * @param {number} time2 结束时间
9
+ * @param {number} interval 时间间隔
10
+ * @return {*}
11
+ * @Author: zhiwei.Wang
12
+ * @Date: 2024-08-13 19:37
13
+ */
14
+ export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean;
15
+ /**
16
+ * @title: 根据时间间隔格式化服务列表
17
+ * @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务
18
+ * @param {any} list 服务列表
19
+ * @return {*}
20
+ * @Author: zhiwei.Wang
21
+ * @Date: 2024-08-13 19:36
22
+ */
23
+ export declare const formatServiceListByTime: (list: any[]) => any[];
24
+ export declare const isBooking4Shop: (shopId: number, renderType?: string, businessUtils?: any) => any;
25
+ declare type DataEntry = {
26
+ total: number;
27
+ origin_total: number;
28
+ num: number;
29
+ quotation_id: number;
30
+ start_date: string;
31
+ end_date: string;
32
+ };
33
+ declare type ResultStructure = Record<string, Record<string, any>>;
34
+ export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure;
35
+ /**
36
+ * @title: 是否是跨日预约
37
+ * @description:
38
+ * @param {number} shopId
39
+ * @return {*}
40
+ * @Author: WangHan
41
+ * @Date: 2024-11-29 11:19
42
+ */
43
+ export declare const isDayBooking: (shopId: number) => boolean;
44
+ export declare const isOpenAddTime: (state: any) => boolean;
45
+ export declare const isShowAddTime: (state: any, currentService: any) => boolean;
46
+ export declare const editSessionProduct: (cacheItem: any, session: any) => {
47
+ duration: any;
48
+ start_time: any;
49
+ } | undefined;
50
+ export {};
@@ -0,0 +1,12 @@
1
+ import '../info/index.less';
2
+ export interface InfoProps {
3
+ style: any;
4
+ globalState: any;
5
+ callback: any;
6
+ setGlobalState: any;
7
+ modules: any;
8
+ slot: any;
9
+ setState: any;
10
+ }
11
+ declare const Info: any;
12
+ export default Info;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { PisellDrawerProps } from '../../../components/drawer';
3
+ import '../../../info/service/addService/index.less';
4
+ interface AddServiceProps {
5
+ onEdit: any;
6
+ dispatch?: any;
7
+ state?: any;
8
+ drawerProps?: PisellDrawerProps;
9
+ renderMode?: 'current' | 'drawer';
10
+ }
11
+ declare const Info: (props: AddServiceProps) => React.JSX.Element;
12
+ export default Info;
@@ -0,0 +1,98 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const getUsableTime: (cacheItem: any) => any;
3
+ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
+ startDate: dayjs.Dayjs;
5
+ usableTime: any;
6
+ duration: string | number | {
7
+ type: string;
8
+ value: number;
9
+ };
10
+ locale: any;
11
+ slice: any;
12
+ selectProps: {
13
+ size: string;
14
+ };
15
+ };
16
+ /**
17
+ * @title: 灵活时长选项
18
+ * @description:
19
+ * @param {*} useMemo
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-02-23 10:10
23
+ */
24
+ export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
+ label: any;
26
+ value: any;
27
+ } | null;
28
+ export declare const getTimeSlices: ({ state }: any) => {
29
+ timeSlices: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ };
34
+ /**
35
+ * @title: 时间切片
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: zhiwei.Wang
39
+ * @Date: 2024-01-09 13:37
40
+ */
41
+ export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
+ timeSlices: {
43
+ label: string;
44
+ value: string;
45
+ }[];
46
+ durationSlicesBasedOnTime: {
47
+ label: string;
48
+ value: number;
49
+ }[];
50
+ };
51
+ /**
52
+ * @title: 获取资源列表
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: zhiwei.Wang
56
+ * @Date: 2024-01-09 13:38
57
+ */
58
+ export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
59
+ list: any;
60
+ maps: any;
61
+ };
62
+ export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
+ /**
64
+ * @title: 设置默认容量
65
+ * @description:
66
+ * @param {any} param1
67
+ * @return {*}
68
+ * @Author: zhiwei.Wang
69
+ * @Date: 2024-09-19 20:26
70
+ */
71
+ export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
+ /**
73
+ * @title: 将商品内关联的资源id还原成数据
74
+ * @description:
75
+ * @param {any} resourcesOriginMap
76
+ * @param {any} cacheItem
77
+ * @return {*}
78
+ * @Author: zhiwei.Wang
79
+ * @Date: 2024-09-19 20:23
80
+ */
81
+ export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
+ /**
83
+ * @title: 预生成服务的 extend
84
+ * @description:
85
+ * @param {any} param1
86
+ * @return {*}
87
+ * @Author: zhiwei.Wang
88
+ * @Date: 2024-06-01 13:25
89
+ */
90
+ export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
91
+ /**
92
+ * @title: 格式化服务列表
93
+ * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
94
+ * 使用with resourceRelation后 返回的resource_relation是实时数据
95
+ * 这里做一次转换
96
+ * @param list
97
+ */
98
+ export declare const transServiceList: (list: any[]) => any[];
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import '../../../info/service/addTimeModal/index.less';
3
+ declare const AddTimeModal: () => React.JSX.Element;
4
+ export default AddTimeModal;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import '../../info/service/index.less';
3
+ declare const _default: React.MemoExoticComponent<() => React.JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const ServiceList: ({ onEdit }: {
4
+ onEdit: any;
5
+ }) => React.JSX.Element;
6
+ export default ServiceList;
@@ -0,0 +1,35 @@
1
+ export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
2
+ export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
3
+ /**
4
+ * @title: 查找是否有可用的time
5
+ * @description:
6
+ * @param {any} resourceItem
7
+ * @return {*}
8
+ * @Author: zhiwei.Wang
9
+ * @Date: 2024-01-09 13:57
10
+ */
11
+ export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
12
+ export declare const getErrorList: (resource: any, cacheItem: any) => {
13
+ label: any;
14
+ type: string;
15
+ }[];
16
+ /**
17
+ * @title: 格式化资源, 添加自定义参数
18
+ * @description:
19
+ * @param {any} resourceItem
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-01-09 13:40
23
+ */
24
+ export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
25
+ export declare const getAppointmentTimingPreference: (state: any) => any;
26
+ /**
27
+ * @title: 创建服务的开始时间和结束时间
28
+ * @description:
29
+ * @param {any} state
30
+ * @param {any} item
31
+ * @return {*}
32
+ * @Author: zhiwei.Wang
33
+ * @Date: 2024-01-26 14:09
34
+ */
35
+ export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;