@pisell/private-materials 6.11.41 → 6.11.43

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 (103) 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/Cart/Item/index.d.ts +1 -0
  8. package/es/components/booking/components/footer/index.js +9 -3
  9. package/es/components/booking/components/voucher/index.d.ts +1 -0
  10. package/es/components/booking/deposit/index.d.ts +1 -0
  11. package/es/components/booking/info/index.d.ts +1 -0
  12. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  13. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  14. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  15. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  16. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  17. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -0
  18. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  19. package/lib/components/booking/components/footer/index.js +20 -12
  20. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  21. package/lib/components/booking/deposit/index.d.ts +1 -0
  22. package/lib/components/booking/info/index.d.ts +1 -0
  23. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  24. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  25. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  26. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  27. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  28. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +9 -0
  29. package/package.json +3 -3
  30. package/es/components/booking/components/footer/amount.d.ts +0 -38
  31. package/es/components/booking/components/footer/utils.d.ts +0 -67
  32. package/es/components/booking/hooks/usePromotion.d.ts +0 -301
  33. package/es/components/booking/hooks/useQuotation.d.ts +0 -5
  34. package/es/components/booking/info/pet/index.d.ts +0 -14
  35. package/es/components/booking/info/service/Lists.d.ts +0 -2
  36. package/es/components/booking/info/service2/utils.d.ts +0 -226
  37. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
  38. package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  39. package/es/components/booking/info2/service/editService/index.d.ts +0 -8
  40. package/es/components/booking/utils/confirmHolderModal.d.ts +0 -13
  41. package/es/components/checkout/components/AmountSummary/index.d.ts +0 -26
  42. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  43. package/es/components/eftposPay/huifu/const.d.ts +0 -5
  44. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  45. package/es/components/eftposPay/payo/config.d.ts +0 -13
  46. package/es/components/eftposPay/payo/const.d.ts +0 -26
  47. package/es/components/eftposPay/tyro/const.d.ts +0 -17
  48. package/es/components/eftposPay/windcave/const.d.ts +0 -119
  49. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
  50. package/es/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -20
  51. package/es/components/shoppingCart/server.d.ts +0 -11
  52. package/es/components/shoppingCart/type.d.ts +0 -57
  53. package/es/components/shoppingCart/utils.d.ts +0 -163
  54. package/es/components/ticketBooking/dialog.d.ts +0 -17
  55. package/es/components/ticketBooking/locales.d.ts +0 -340
  56. package/es/components/ticketBooking/serve.d.ts +0 -289
  57. package/es/components/ticketBooking/utils/edit.d.ts +0 -1
  58. package/es/components/ticketBooking/utils/index.d.ts +0 -103
  59. package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
  60. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -14
  61. package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -185
  62. package/es/plus/pisellSalesManagement/config/order.d.ts +0 -172
  63. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
  64. package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
  65. package/es/pro/skuDetailModal/index.d.ts +0 -5
  66. package/es/pro/skuDetailModal/types.d.ts +0 -388
  67. package/lib/components/booking/components/footer/amount.d.ts +0 -38
  68. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  69. package/lib/components/booking/hooks/usePromotion.d.ts +0 -301
  70. package/lib/components/booking/hooks/useQuotation.d.ts +0 -5
  71. package/lib/components/booking/info/pet/index.d.ts +0 -14
  72. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  73. package/lib/components/booking/info/service2/utils.d.ts +0 -226
  74. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
  75. package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  76. package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
  77. package/lib/components/booking/utils/confirmHolderModal.d.ts +0 -13
  78. package/lib/components/checkout/components/AmountSummary/index.d.ts +0 -26
  79. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  80. package/lib/components/eftposPay/huifu/const.d.ts +0 -5
  81. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  82. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  83. package/lib/components/eftposPay/payo/const.d.ts +0 -26
  84. package/lib/components/eftposPay/tyro/const.d.ts +0 -17
  85. package/lib/components/eftposPay/windcave/const.d.ts +0 -119
  86. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
  87. package/lib/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -20
  88. package/lib/components/shoppingCart/server.d.ts +0 -11
  89. package/lib/components/shoppingCart/type.d.ts +0 -57
  90. package/lib/components/shoppingCart/utils.d.ts +0 -163
  91. package/lib/components/ticketBooking/dialog.d.ts +0 -17
  92. package/lib/components/ticketBooking/locales.d.ts +0 -340
  93. package/lib/components/ticketBooking/serve.d.ts +0 -289
  94. package/lib/components/ticketBooking/utils/edit.d.ts +0 -1
  95. package/lib/components/ticketBooking/utils/index.d.ts +0 -103
  96. package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
  97. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -14
  98. package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -185
  99. package/lib/plus/pisellSalesManagement/config/order.d.ts +0 -172
  100. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
  101. package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
  102. package/lib/pro/skuDetailModal/index.d.ts +0 -5
  103. package/lib/pro/skuDetailModal/types.d.ts +0 -388
