@pisell/private-materials 6.2.25 → 6.2.26

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 (212) 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/deposit/components/PolicyModal/index.js +1 -1
  8. package/es/components/booking/components/customSelect/index.js +1 -0
  9. package/es/components/booking/hooks/useClearCart.js +11 -8
  10. package/es/components/booking/info/client/index.js +3 -2
  11. package/es/components/booking/info/hooks/useInfoHolder.js +13 -14
  12. package/es/components/booking/info/service/Lists.js +37 -27
  13. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  14. package/es/components/booking/info/service/editService/constants.js +3 -0
  15. package/es/components/booking/info/service/editService/index.js +15 -10
  16. package/es/components/booking/info/service2/utils.d.ts +1 -1
  17. package/es/components/booking/info/service2/utils.js +20 -21
  18. package/es/components/booking/info2/index.js +1 -0
  19. package/es/components/booking/info2/service/addService/utils.js +6 -3
  20. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  21. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  22. package/es/components/booking/info2/service/editService/index.js +265 -170
  23. package/es/components/booking/info2/service/index.js +22 -19
  24. package/es/components/booking/materiels/duration/index.js +9 -2
  25. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  26. package/es/components/shoppingCart/components/Cart/Product.js +51 -47
  27. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  28. package/es/components/ticketBooking/components/addServiceVariant/addService.js +171 -151
  29. package/es/components/ticketBooking/components/timeBar/index.js +77 -73
  30. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  31. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  32. package/lib/components/booking/components/customSelect/index.js +1 -0
  33. package/lib/components/booking/hooks/useClearCart.js +16 -13
  34. package/lib/components/booking/info/client/index.js +5 -4
  35. package/lib/components/booking/info/hooks/useInfoHolder.js +12 -13
  36. package/lib/components/booking/info/service/Lists.js +36 -24
  37. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  38. package/lib/components/booking/info/service/editService/constants.js +31 -0
  39. package/lib/components/booking/info/service/editService/index.js +7 -1
  40. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  41. package/lib/components/booking/info/service2/utils.js +17 -17
  42. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  43. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  44. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  45. package/lib/components/booking/info2/service/editService/index.js +138 -74
  46. package/lib/components/booking/info2/service/index.js +14 -10
  47. package/lib/components/booking/materiels/duration/index.js +7 -2
  48. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  49. package/lib/components/shoppingCart/components/Cart/Product.js +32 -28
  50. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  51. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +140 -122
  52. package/lib/components/ticketBooking/components/timeBar/index.js +98 -94
  53. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  54. package/package.json +3 -3
  55. package/es/components/Sales/Cart/index.d.ts +0 -53
  56. package/es/components/booking/addons/index.d.ts +0 -17
  57. package/es/components/booking/components/actionButtons/index.d.ts +0 -29
  58. package/es/components/booking/components/clearCartModal/index.d.ts +0 -10
  59. package/es/components/booking/components/customiseItemModal/index.d.ts +0 -28
  60. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  61. package/es/components/booking/components/voucher/index.d.ts +0 -3
  62. package/es/components/booking/dashboard/index.d.ts +0 -20
  63. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -3
  64. package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
  65. package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  66. package/es/components/booking/info2/cartClientCard/types.d.ts +0 -13
  67. package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  68. package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  69. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -3
  70. package/es/components/booking/locales.d.ts +0 -903
  71. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  72. package/es/components/shoppingCart/type.d.ts +0 -49
  73. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  74. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  75. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  76. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  77. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  78. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  79. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  80. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  81. package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  82. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  83. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  84. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  85. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  86. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  87. package/es/components/ticketBooking/locales.d.ts +0 -177
  88. package/es/components/ticketBooking/serve.d.ts +0 -287
  89. package/es/hooks/useToast.d.ts +0 -2
  90. package/es/hooks/useTranslationOriginal.d.ts +0 -1
  91. package/es/index.d.ts +0 -51
  92. package/es/plus/clientCard/index.d.ts +0 -7
  93. package/es/plus/clientCard/line/index.d.ts +0 -9
  94. package/es/plus/clientCard/locales.d.ts +0 -18
  95. package/es/plus/clientCard/types.d.ts +0 -126
  96. package/es/plus/clientCard/utils.d.ts +0 -8
  97. package/es/plus/clientName/index.d.ts +0 -5
  98. package/es/plus/clientName/type.d.ts +0 -13
  99. package/es/plus/clientName/utils.d.ts +0 -2
  100. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  101. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  102. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  103. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  104. package/es/plus/clinetSearch/Add/index.d.ts +0 -18
  105. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  106. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  107. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  108. package/es/plus/clinetSearch/index.d.ts +0 -18
  109. package/es/plus/clinetSearch/locales.d.ts +0 -102
  110. package/es/plus/clinetSearch/serve.d.ts +0 -1
  111. package/es/plus/clinetSearch/types.d.ts +0 -49
  112. package/es/plus/noteModal/AddTempModal.d.ts +0 -7
  113. package/es/plus/noteModal/index.d.ts +0 -4
  114. package/es/plus/noteModal/locales.d.ts +0 -33
  115. package/es/plus/noteModal/types.d.ts +0 -17
  116. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  117. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  118. package/es/pro/comprehensiveSearch/index.d.ts +0 -9
  119. package/es/pro/comprehensiveSearch/locales.d.ts +0 -18
  120. package/es/pro/comprehensiveSearch/types.d.ts +0 -31
  121. package/es/pro/numberKeyboard/index.d.ts +0 -28
  122. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  123. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  124. package/es/pro/pisellNumberSelector/index.d.ts +0 -26
  125. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  126. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  127. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  128. package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  129. package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  130. package/es/pro/pisellPriceRadio/index.d.ts +0 -26
  131. package/es/pro/skuDetailModal/index.d.ts +0 -5
  132. package/es/pro/skuDetailModal/locales.d.ts +0 -48
  133. package/es/pro/skuDetailModal/types.d.ts +0 -347
  134. package/lib/components/Sales/Cart/index.d.ts +0 -53
  135. package/lib/components/booking/addons/index.d.ts +0 -17
  136. package/lib/components/booking/components/actionButtons/index.d.ts +0 -29
  137. package/lib/components/booking/components/clearCartModal/index.d.ts +0 -10
  138. package/lib/components/booking/components/customiseItemModal/index.d.ts +0 -28
  139. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  140. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  141. package/lib/components/booking/dashboard/index.d.ts +0 -20
  142. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -3
  143. package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
  144. package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  145. package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -13
  146. package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  147. package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  148. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -3
  149. package/lib/components/booking/locales.d.ts +0 -903
  150. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  151. package/lib/components/shoppingCart/type.d.ts +0 -49
  152. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  153. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  154. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  155. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  156. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  157. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  158. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  159. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  160. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  161. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  162. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  163. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  164. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  165. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  166. package/lib/components/ticketBooking/locales.d.ts +0 -177
  167. package/lib/components/ticketBooking/serve.d.ts +0 -287
  168. package/lib/hooks/useToast.d.ts +0 -2
  169. package/lib/hooks/useTranslationOriginal.d.ts +0 -1
  170. package/lib/index.d.ts +0 -51
  171. package/lib/plus/clientCard/index.d.ts +0 -7
  172. package/lib/plus/clientCard/line/index.d.ts +0 -9
  173. package/lib/plus/clientCard/locales.d.ts +0 -18
  174. package/lib/plus/clientCard/types.d.ts +0 -126
  175. package/lib/plus/clientCard/utils.d.ts +0 -8
  176. package/lib/plus/clientName/index.d.ts +0 -5
  177. package/lib/plus/clientName/type.d.ts +0 -13
  178. package/lib/plus/clientName/utils.d.ts +0 -2
  179. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  180. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  181. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  182. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  183. package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
  184. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  185. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  186. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  187. package/lib/plus/clinetSearch/index.d.ts +0 -18
  188. package/lib/plus/clinetSearch/locales.d.ts +0 -102
  189. package/lib/plus/clinetSearch/serve.d.ts +0 -1
  190. package/lib/plus/clinetSearch/types.d.ts +0 -49
  191. package/lib/plus/noteModal/AddTempModal.d.ts +0 -7
  192. package/lib/plus/noteModal/index.d.ts +0 -4
  193. package/lib/plus/noteModal/locales.d.ts +0 -33
  194. package/lib/plus/noteModal/types.d.ts +0 -17
  195. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  196. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  197. package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
  198. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -18
  199. package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
  200. package/lib/pro/numberKeyboard/index.d.ts +0 -28
  201. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  202. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  203. package/lib/pro/pisellNumberSelector/index.d.ts +0 -26
  204. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  205. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  206. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  207. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  208. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  209. package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
  210. package/lib/pro/skuDetailModal/index.d.ts +0 -5
  211. package/lib/pro/skuDetailModal/locales.d.ts +0 -48
  212. package/lib/pro/skuDetailModal/types.d.ts +0 -347
