@pisell/private-materials 6.2.12 → 6.2.14

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 (89) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/eventBooking/index.js +14 -0
  10. package/es/components/eventBooking/index.less +1 -1
  11. package/lib/components/eventBooking/index.js +11 -0
  12. package/lib/components/eventBooking/index.less +1 -1
  13. package/package.json +3 -3
  14. package/es/components/Sales/Checkout/utils.d.ts +0 -40
  15. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  16. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -3
  17. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  18. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  19. package/es/components/appointmentBooking/hooks.d.ts +0 -106
  20. package/es/components/appointmentBooking/index.d.ts +0 -3
  21. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  22. package/es/components/booking/components/voucher/index.d.ts +0 -3
  23. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  24. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  25. package/es/components/booking/info/index.d.ts +0 -3
  26. package/es/components/booking/info/utils.d.ts +0 -50
  27. package/es/components/booking/info2/index.d.ts +0 -12
  28. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  29. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  30. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  31. package/es/components/booking/locales.d.ts +0 -828
  32. package/es/components/booking/model.d.ts +0 -108
  33. package/es/components/eftposPay/const.d.ts +0 -184
  34. package/es/components/eftposPay/hooks.d.ts +0 -35
  35. package/es/components/eftposPay/index.d.ts +0 -4
  36. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  37. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  38. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  39. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  40. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  41. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  42. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  43. package/es/components/eftposPay/pay.d.ts +0 -20
  44. package/es/components/eftposPay/store/index.d.ts +0 -355
  45. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  46. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
  47. package/es/components/productSelect/index.d.ts +0 -26
  48. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  49. package/es/components/ticketBooking/index.d.ts +0 -7
  50. package/es/components/walletList/index.d.ts +0 -28
  51. package/es/utils/index.d.ts +0 -23
  52. package/lib/components/Sales/Checkout/utils.d.ts +0 -40
  53. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  54. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -3
  55. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  56. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -4
  57. package/lib/components/appointmentBooking/hooks.d.ts +0 -106
  58. package/lib/components/appointmentBooking/index.d.ts +0 -3
  59. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  60. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  61. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  62. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  63. package/lib/components/booking/info/index.d.ts +0 -3
  64. package/lib/components/booking/info/utils.d.ts +0 -50
  65. package/lib/components/booking/info2/index.d.ts +0 -12
  66. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  67. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  68. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  69. package/lib/components/booking/locales.d.ts +0 -828
  70. package/lib/components/booking/model.d.ts +0 -108
  71. package/lib/components/eftposPay/const.d.ts +0 -184
  72. package/lib/components/eftposPay/hooks.d.ts +0 -35
  73. package/lib/components/eftposPay/index.d.ts +0 -4
  74. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  75. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  76. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  77. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  78. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  79. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  80. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  81. package/lib/components/eftposPay/pay.d.ts +0 -20
  82. package/lib/components/eftposPay/store/index.d.ts +0 -355
  83. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  84. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
  85. package/lib/components/productSelect/index.d.ts +0 -26
  86. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  87. package/lib/components/ticketBooking/index.d.ts +0 -7
  88. package/lib/components/walletList/index.d.ts +0 -28
  89. package/lib/utils/index.d.ts +0 -23
@@ -1,8 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- modal: any;
4
- onReload: () => Promise<any>;
5
- onCancel: () => void;
6
- }
7
- declare const ReloadResourceModal: ({ modal, onReload, onCancel }: IProps) => JSX.Element;
8
- export default ReloadResourceModal;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const VoucherCard: (props: any) => JSX.Element | null;
3
- export default VoucherCard;
@@ -1 +0,0 @@
1
- export declare const useIsBooking4Shop: (state: any) => any;
@@ -1,6 +0,0 @@
1
- interface AddServiceVariantProps {
2
- globalState: any;
3
- setGlobalState: any;
4
- }
5
- declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
6
- export default AddServiceVariant;
@@ -1,3 +0,0 @@
1
- import { InfoProps } from './main';
2
- declare const APP: (props: InfoProps) => JSX.Element;
3
- export default APP;
@@ -1,50 +0,0 @@
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 {};
@@ -1,12 +0,0 @@
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;
@@ -1,11 +0,0 @@
1
- import { PisellDrawerProps } from '../../../components/drawer';
2
- import '../../../info/service/addService/index.less';
3
- interface AddServiceProps {
4
- onEdit: any;
5
- dispatch?: any;
6
- state?: any;
7
- drawerProps?: PisellDrawerProps;
8
- renderMode?: 'current' | 'drawer';
9
- }
10
- declare const Info: (props: AddServiceProps) => JSX.Element;
11
- export default Info;
@@ -1,98 +0,0 @@
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[];
@@ -1,3 +0,0 @@
1
- import '../../../info/service/addTimeModal/index.less';
2
- declare const AddTimeModal: () => JSX.Element;
3
- export default AddTimeModal;