@pisell/private-materials 6.3.132 → 6.3.134

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 (177) 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/venueBooking/components/Content/index.js +2 -2
  8. package/es/components/venueBooking/components/Header/index.js +1 -1
  9. package/es/components/venueBooking/components/VenueSelection/components/CourtFilter.js +1 -17
  10. package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +11 -18
  11. package/es/components/venueBooking/components/VenueSelection/index.js +1 -1
  12. package/es/components/venueBooking/context.js +49 -20
  13. package/es/components/venueBooking/locales.d.ts +5 -0
  14. package/es/components/venueBooking/locales.js +5 -0
  15. package/lib/components/venueBooking/components/Content/index.js +2 -2
  16. package/lib/components/venueBooking/components/Header/index.js +1 -1
  17. package/lib/components/venueBooking/components/VenueSelection/components/CourtFilter.js +1 -10
  18. package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +8 -7
  19. package/lib/components/venueBooking/components/VenueSelection/index.js +1 -1
  20. package/lib/components/venueBooking/context.js +20 -5
  21. package/lib/components/venueBooking/locales.d.ts +5 -0
  22. package/lib/components/venueBooking/locales.js +5 -0
  23. package/package.json +1 -1
  24. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  25. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  26. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -4
  27. package/es/components/appointmentBooking/hooks.d.ts +0 -107
  28. package/es/components/appointmentBooking/utils.d.ts +0 -227
  29. package/es/components/booking/components/footer/utils.d.ts +0 -47
  30. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  31. package/es/components/booking/components/voucher/index.d.ts +0 -4
  32. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  33. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  34. package/es/components/booking/info/service2/utils.d.ts +0 -248
  35. package/es/components/booking/info2/index.d.ts +0 -12
  36. package/es/components/booking/info2/service/addService/index.d.ts +0 -12
  37. package/es/components/booking/locales.d.ts +0 -1489
  38. package/es/components/booking/model.d.ts +0 -120
  39. package/es/components/eftposPay/amount.d.ts +0 -21
  40. package/es/components/eftposPay/app.d.ts +0 -11
  41. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -4
  42. package/es/components/eftposPay/component/fail/index.d.ts +0 -4
  43. package/es/components/eftposPay/component/fail/network.d.ts +0 -9
  44. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
  45. package/es/components/eftposPay/component/manual/index.d.ts +0 -10
  46. package/es/components/eftposPay/component/signature/index.d.ts +0 -9
  47. package/es/components/eftposPay/device.d.ts +0 -24
  48. package/es/components/eftposPay/index.d.ts +0 -5
  49. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  50. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  51. package/es/components/eftposPay/linkly/index.d.ts +0 -3
  52. package/es/components/eftposPay/pay.d.ts +0 -21
  53. package/es/components/eftposPay/payo/config.d.ts +0 -13
  54. package/es/components/eftposPay/payo/hooks.d.ts +0 -10
  55. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  56. package/es/components/eftposPay/tip.d.ts +0 -10
  57. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  58. package/es/components/eftposPay/utils/payLog.d.ts +0 -81
  59. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -23
  60. package/es/components/eftposPay/windcave/windcave.d.ts +0 -7
  61. package/es/components/kioskSkuDetail/index.d.ts +0 -39
  62. package/es/components/kioskSkuDetail/locales.d.ts +0 -48
  63. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  64. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  65. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  66. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
  67. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
  68. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
  69. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  70. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  71. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
  72. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  73. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
  74. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  75. package/es/components/pay/toC/index.d.ts +0 -3
  76. package/es/components/pay/toC/locales.d.ts +0 -631
  77. package/es/components/pay/toC/payGroup.d.ts +0 -59
  78. package/es/components/pay/toC/serve.d.ts +0 -87
  79. package/es/components/pay/toC/utils.d.ts +0 -65
  80. package/es/components/ruleSetting/locales.d.ts +0 -78
  81. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -10
  82. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
  83. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  84. package/es/components/ticketBooking/index.d.ts +0 -8
  85. package/es/components/venueBooking/components/Cart/index.d.ts +0 -28
  86. package/es/components/venueBooking/components/Footer/index.d.ts +0 -8
  87. package/es/index.d.ts +0 -87
  88. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
  89. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
  90. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
  91. package/es/plus/skuOptionsSelection/index.d.ts +0 -5
  92. package/es/plus/skuOptionsSelection/locales.d.ts +0 -58
  93. package/es/plus/skuOptionsSelection/types.d.ts +0 -458
  94. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  95. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  96. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  97. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  98. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  99. package/es/pro/Cards/components/SKUCard/index.d.ts +0 -5
  100. package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
  101. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  102. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  103. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -4
  104. package/lib/components/appointmentBooking/hooks.d.ts +0 -107
  105. package/lib/components/appointmentBooking/utils.d.ts +0 -227
  106. package/lib/components/booking/components/footer/utils.d.ts +0 -47
  107. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  108. package/lib/components/booking/components/voucher/index.d.ts +0 -4
  109. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  110. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  111. package/lib/components/booking/info/service2/utils.d.ts +0 -248
  112. package/lib/components/booking/info2/index.d.ts +0 -12
  113. package/lib/components/booking/info2/service/addService/index.d.ts +0 -12
  114. package/lib/components/booking/locales.d.ts +0 -1489
  115. package/lib/components/booking/model.d.ts +0 -120
  116. package/lib/components/eftposPay/amount.d.ts +0 -21
  117. package/lib/components/eftposPay/app.d.ts +0 -11
  118. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -4
  119. package/lib/components/eftposPay/component/fail/index.d.ts +0 -4
  120. package/lib/components/eftposPay/component/fail/network.d.ts +0 -9
  121. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
  122. package/lib/components/eftposPay/component/manual/index.d.ts +0 -10
  123. package/lib/components/eftposPay/component/signature/index.d.ts +0 -9
  124. package/lib/components/eftposPay/device.d.ts +0 -24
  125. package/lib/components/eftposPay/index.d.ts +0 -5
  126. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  127. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  128. package/lib/components/eftposPay/linkly/index.d.ts +0 -3
  129. package/lib/components/eftposPay/pay.d.ts +0 -21
  130. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  131. package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
  132. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  133. package/lib/components/eftposPay/tip.d.ts +0 -10
  134. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  135. package/lib/components/eftposPay/utils/payLog.d.ts +0 -81
  136. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -23
  137. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -7
  138. package/lib/components/kioskSkuDetail/index.d.ts +0 -39
  139. package/lib/components/kioskSkuDetail/locales.d.ts +0 -48
  140. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  141. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  142. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  143. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
  144. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
  145. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
  146. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  147. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  148. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
  149. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  150. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
  151. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  152. package/lib/components/pay/toC/index.d.ts +0 -3
  153. package/lib/components/pay/toC/locales.d.ts +0 -631
  154. package/lib/components/pay/toC/payGroup.d.ts +0 -59
  155. package/lib/components/pay/toC/serve.d.ts +0 -87
  156. package/lib/components/pay/toC/utils.d.ts +0 -65
  157. package/lib/components/ruleSetting/locales.d.ts +0 -78
  158. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -10
  159. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
  160. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -13
  161. package/lib/components/ticketBooking/index.d.ts +0 -8
  162. package/lib/components/venueBooking/components/Cart/index.d.ts +0 -28
  163. package/lib/components/venueBooking/components/Footer/index.d.ts +0 -8
  164. package/lib/index.d.ts +0 -87
  165. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
  166. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
  167. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
  168. package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
  169. package/lib/plus/skuOptionsSelection/locales.d.ts +0 -58
  170. package/lib/plus/skuOptionsSelection/types.d.ts +0 -458
  171. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  172. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  173. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  174. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  175. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  176. package/lib/pro/Cards/components/SKUCard/index.d.ts +0 -5
  177. package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