@@ -1,31 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ComprehensiveSearchProps {
3
- dataSource?: any;
4
- isShowScanner?: boolean;
5
- isShowCamera?: boolean;
6
- isShowNFC?: boolean;
7
- isShowNewButton?: boolean;
8
- newButtonAlign?: 'left' | 'center' | 'right';
9
- newButtonText?: string;
10
- newDialogDataSource?: any;
11
- renderType?: 'modal' | 'drawer' | 'portal' | '';
12
- containerProps?: Record<string, any>;
13
- isShowSearch?: boolean;
14
- isShowSearchCamera?: boolean;
15
- searchIcon?: string;
16
- placeholder?: string;
17
- isShowSearchButton?: boolean;
18
- resultDisplay?: 'list' | 'grid';
19
- resultSort?: 'asc' | 'desc' | 'custom';
20
- sortBy?: string;
21
- style?: React.CSSProperties;
22
- loading?: boolean;
23
- onSearchTextChange?: (value: string) => void;
24
- onSearch?: (value: string) => void;
25
- onAdd?: () => void;
26
- onDataChange?: (data: any) => void;
27
- onRowClick?: (record: any, index: any) => void;
28
- }
29
- export interface SearchResult {
30
- [key: string]: any;
31
- }
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface NumberKeyboardProps {
4
- /** 输入框的值 */
5
- value?: string;
6
- /** 输入框的placeholder */
7
- placeholder?: string;
8
- /** 输入框的最大长度 */
9
- maxLength?: number;
10
- /** 最大值 */
11
- max?: number;
12
- /** 确认按钮的文本 */
13
- okText?: string;
14
- /** 删除按钮的文本 */
15
- deleteText?: string | React.ReactNode;
16
- /** 输入框的值发生变化时回调 */
17
- onChange?: (num: string) => void;
18
- /** 确认按钮点击时回调 */
19
- onOk?: () => void;
20
- /** 删除按钮点击时回调 */
21
- onDelete?: (num: string) => void;
22
- /** 键盘整体样式 */
23
- style?: React.CSSProperties;
24
- /** 输入框的样式 */
25
- inputStyle?: React.CSSProperties;
26
- }
27
- declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element;
28
- export default NumberKeyboard;
@@ -1,12 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.number.keyboard.ok': string;
4
- };
5
- 'zh-CN': {
6
- 'pisell2.number.keyboard.ok': string;
7
- };
8
- 'zh-HK': {
9
- 'pisell2.number.keyboard.ok': string;
10
- };
11
- };
12
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Example: React.FC;
3
- export default Example;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellNumberSelectorProps {
4
- /** 当前值 */
5
- value?: number;
6
- /** 最小值 */
7
- min?: number;
8
- /** 最大值 */
9
- max?: number;
10
- /** 步长 */
11
- step?: number;
12
- /** 是否禁用 */
13
- disabled?: boolean;
14
- /** 值变化回调 */
15
- onChange?: (value: number) => void;
16
- /** 组件尺寸 */
17
- size?: 'small' | 'middle' | 'large';
18
- /** 自定义类名 */
19
- className?: string;
20
- /** 是否启用价格调整面板 */
21
- enablePriceAdjust?: boolean;
22
- /** 原始价格(用于价格调整) */
23
- originValue?: number;
24
- }
25
- declare const PisellNumberSelector: React.FC<PisellNumberSelectorProps>;
26
- export default PisellNumberSelector;
@@ -1,12 +0,0 @@
1
- import { PopoverProps } from 'antd';
2
- import './index.less';
3
- interface PisellPhoneKeyboardProps {
4
- value?: string;
5
- onChange: (e: string) => void;
6
- popoverProps: PopoverProps;
7
- virtualKeyboardProps?: any;
8
- keyboardProps?: any;
9
- virtualKeyInputProps?: any;
10
- }
11
- declare const PisellPhoneKeyboard: (props: PisellPhoneKeyboardProps) => JSX.Element;
12
- export default PisellPhoneKeyboard;
@@ -1,12 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.confirm': string;
4
- };
5
- 'zh-CN': {
6
- 'pisell2.text.confirm': string;
7
- };
8
- 'zh-HK': {
9
- 'pisell2.text.confirm': string;
10
- };
11
- };
12
- export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './PisellPriceKeyboardModal.less';
3
- import { PisellPriceKeyboardModalProps } from './types';
4
- declare const PisellPriceKeyboardModal: React.FC<PisellPriceKeyboardModalProps>;
5
- export default PisellPriceKeyboardModal;
@@ -1,2 +0,0 @@
1
- export { default } from './PisellPriceKeyboardModal';
2
- export type { PisellPriceKeyboardModalProps, KeyboardPosition } from './types';
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PisellPriceKeyboardModalProps {
3
- /** 是否显示键盘 */
4
- visible?: boolean;
5
- /** 当前价格值 */
6
- value?: string | number;
7
- /** 价格变化回调(合并了 onChange 和 onEnter) */
8
- onChange?: (value: string | number) => void;
9
- /** 关闭键盘回调 */
10
- onClose?: () => void;
11
- /** 触发元素的 ref,用于计算位置 */
12
- triggerRef?: React.RefObject<HTMLElement>;
13
- /** 货币符号显示 */
14
- showCurrencySymbol?: boolean;
15
- /** 是否使用千分位分隔符 */
16
- useThousandsSeparator?: boolean;
17
- /** 自定义类名 */
18
- className?: string;
19
- /** 自定义样式 */
20
- style?: React.CSSProperties;
21
- }
22
- export interface KeyboardPosition {
23
- top: number;
24
- left: number;
25
- }
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellPriceRadioProps {
4
- /** 是否选中 */
5
- checked?: boolean;
6
- /** 点击选中回调 */
7
- onSelect?: () => void;
8
- /** 价格值 */
9
- value?: string;
10
- /** 价格变化回调 */
11
- onChange?: (value: string) => void;
12
- /** 标题 */
13
- title?: string;
14
- /** 货币符号 */
15
- currencySymbol?: string;
16
- /** 主题颜色 */
17
- theme?: 'purple' | 'red';
18
- /** 是否显示负号 */
19
- showMinus?: boolean;
20
- /** 是否禁用 */
21
- disabled?: boolean;
22
- /** 占位符 */
23
- placeholder?: string;
24
- }
25
- declare const PisellPriceRadio: React.FC<PisellPriceRadioProps>;
26
- export default PisellPriceRadio;
@@ -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;
@@ -1,48 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.text.sku.detail.modal.quantity': string;
4
- 'pisell2.text.sku.detail.modal.note': string;
5
- 'pisell2.text.sku.detail.modal.subtotal': string;
6
- 'pisell2.text.sku.detail.modal.discount': string;
7
- 'pisell2.text.sku.detail.modal.manual.price.change': string;
8
- 'pisell2.text.sku.detail.modal.price.override': string;
9
- 'pisell2.text.sku.detail.modal.total': string;
10
- 'pisell2.text.sku.detail.modal.gst.excl': string;
11
- 'pisell2.text.sku.detail.modal.gst.incl': string;
12
- 'pisell2.text.sku.detail.modal.btn.add.note': string;
13
- 'pisell2.text.sku.detail.modal.btn.remove': string;
14
- 'pisell2.text.sku.detail.modal.btn.confirm': string;
15
- 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
16
- };
17
- 'zh-CN': {
18
- 'pisell2.text.sku.detail.modal.quantity': string;
19
- 'pisell2.text.sku.detail.modal.note': string;
20
- 'pisell2.text.sku.detail.modal.subtotal': string;
21
- 'pisell2.text.sku.detail.modal.discount': string;
22
- 'pisell2.text.sku.detail.modal.manual.price.change': string;
23
- 'pisell2.text.sku.detail.modal.price.override': string;
24
- 'pisell2.text.sku.detail.modal.total': string;
25
- 'pisell2.text.sku.detail.modal.gst.excl': string;
26
- 'pisell2.text.sku.detail.modal.gst.incl': string;
27
- 'pisell2.text.sku.detail.modal.btn.add.note': string;
28
- 'pisell2.text.sku.detail.modal.btn.remove': string;
29
- 'pisell2.text.sku.detail.modal.btn.confirm': string;
30
- 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
31
- };
32
- 'zh-HK': {
33
- 'pisell2.text.sku.detail.modal.quantity': string;
34
- 'pisell2.text.sku.detail.modal.note': string;
35
- 'pisell2.text.sku.detail.modal.subtotal': string;
36
- 'pisell2.text.sku.detail.modal.discount': string;
37
- 'pisell2.text.sku.detail.modal.manual.price.change': string;
38
- 'pisell2.text.sku.detail.modal.price.override': string;
39
- 'pisell2.text.sku.detail.modal.total': string;
40
- 'pisell2.text.sku.detail.modal.gst.excl': string;
41
- 'pisell2.text.sku.detail.modal.gst.incl': string;
42
- 'pisell2.text.sku.detail.modal.btn.add.note': string;
43
- 'pisell2.text.sku.detail.modal.btn.remove': string;
44
- 'pisell2.text.sku.detail.modal.btn.confirm': string;
45
- 'pisell2.text.sku.detail.modal.btn.manual.price.change': string;
46
- };
47
- };
48
- export default _default;
@@ -1,347 +0,0 @@
1
- export declare type ChannelApplication = 'online-store' | 'pos' | 'wholesalebusiness' | 'kiosk';
2
- export declare type ProductType = 'physical' | 'virtual';
3
- export declare type WeightUnit = 'KILOGRAMS' | 'GRAMS' | 'POUNDS' | 'OUNCES';
4
- export declare type DurationType = 'minutes' | 'hours' | 'days';
5
- export declare type ResourceType = 'single' | 'multiple';
6
- export declare type RelationType = 'form';
7
- export declare type EventType = 'schedule_event';
8
- export declare type MaxParticipantsType = 'custom-limit' | 'unlimited';
9
- export interface TimeSlice {
10
- label: string;
11
- value: string;
12
- }
13
- export interface DurationSlice {
14
- label: string;
15
- value: number;
16
- }
17
- export interface MultiLanguageName {
18
- en?: string;
19
- 'zh-CN'?: string;
20
- 'zh-HK'?: string;
21
- original?: string;
22
- auto?: string;
23
- }
24
- export interface MultiLanguageTitle {
25
- label: {
26
- type: 'i18n';
27
- 'en-US': string;
28
- 'zh-CN': string;
29
- };
30
- }
31
- export interface SelectType {
32
- type: 'single' | 'multiple';
33
- min: number;
34
- max: number;
35
- }
36
- export interface Duration {
37
- type: DurationType;
38
- value: number;
39
- }
40
- export interface CutOffTime {
41
- unit: number;
42
- unit_type: DurationType;
43
- future_day: number;
44
- type: 'advance';
45
- ongoing: {
46
- type: 'before_end';
47
- unit: number;
48
- };
49
- }
50
- export interface MachineCode {
51
- make_over: number;
52
- beforehand: number;
53
- limit_count: number;
54
- customer: number;
55
- send_action: string;
56
- hide_recharge: number;
57
- distributor_automatic: number;
58
- }
59
- export interface Form {
60
- id: number;
61
- shop_id: number;
62
- title: string;
63
- navigation_display: number;
64
- button: string;
65
- describe: string;
66
- status: 'published' | 'draft';
67
- resource_sort: number;
68
- code: string;
69
- type: 'manual' | 'auto';
70
- version: number;
71
- setting: any;
72
- created_at: string;
73
- updated_at: string;
74
- }
75
- export interface PartyroomPackage {
76
- type: 'product_all' | 'product_part';
77
- }
78
- export interface EventListItem {
79
- id: number;
80
- start_date?: string;
81
- start_time?: string;
82
- end_date?: string;
83
- end_time?: string;
84
- relation_id: number;
85
- number?: number;
86
- start_at?: string;
87
- end_at?: string;
88
- keys?: string;
89
- pax: number;
90
- type: EventType;
91
- pax_list: Record<string, number>;
92
- }
93
- export interface TimeConfig {
94
- keys: string;
95
- schedule_id: number;
96
- item_type: string;
97
- item_id: number;
98
- start_date: string;
99
- end_date: string;
100
- start_time: string;
101
- end_time: string;
102
- is_all: number;
103
- relation_type: RelationType;
104
- start_at: string;
105
- end_at: string;
106
- event_list: EventListItem[];
107
- max_participants_type?: MaxParticipantsType;
108
- max_participants_limit?: number;
109
- is_blocked?: number;
110
- blocked_times?: any[];
111
- order_event_count?: number;
112
- unique?: string;
113
- _extend?: {
114
- isMaxLimitRange: boolean;
115
- isDateRange: boolean;
116
- isCountRange: boolean;
117
- isUsable: boolean;
118
- };
119
- }
120
- export interface ResourceMetadata {
121
- combined_resource: any;
122
- }
123
- export interface ResourceItem {
124
- id: number;
125
- main_field: string;
126
- sort: number;
127
- form_id: number;
128
- times: TimeConfig[];
129
- capacity: number;
130
- combined_resource: any;
131
- resource_form_id: string | number;
132
- form_code: string;
133
- resourceType: ResourceType;
134
- children: any[];
135
- metadata: ResourceMetadata;
136
- form_tag?: any;
137
- policy?: number;
138
- partyroom_package?: PartyroomPackage;
139
- status?: string;
140
- description?: string;
141
- media?: string;
142
- subtitle?: string;
143
- room_name?: string;
144
- labelText?: string;
145
- form_record_id?: number;
146
- item_type?: string;
147
- form_resource_sort?: number;
148
- form_title?: string;
149
- form?: Form;
150
- _extend?: {
151
- usableTime?: TimeConfig;
152
- };
153
- usable?: boolean;
154
- label?: any;
155
- }
156
- export interface ResourceTypeInfo {
157
- id: number;
158
- title: string;
159
- status: number;
160
- code: string;
161
- created_at: string;
162
- updated_at: string | null;
163
- type: ResourceType;
164
- optional_resource: number[];
165
- default_resource: any[];
166
- select_type: SelectType;
167
- resource_type_id: number;
168
- renderList?: ResourceItem[];
169
- form_id?: number;
170
- renderListMaps?: Record<string, ResourceItem>;
171
- }
172
- export interface ProductResource {
173
- resources: ResourceTypeInfo[];
174
- }
175
- export interface CapacityCustom {
176
- name: MultiLanguageName;
177
- min: number;
178
- max: number;
179
- id: string;
180
- }
181
- export interface CapacityPackage {
182
- }
183
- export interface Capacity {
184
- type: 'product' | 'package';
185
- custom: CapacityCustom[];
186
- package: CapacityPackage[];
187
- }
188
- export interface ProductDisplaySetting {
189
- kiosk: {
190
- use_display_mode: number;
191
- product_option_mode: any;
192
- product_option_mode_paging: any;
193
- product_bundle_mode: any;
194
- product_bundle_mode_paging: any;
195
- };
196
- }
197
- export interface ShelfProductData {
198
- }
199
- export interface Category {
200
- id: number;
201
- name: string;
202
- icon: string;
203
- slug: string;
204
- sort: number;
205
- }
206
- export interface Collection {
207
- id: number;
208
- title: string;
209
- cover: string;
210
- }
211
- export interface ExtendData {
212
- duration: number;
213
- start_time: string;
214
- start_date: string;
215
- quantity: number;
216
- price: string;
217
- product_name: string;
218
- other: {
219
- bundle: any[];
220
- key: number;
221
- option: any[];
222
- product_id: number;
223
- product_variant_id: number;
224
- quantity: number;
225
- rowKey: number;
226
- session: any;
227
- unique: string;
228
- };
229
- total: number;
230
- origin_total: number;
231
- startDate: string;
232
- endDate: string;
233
- capacity: Array<{
234
- id: number;
235
- value: number;
236
- name: string;
237
- }>;
238
- resource: Record<string, Array<{
239
- children: any[];
240
- form_id: number;
241
- relation_id: number;
242
- like_status: string;
243
- errors: any[];
244
- metadata: {
245
- form_name: string;
246
- resource_name: string;
247
- };
248
- }>>;
249
- note?: string;
250
- }
251
- export interface TimeObj {
252
- timeSlices: TimeSlice[];
253
- durationSlicesBasedOnTime: DurationSlice[];
254
- }
255
- export interface DataObj {
256
- timeObj: TimeObj;
257
- capacitys: Capacity;
258
- resourcesOrigin: ResourceTypeInfo[];
259
- resources: ResourceTypeInfo[];
260
- resourceMaps: Record<string, ResourceTypeInfo>;
261
- }
262
- export interface DiscountItem {
263
- amount: number;
264
- type: 'discount_card' | 'discount_code' | 'discount_package';
265
- discount: {
266
- resource_id: number;
267
- title: MultiLanguageTitle;
268
- original_amount: number;
269
- product_id: number;
270
- percent: string;
271
- };
272
- num: number;
273
- }
274
- export interface ProductData {
275
- id: number;
276
- extension_id: number;
277
- extension_type: string;
278
- shop_id: number;
279
- title: string;
280
- slug: string;
281
- status: 'published' | 'draft' | 'archived';
282
- stock_quantity: number;
283
- sales_quantity: number;
284
- sum_stock: number;
285
- price: string;
286
- original_price: string;
287
- cost_price: string;
288
- cover: string;
289
- channel_application: ChannelApplication[];
290
- is_track: number;
291
- over_sold: number;
292
- is_gst: number;
293
- code: string;
294
- barcode: string;
295
- is_delivery: number;
296
- weight_unit: WeightUnit;
297
- weight_value: string;
298
- type: ProductType;
299
- unit: string;
300
- sort: number;
301
- subtitle: string;
302
- minimum_markup_price: string;
303
- is_bundle: number;
304
- bundle_group_count: number;
305
- option_group_count: number;
306
- is_variant: number;
307
- variant_count: number;
308
- cut_off_time: CutOffTime;
309
- policy: number;
310
- machine_code: MachineCode;
311
- duration: Duration;
312
- product_resource: ProductResource;
313
- capacity: Capacity;
314
- product_display_setting: ProductDisplaySetting;
315
- shelf_product_datas: ShelfProductData[];
316
- step_value: number;
317
- min_num_unit: number;
318
- schedules: any[];
319
- is_charge_tax: number;
320
- base_price: string;
321
- variant: any[];
322
- category: Category[];
323
- collection: Collection[];
324
- product_id: number;
325
- _id: string;
326
- _key: number;
327
- _extend: ExtendData;
328
- new: number;
329
- currentDefaultTime: string;
330
- _data: DataObj;
331
- autoClose: boolean;
332
- _serviceKey: string;
333
- discount_list: DiscountItem[];
334
- }
335
- export declare type SkuDetailModalData = ProductData;
336
- export interface SkuDetailModalProps {
337
- /** 确认回调 */
338
- onConfirm?: (data: ProductData) => void;
339
- /** 删除回调 */
340
- onRemove?: (productData: ProductData) => void;
341
- /** 关闭回调 */
342
- onClose?: () => void;
343
- }
344
- export interface SkuDetailModalRef {
345
- /** 打开弹窗 */
346
- open: (data: ProductData) => void;
347
- }
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import { TUpdateDisabledCartItem } from './types';
3
- interface CartItem {
4
- _id: string;
5
- [key: string]: any;
6
- }
7
- interface CartData {
8
- cartItems: CartItem[];
9
- currentCartItem: CartItem | null;
10
- }
11
- interface CartContextType {
12
- createCartItem: () => CartItem;
13
- createCartItemFromEvent: (eventItem: any) => CartItem;
14
- createCartItemFromHolder: (holderItem: any) => CartItem;
15
- addToCart: () => void;
16
- updateCartItem: (cartItem: CartItem) => CartItem;
17
- deleteCartItem: (cartItem: CartItem) => void;
18
- clickCartItem: (cartItem: CartItem) => void;
19
- updateCurrentCartItem: (cartItem: Partial<CartItem>) => void;
20
- clearCurrentCartItem: () => void;
21
- currentCartItem: CartItem | null;
22
- checkHolder: () => boolean;
23
- cartData: CartData;
24
- openCart: boolean;
25
- onOpenCart: any;
26
- onCloseCart: any;
27
- deleteCartItemByHolder: (holder_id: number) => void;
28
- addHolderToCartItem: (holderItem: any) => void;
29
- cartDataHolderList: any;
30
- addNoteToCartItem: (cartItem: CartItem) => void;
31
- updateDisabledCartItem: TUpdateDisabledCartItem;
32
- getWithoutCartItemsHolderNames: () => Array<string>;
33
- checkBeforeAddToCartResquest: any;
34
- checkBeforeAddToCart: () => Promise<{
35
- result: boolean;
36
- num: number;
37
- }>;
38
- }
39
- interface CartProviderProps {
40
- children: React.ReactNode;
41
- }
42
- export declare const CartContext: React.Context<CartContextType | undefined>;
43
- export declare const CartProvider: React.FC<CartProviderProps>;
44
- /**
45
- * 使用步骤管理的Hook
46
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
47
- * @returns {StepContextType} 步骤管理上下文
48
- */
49
- export declare const useCart: () => CartContextType;
50
- declare const _default: {
51
- defaultState: CartData;
52
- };
53
- export default _default;
@@ -1,17 +0,0 @@
1
- /**
2
- * @title: 添加额外商品
3
- * @description:
4
- * @return {*}
5
- * @Author: zhiwei.Wang
6
- * @Date: 2024-01-30 16:33
7
- */
8
- import './index.less';
9
- export interface InfoProps {
10
- title?: string;
11
- style?: any;
12
- globalState: any;
13
- setGlobalState: any;
14
- }
15
- export declare const formatProducts: (values: any) => any;
16
- declare const Addons: any;
17
- export default Addons;