@@ -1,103 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- /** dayjs对象格式化为字符串时间 */
3
- export declare const formatDateToStr: (date: Dayjs[]) => string | string[];
4
- export declare const getDefaultStartParam: () => string | string[];
5
- export declare const formatBookingList: (bookingList: any[]) => any[];
6
- export declare const getNextTimeSlice: (sliceMinutes: number) => Dayjs;
7
- export declare const getDisabledEdit: ({ shop_discount, bookings, payment_status }: any) => boolean;
8
- export declare const formatOptions: (detail: any) => any;
9
- export declare const formatHolder: (detail: any) => any;
10
- export declare const restoreProductOtherData: (data: any) => {
11
- product_id: any;
12
- option: any;
13
- bundle: any;
14
- product_variant_id: any;
15
- quantity: number;
16
- } | undefined;
17
- export declare const isSameProduct: (a: any, b: any) => boolean;
18
- export declare const addService: (list: any[], addItem: any, state: any, isMultiDay?: boolean) => {
19
- list: any[];
20
- count: number;
21
- quantity?: undefined;
22
- } | {
23
- list: any[];
24
- quantity: any;
25
- count?: undefined;
26
- };
27
- export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
28
- export declare const getCartProductOverlay: (state: any) => any;
29
- export declare const getIsOverlayProduct: (item: any, state: any) => any;
30
- export declare const getIsShowNumber: (item: any, state: any) => any;
31
- export declare const genServiceKey: (item: any) => string;
32
- export declare const genHolderKey: (item: any) => string;
33
- export declare const getIsParallelResourcesBooking: (record: any) => boolean;
34
- declare type ScanData = {
35
- type: string;
36
- status: 'success' | 'failed';
37
- scanType: 'nfc' | 'scanner';
38
- scanCode: string;
39
- result: {
40
- searchType: 'customer' | 'wallet' | 'walletPass' | 'product' | 'local_product';
41
- response: {
42
- status: boolean;
43
- code: number;
44
- message: string;
45
- data: any;
46
- };
47
- };
48
- };
49
- export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
51
- data: any;
52
- scanCode: string;
53
- } | null;
54
- export declare const formatScanGlobal: (data: ScanData) => {
55
- searchType: "wallet";
56
- data: any;
57
- scanCode: string;
58
- } | {
59
- searchType: "walletPass";
60
- data: any;
61
- scanCode: string;
62
- } | {
63
- searchType: "product" | "local_product";
64
- data: any;
65
- scanCode: string;
66
- } | null | undefined;
67
- export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
68
- export declare const getBookingTicketKey: (osKey: string) => string;
69
- export declare const getShopDiscountKey: (osKey: string) => string;
70
- export declare const rulesHooks: {
71
- getProduct(product: Record<string, any>): {
72
- booking_id: any;
73
- id: any;
74
- _id: any;
75
- price: any;
76
- total: any;
77
- discount_list: any;
78
- origin_total: any;
79
- num: any;
80
- quantity: any;
81
- vouchersApplicable: any;
82
- holder_id: any;
83
- isNormalProduct: any;
84
- startDate: any;
85
- bundle: any;
86
- options: any;
87
- inPromotion: any;
88
- _promotion: any;
89
- };
90
- setProduct(product: Record<string, any>, values: {
91
- total: number;
92
- discount_list: any[];
93
- price: number;
94
- quantity: number;
95
- _id?: string;
96
- }): {
97
- _id: any;
98
- discount_list: any[];
99
- _extend: any;
100
- };
101
- };
102
- export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
103
- export type { CacheType } from './productCache';
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { PisellSalesGridProps } from './types';
3
- import './PisellSalesGrid.less';
4
- declare const PisellSalesGrid: React.FC<PisellSalesGridProps>;
5
- export default PisellSalesGrid;
@@ -1,14 +0,0 @@
1
- declare type BookingFormsPreviewProps = {
2
- value?: any;
3
- uniqueTables?: any[];
4
- bookingLabels?: {
5
- more?: string;
6
- forms?: string;
7
- };
8
- textStyles?: any;
9
- relationId: number;
10
- relationType?: string;
11
- customer?: any;
12
- };
13
- declare const BookingFormsPreview: (props: BookingFormsPreviewProps) => JSX.Element;
14
- export default BookingFormsPreview;
@@ -1,185 +0,0 @@
1
- export declare const getBookingStatusMap: () => Record<string, string>;
2
- export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
3
- export declare const getBookingPlatformMap: () => Record<string, string>;
4
- export declare const getBookingHeaderLabels: () => Record<string, string>;
5
- export declare const defaultPaymentStatusKeys: string[];
6
- export declare const getFilterButtonList: () => ({
7
- name: string;
8
- type: string;
9
- key: string;
10
- label: any;
11
- other: {
12
- allowClear: boolean;
13
- mode: string;
14
- maxTagCount: string;
15
- placeholder: any;
16
- options: {
17
- label: string;
18
- value: string;
19
- }[];
20
- minInputNumberProps?: undefined;
21
- maxInputNumberProps?: undefined;
22
- component?: undefined;
23
- isSearchServer?: undefined;
24
- showSearch?: undefined;
25
- showTime?: undefined;
26
- };
27
- sort?: undefined;
28
- localFilter?: undefined;
29
- } | {
30
- name: string;
31
- type: string;
32
- key: string;
33
- label: any;
34
- other: {
35
- placeholder: any;
36
- minInputNumberProps: {
37
- min: number;
38
- precision: number;
39
- };
40
- maxInputNumberProps: {
41
- min: number;
42
- precision: number;
43
- };
44
- allowClear?: undefined;
45
- mode?: undefined;
46
- maxTagCount?: undefined;
47
- options?: undefined;
48
- component?: undefined;
49
- isSearchServer?: undefined;
50
- showSearch?: undefined;
51
- showTime?: undefined;
52
- };
53
- sort?: undefined;
54
- localFilter?: undefined;
55
- } | {
56
- name: string;
57
- type: string;
58
- key: string;
59
- label: any;
60
- sort: boolean;
61
- localFilter: boolean;
62
- other: {
63
- allowClear: boolean;
64
- mode: string;
65
- maxTagCount: string;
66
- component: (props: {
67
- value?: string | number | (string | number)[] | undefined;
68
- onChange?: ((value: (string | number)[]) => void) | undefined;
69
- className?: string | undefined;
70
- style?: import("react").CSSProperties | undefined;
71
- }) => JSX.Element;
72
- placeholder?: undefined;
73
- options?: undefined;
74
- minInputNumberProps?: undefined;
75
- maxInputNumberProps?: undefined;
76
- isSearchServer?: undefined;
77
- showSearch?: undefined;
78
- showTime?: undefined;
79
- };
80
- } | {
81
- name: string;
82
- type: string;
83
- key: string;
84
- label: any;
85
- other: {
86
- allowClear: boolean;
87
- mode: string;
88
- maxTagCount: string;
89
- placeholder: any;
90
- options: () => Promise<any>;
91
- minInputNumberProps?: undefined;
92
- maxInputNumberProps?: undefined;
93
- component?: undefined;
94
- isSearchServer?: undefined;
95
- showSearch?: undefined;
96
- showTime?: undefined;
97
- };
98
- sort?: undefined;
99
- localFilter?: undefined;
100
- } | {
101
- name: string;
102
- type: string;
103
- key: string;
104
- label: any;
105
- other: {
106
- placeholder: any;
107
- allowClear?: undefined;
108
- mode?: undefined;
109
- maxTagCount?: undefined;
110
- options?: undefined;
111
- minInputNumberProps?: undefined;
112
- maxInputNumberProps?: undefined;
113
- component?: undefined;
114
- isSearchServer?: undefined;
115
- showSearch?: undefined;
116
- showTime?: undefined;
117
- };
118
- sort?: undefined;
119
- localFilter?: undefined;
120
- } | {
121
- name: string;
122
- type: string;
123
- key: string;
124
- label: any;
125
- other: {
126
- allowClear: boolean;
127
- isSearchServer: boolean;
128
- showSearch: boolean;
129
- placeholder: any;
130
- options: (params?: string) => Promise<any>;
131
- mode?: undefined;
132
- maxTagCount?: undefined;
133
- minInputNumberProps?: undefined;
134
- maxInputNumberProps?: undefined;
135
- component?: undefined;
136
- showTime?: undefined;
137
- };
138
- sort?: undefined;
139
- localFilter?: undefined;
140
- } | {
141
- name: string;
142
- type: string;
143
- key: string;
144
- label: any;
145
- other: {
146
- placeholder: any;
147
- showTime: boolean;
148
- allowClear?: undefined;
149
- mode?: undefined;
150
- maxTagCount?: undefined;
151
- options?: undefined;
152
- minInputNumberProps?: undefined;
153
- maxInputNumberProps?: undefined;
154
- component?: undefined;
155
- isSearchServer?: undefined;
156
- showSearch?: undefined;
157
- };
158
- sort?: undefined;
159
- localFilter?: undefined;
160
- })[];
161
- export declare const getSortList: () => ({
162
- type: string;
163
- isCustom: boolean;
164
- name: string;
165
- label: any;
166
- getSortItems: () => {
167
- key: string;
168
- label: any;
169
- }[];
170
- other?: undefined;
171
- } | {
172
- type: string;
173
- isCustom: boolean;
174
- name: string;
175
- label: any;
176
- getSortItems: () => {
177
- key: string;
178
- label: any;
179
- }[];
180
- other: {
181
- style: {
182
- width: string;
183
- };
184
- };
185
- })[];
@@ -1,172 +0,0 @@
1
- /**
2
- * 获取支付状态映射
3
- */
4
- export declare const getPaymentStatusMap: () => Record<string, string>;
5
- export declare const PAYMENT_STATUS_COLOR_MAP: Record<string, string>;
6
- export declare const getPlatformMap: () => Record<string, string>;
7
- /**
8
- * 获取订单状态映射
9
- * @param locales - 多语言对象
10
- */
11
- export declare const getOrderStatusMap: () => Record<string, string>;
12
- export declare const ORDER_STATUS_COLOR_MAP: Record<string, {
13
- borderColor: string;
14
- textColor: string;
15
- }>;
16
- /**
17
- * 获取处理状态映射
18
- */
19
- export declare const getShippingStatusMap: () => Record<string, string>;
20
- export declare const FULFILLMENT_STATUS_COLOR_MAP: Record<string, {
21
- borderColor: string;
22
- textColor: string;
23
- }>;
24
- /**
25
- * 获取配送方式映射
26
- */
27
- export declare const getDeliveryTypeMap: () => Record<string, string>;
28
- /**
29
- * 获取到店服务类型映射
30
- * @param locales - 多语言对象
31
- */
32
- export declare const getShopServiceTypeMap: () => Record<string, string>;
33
- export declare const DELIVERY_TYPE_COLOR_MAP: Record<string, string>;
34
- export declare const SHOP_SERVICE_TYPE_COLOR_MAP: Record<string, string>;
35
- export declare const getOrderHeaderLabels: () => Record<string, string>;
36
- export declare const defaultPaymentStatusKeys: string[];
37
- export declare const getFilterButtonList: () => ({
38
- name: string;
39
- type: string;
40
- key: string;
41
- label: any;
42
- other: {
43
- allowClear: boolean;
44
- mode: string;
45
- maxTagCount: string;
46
- placeholder: any;
47
- options: {
48
- label: string;
49
- value: string;
50
- }[];
51
- isSearchServer?: undefined;
52
- showSearch?: undefined;
53
- minInputNumberProps?: undefined;
54
- maxInputNumberProps?: undefined;
55
- };
56
- } | {
57
- name: string;
58
- type: string;
59
- key: string;
60
- label: any;
61
- other: {
62
- allowClear: boolean;
63
- isSearchServer: boolean;
64
- showSearch: boolean;
65
- placeholder: any;
66
- options: (params?: string) => Promise<any>;
67
- mode?: undefined;
68
- maxTagCount?: undefined;
69
- minInputNumberProps?: undefined;
70
- maxInputNumberProps?: undefined;
71
- };
72
- } | {
73
- name: string;
74
- type: string;
75
- key: string;
76
- label: any;
77
- other: {
78
- allowClear: boolean;
79
- mode: string;
80
- maxTagCount: string;
81
- placeholder: any;
82
- options: () => Promise<any>;
83
- isSearchServer?: undefined;
84
- showSearch?: undefined;
85
- minInputNumberProps?: undefined;
86
- maxInputNumberProps?: undefined;
87
- };
88
- } | {
89
- name: string;
90
- type: string;
91
- key: string;
92
- label: any;
93
- other: {
94
- placeholder: any;
95
- minInputNumberProps: {
96
- min: number;
97
- };
98
- maxInputNumberProps: {
99
- min: number;
100
- };
101
- allowClear?: undefined;
102
- mode?: undefined;
103
- maxTagCount?: undefined;
104
- options?: undefined;
105
- isSearchServer?: undefined;
106
- showSearch?: undefined;
107
- };
108
- } | {
109
- name: string;
110
- type: string;
111
- key: string;
112
- label: any;
113
- other: {
114
- allowClear: boolean;
115
- mode: string;
116
- maxTagCount: string;
117
- isSearchServer: boolean;
118
- showSearch: boolean;
119
- placeholder: any;
120
- options: (params?: string) => Promise<any>;
121
- minInputNumberProps?: undefined;
122
- maxInputNumberProps?: undefined;
123
- };
124
- } | {
125
- name: string;
126
- type: string;
127
- key: string;
128
- label: any;
129
- other: {
130
- placeholder: any;
131
- allowClear?: undefined;
132
- mode?: undefined;
133
- maxTagCount?: undefined;
134
- options?: undefined;
135
- isSearchServer?: undefined;
136
- showSearch?: undefined;
137
- minInputNumberProps?: undefined;
138
- maxInputNumberProps?: undefined;
139
- };
140
- } | {
141
- name: string;
142
- type: string;
143
- key: string;
144
- label: any;
145
- other: {
146
- allowClear: boolean;
147
- placeholder: any;
148
- options: () => Promise<any>;
149
- mode?: undefined;
150
- maxTagCount?: undefined;
151
- isSearchServer?: undefined;
152
- showSearch?: undefined;
153
- minInputNumberProps?: undefined;
154
- maxInputNumberProps?: undefined;
155
- };
156
- })[];
157
- export declare const getSortList: () => ({
158
- type: string;
159
- isCustom: boolean;
160
- name: string;
161
- label: any;
162
- getSortItems: () => {
163
- key: string;
164
- label: any;
165
- }[];
166
- } | {
167
- type: string;
168
- isCustom: boolean;
169
- name: string;
170
- label: any;
171
- getSortItems?: undefined;
172
- })[];
@@ -1,2 +0,0 @@
1
- import { SalesGridPerspectiveConfig } from '../../pisellSalesGrid';
2
- export declare const useBookingPerspective: (params: any) => SalesGridPerspectiveConfig;
@@ -1,2 +0,0 @@
1
- import { SalesGridPerspectiveConfig } from '../../pisellSalesGrid';
2
- export declare const useOrderPerspective: () => SalesGridPerspectiveConfig;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { SkuDetailModalProps, SkuDetailModalRef } from './types';
3
- import './index.less';
4
- declare const _default: React.ForwardRefExoticComponent<SkuDetailModalProps & React.RefAttributes<SkuDetailModalRef>>;
5
- export default _default;