@@ -1,458 +0,0 @@
1
- /// <reference types="react" />
2
- import { LayoutConfig } from '../../pro/Selector/types';
3
- /**
4
- * SKU Card 文本样式配置
5
- */
6
- export interface SkuCardTextConfig {
7
- /** 是否显示 */
8
- visible?: boolean;
9
- /** 字体大小 */
10
- fontSize?: number;
11
- /** 颜色 */
12
- color?: string;
13
- /** 字体粗细 */
14
- fontWeight?: 'normal' | 'bold' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
15
- /** 展示行数 */
16
- lineClamp?: number;
17
- }
18
- /**
19
- * SKU Card 图片配置
20
- */
21
- export interface SkuCardImageConfig {
22
- /** 是否显示 */
23
- visible?: boolean;
24
- /** 宽度 */
25
- width?: number;
26
- /** 高度 */
27
- height?: number;
28
- /** 圆角 */
29
- borderRadius?: number | string;
30
- /** 边框 */
31
- border?: string;
32
- }
33
- /**
34
- * SKU Card 禁用文本配置
35
- */
36
- export interface SkuCardDisabledTextConfig extends Omit<SkuCardTextConfig, 'lineClamp'> {
37
- /** 文本(可能是多语言) */
38
- text?: string;
39
- }
40
- /**
41
- * SKU Card 配置
42
- */
43
- export interface SkuCardConfig {
44
- /** 主标题配置 */
45
- title?: SkuCardTextConfig;
46
- /** 副标题配置 */
47
- subTitle?: SkuCardTextConfig;
48
- /** 价格配置 */
49
- price?: Omit<SkuCardTextConfig, 'lineClamp'>;
50
- /** 图片配置 */
51
- image?: SkuCardImageConfig;
52
- /**
53
- * @description 是否在「组合规格选项卡片(VariantCard)」展示价格
54
- * - 默认不展示,避免影响现有业务 UI
55
- */
56
- variantPriceVisible?: boolean;
57
- /** 禁用文本配置 */
58
- disabledText?: SkuCardDisabledTextConfig;
59
- }
60
- /**
61
- * SKU store状态类型
62
- */
63
- export interface SkuSelectionState {
64
- /** 数据源 */
65
- dataSource: any;
66
- /** 原始值 */
67
- value: Record<string | number, any>;
68
- /** 配置 */
69
- config: {
70
- overSold?: boolean;
71
- };
72
- /** 货币符号 */
73
- symbol: string;
74
- /** Selector数据源 */
75
- selectorDataSource: any[];
76
- /** Selector识别的值 */
77
- selectorValue: Record<string | number, any>;
78
- /** SKU Card 配置 */
79
- skuCardConfig: SkuCardConfig;
80
- /** 自定义样式 */
81
- style?: React.CSSProperties;
82
- /** 样式配置 */
83
- customConfig?: {
84
- /** 弹窗宽度 */
85
- modalWidth?: number | string;
86
- /** 选项布局 */
87
- selectorLayout?: LayoutConfig | null;
88
- };
89
- /** 主题 */
90
- theme?: {
91
- token?: {
92
- colorPrimary?: string;
93
- };
94
- };
95
- }
96
- /** SKU Card 默认配置 */
97
- export declare const defaultSkuCardConfig: SkuCardConfig;
98
- export interface IProps {
99
- /** 数据源 */
100
- dataSource: DataSource;
101
- /** 原始值 */
102
- value: SkuValue;
103
- /** 配置 */
104
- config?: {
105
- /** 是否禁用 */
106
- overSold?: 0 | 1;
107
- };
108
- /** SKU Card 配置 */
109
- skuCardConfig?: SkuCardConfig;
110
- /** 选中变更回调 */
111
- onChange: (value: SkuValue) => void;
112
- /** 自定义滚动容器 */
113
- customScrollParent?: HTMLElement | string;
114
- /** 自定义样式 */
115
- style?: React.CSSProperties;
116
- /** 自定义配置 */
117
- customConfig?: {
118
- /** 弹窗宽度 */
119
- modalWidth?: number | string;
120
- /** 选项布局 */
121
- selectorLayout?: LayoutConfig | null;
122
- };
123
- /** 主题 */
124
- theme: {
125
- token?: {
126
- colorPrimary?: string;
127
- };
128
- };
129
- }
130
- export interface DataSource {
131
- /** 单规格组数据 */
132
- option_group?: Array<OptionGroupItem>;
133
- /** 组合规格组装后的数据 */
134
- variant?: Array<VariantProductItem>;
135
- /** 组合规格组数据 */
136
- variant_group?: Array<VariantGroupItem>;
137
- /** 套餐商品组数据 */
138
- bundle_group?: Array<BundleItem>;
139
- }
140
- /**
141
- * 单规格组数据
142
- */
143
- export interface OptionGroupItem {
144
- /** 创建者id */
145
- create_account_id?: number;
146
- /** 创建时间 */
147
- created_at?: string;
148
- /** 删除时间 */
149
- deleted_at?: string | null;
150
- /** 模板id */
151
- template_id?: number;
152
- /** 更新者id */
153
- update_account_id?: number;
154
- /** 更新时间 */
155
- updated_at?: string;
156
- /** 单规格组id */
157
- id?: number;
158
- /** 是否启用 */
159
- is_enabled?: 0 | 1;
160
- /** 是否多选 */
161
- is_multiple?: 0 | 1;
162
- /** 最大选择数量 */
163
- max_quantity?: number;
164
- /** 最小选择数量 */
165
- min_quantity?: number;
166
- /** 单规格组名称 */
167
- name?: string;
168
- /** 单规格组下规格数据 */
169
- option_item?: Array<OptionItem>;
170
- /** 商品id */
171
- product_id?: number;
172
- /** 是否必选 */
173
- required?: 0 | 1;
174
- /** 店铺id */
175
- shop_id?: number;
176
- /** 排序 */
177
- sort?: number;
178
- /** 状态 */
179
- status?: 0 | 1;
180
- }
181
- /**
182
- * 单规格组下选项数据
183
- */
184
- export interface OptionItem {
185
- /** 创建者id */
186
- create_account_id?: number;
187
- /** 创建时间 */
188
- created_at?: string;
189
- /** 删除时间 */
190
- deleted_at?: string | null;
191
- /** 模板id */
192
- template_id?: number;
193
- /** 更新者id */
194
- update_account_id?: number;
195
- /** 更新时间 */
196
- updated_at?: string;
197
- /** 加价 */
198
- add_price?: string;
199
- /** 封面 */
200
- cover?: string;
201
- /** 描述 */
202
- description?: string;
203
- /** 规格id */
204
- id?: number;
205
- /** 是否启用 */
206
- is_enabled?: 0 | 1;
207
- /** 最大选择数量 */
208
- max_quantity?: number;
209
- /** 规格名称 */
210
- name?: string;
211
- /** 规格组id */
212
- option_group_id?: number;
213
- /** 原价 */
214
- original_price?: string;
215
- /** 商品id */
216
- product_id?: number;
217
- /** 店铺id */
218
- shop_id?: number;
219
- /** 排序 */
220
- sort?: number;
221
- /** 状态 */
222
- status?: 0 | 1;
223
- }
224
- /**
225
- * 组合规格组数据
226
- */
227
- export interface VariantGroupItem {
228
- /** 创建者id */
229
- create_account_id?: number;
230
- /** 创建时间 */
231
- created_at?: string;
232
- /** 删除时间 */
233
- deleted_at?: string | null;
234
- /** 更新者id */
235
- update_account_id?: number;
236
- /** 更新时间 */
237
- updated_at?: string;
238
- /** 组合规格组id */
239
- id?: number;
240
- /** 组合规格组名称 */
241
- name?: string;
242
- /** 位置id */
243
- position_id?: number;
244
- /** 商品id */
245
- product_id?: number;
246
- /** 店铺id */
247
- shop_id?: number;
248
- /** 排序 */
249
- sort?: number;
250
- /** 状态 */
251
- status?: 0 | 1;
252
- /** 组合规格组下选项数据 */
253
- variant_item?: Array<VariantItem>;
254
- }
255
- /**
256
- * 组合规格组下选项数据
257
- */
258
- export interface VariantItem {
259
- /** 创建者id */
260
- create_account_id?: number;
261
- /** 创建时间 */
262
- created_at?: string;
263
- /** 删除时间 */
264
- deleted_at?: string | null;
265
- /** 更新者id */
266
- update_account_id?: number;
267
- /** 更新时间 */
268
- updated_at?: string;
269
- /** 店铺id */
270
- shop_id?: number;
271
- /** 排序 */
272
- sort?: number;
273
- /** 规格id */
274
- id?: number;
275
- /** 是否默认 */
276
- is_default?: 0 | 1;
277
- /** 变体名称 */
278
- name?: string;
279
- /** 位置id */
280
- position_id?: number;
281
- /** 商品id */
282
- product_id?: number;
283
- /** 状态 */
284
- status?: 0 | 1;
285
- /** 组合规格组id */
286
- variant_group_id?: number;
287
- }
288
- /**
289
- * 组合规格商品数据
290
- */
291
- export interface VariantProductItem {
292
- /** 创建者id */
293
- create_account_id?: number;
294
- /** 创建时间 */
295
- created_at?: string;
296
- /** 更新者id */
297
- update_account_id?: number;
298
- /** 更新时间 */
299
- updated_at?: string;
300
- /** 条形码 */
301
- barcode?: string;
302
- /** 基础价格 */
303
- base_price?: string;
304
- /** 箱规数量 */
305
- box_specification_quantity?: number;
306
- /** 编码 */
307
- code?: string;
308
- /** 成本价格 */
309
- cost_price?: string;
310
- /** 封面 */
311
- cover?: string;
312
- /** 描述 */
313
- description?: string | null;
314
- /** 是否禁用 */
315
- disabled?: 0 | 1;
316
- /** 组合规格商品id */
317
- id?: number;
318
- /** 是否收税 */
319
- is_charge_tax?: 0 | 1;
320
- /** 是否发货 */
321
- is_delivery?: 0 | 1;
322
- /** 是否收税 */
323
- is_gst?: 0 | 1;
324
- /** 是否跟踪库存 */
325
- is_track?: 0 | 1;
326
- /** 名称 */
327
- name?: Record<string, string>;
328
- /** 开售重量 */
329
- open_sold_weight?: number;
330
- /** 原价 */
331
- original_price?: string;
332
- /** 是否超卖 */
333
- over_sold?: 0 | 1;
334
- /** 价格 */
335
- price?: string;
336
- /** 商品id */
337
- product_id?: number;
338
- /** 折扣类型 */
339
- rebate_type?: string;
340
- /** 折扣值 */
341
- rebate_value?: number;
342
- /** 标题 */
343
- title?: Record<string, string>;
344
- /** 单位 */
345
- unit?: string;
346
- /** 单位值 */
347
- unit_value?: number;
348
- /** 重量单位 */
349
- weight_unit?: string;
350
- /** 重量值 */
351
- weight_value?: string;
352
- }
353
- /**
354
- * 套餐商品组数据
355
- */
356
- export interface BundleGroupItem {
357
- /** 店铺id */
358
- shop_id?: number;
359
- /** 排序 */
360
- sort?: number;
361
- /** 套餐id */
362
- id?: number;
363
- /** 最大选择数量 */
364
- max_quantity?: number;
365
- /** 最小选择数量 */
366
- min_quantity?: number;
367
- /** 套餐名称 */
368
- name?: string;
369
- /** 商品id */
370
- product_id?: number;
371
- /** 套餐商品组数据 */
372
- bundle_item?: Array<BundleItem>;
373
- }
374
- /**
375
- * 套餐商品组下选项数据
376
- */
377
- export interface BundleItem {
378
- /** 店铺id */
379
- shop_id?: number;
380
- /** 排序 */
381
- sort?: number;
382
- /** 条形码 */
383
- barcode?: string;
384
- /** 套餐商品id */
385
- bundle_product_id?: number;
386
- /** 套餐商品变体id */
387
- bundle_variant_id?: number;
388
- /** 编码 */
389
- code?: string;
390
- /** 封面 */
391
- cover?: string;
392
- /** 扩展id */
393
- extension_id?: number;
394
- /** 扩展类型 */
395
- extension_type?: string;
396
- /** 套餐商品组id */
397
- group_id?: number;
398
- /** 套餐商品id */
399
- id: string | number;
400
- /** 是否跟踪库存 */
401
- is_track?: 0 | 1;
402
- /** 最大选择数量 */
403
- max_quantity?: number;
404
- /** 单规格组数据 */
405
- option_group?: Array<OptionGroupItem>;
406
- /** 是否允许超卖 */
407
- over_sold?: 0 | 1;
408
- /** 价格 */
409
- price?: string;
410
- /** 价格类型: mark_up==>加价 | mark_down==>减价 */
411
- price_type?: 'mark_up' | 'mark_down';
412
- /** 价格类型扩展: product_price==>商品价格 */
413
- price_type_ext?: '' | 'product_price';
414
- /** 商品id */
415
- product_id?: number;
416
- /** 商品价格 */
417
- product_price?: string;
418
- /** 商品副标题 */
419
- product_subtitle?: string;
420
- /** 库存数量 */
421
- stock_quantity?: number;
422
- /** 标题 */
423
- title?: string;
424
- }
425
- /**
426
- * sku value
427
- */
428
- export interface SkuValue {
429
- /** 商品id */
430
- product_id: number;
431
- /** 多规格商品id */
432
- product_variant_id: number;
433
- /** 多规格商品选项字符串 */
434
- product_option_string?: string;
435
- /** 套餐商品组数据 */
436
- bundle: Array<any>;
437
- /** 价格 */
438
- price?: string | number;
439
- /** 单规格组数据 */
440
- option: Array<OptionItem & {
441
- num: number;
442
- price: string;
443
- product_option_item_id: number;
444
- }>;
445
- }
446
- /**
447
- * Selector值原子类型
448
- */
449
- export interface SelectorValueAtom {
450
- /** 数据 */
451
- data: Record<string, any>;
452
- /** 数量 */
453
- quantity: number;
454
- /** 总价 */
455
- totalPrice: string | number;
456
- /** 值 */
457
- value: number | string;
458
- }
@@ -1,19 +0,0 @@
1
- interface BundleItem {
2
- id: string | number;
3
- title?: string;
4
- name?: string;
5
- min_quantity?: number;
6
- max_quantity?: number;
7
- bundle_item?: Array<{
8
- id: string | number;
9
- title?: string;
10
- cover?: string;
11
- price?: number;
12
- subtitle?: string;
13
- [key: string]: any;
14
- }>;
15
- required?: 0 | 1;
16
- is_enabled?: 0 | 1;
17
- }
18
- export declare const transformBundleGroup: (bundleGroup: BundleItem[]) => any[];
19
- export {};
@@ -1 +0,0 @@
1
- export declare const transformOptionGroup: (optionGroup: any[]) => any[];
@@ -1,4 +0,0 @@
1
- /**
2
- * 将SelectorValue转换为Value
3
- */
4
- export declare const transformSelectorValueToValue: (selectorValue: any) => {};
@@ -1,4 +0,0 @@
1
- /**
2
- * 将value转换为SelectorGroup需要的格式
3
- */
4
- export declare const transformValueToSelectorValue: (value: any, dataSource: any) => any;
@@ -1 +0,0 @@
1
- export declare const transformVariantGroup: (variantGroup: any[]) => any[];
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { SKUCardProps } from './types';
3
- import './index.less';
4
- declare const SKUCard: React.FC<SKUCardProps>;
5
- export default SKUCard;
@@ -1,17 +0,0 @@
1
- import { PhoneValueObject } from './PhoneInput';
2
- declare type GetTextFunction = (key: string) => string;
3
- /**
4
- * 手机号校验函数,用于 Ant Design Form 的 rules
5
- * @param value 手机号值,可以是字符串或对象格式
6
- * @param getText 国际化文本获取函数
7
- * @returns Promise<void> 校验通过时 resolve,失败时 reject 并返回错误信息
8
- */
9
- export declare const validatePhoneNumber: (value: string | PhoneValueObject, getText: GetTextFunction) => Promise<void>;
10
- /**
11
- * 创建手机号校验规则,用于 Form.Item 的 rules 属性
12
- * @param getText 国际化文本获取函数
13
- * @param required 是否必填
14
- * @returns Form 校验规则数组
15
- */
16
- export declare const createPhoneValidationRules: (getText: GetTextFunction, required?: boolean) => any[];
17
- export {};