@pisell/private-materials 6.3.93 → 6.3.95
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -3
- package/es/components/schedules/model.d.ts +1 -9
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useThemeTokens.js +20 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +3 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/es/plus/skuOptionsSelection/store/store.js +2 -1
- package/es/plus/skuOptionsSelection/types.d.ts +14 -0
- package/es/plus/skuOptionsSelection/types.js +4 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -2
- package/es/pro/Cards/components/SKUCard/index.d.ts +2 -56
- package/es/pro/Cards/components/SKUCard/index.js +51 -20
- package/es/pro/Cards/components/SKUCard/index.less +23 -2
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/locales.js +11 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Cards/components/SKUCard/types.js +1 -0
- package/es/pro/NumericStepper/index.d.ts +5 -0
- package/es/pro/NumericStepper/index.js +8 -2
- package/es/pro/NumericStepper/index.less +1 -9
- package/es/pro/Selector/BatchSelectorDemo.js +2 -12
- package/es/pro/Selector/Selector.js +6 -4
- package/es/pro/Selector/SelectorGroup.d.ts +1 -1
- package/es/pro/Selector/SelectorGroup.js +5 -1
- package/es/pro/Selector/components/Card/index.js +9 -7
- package/es/pro/Selector/components/Card/index.less +24 -15
- package/es/pro/Selector/components/Indicator/index.js +1 -1
- package/es/pro/Selector/components/Indicator/index.less +12 -12
- package/es/pro/Selector/components/Media/index.d.ts +1 -1
- package/es/pro/Selector/components/Media/index.less +1 -1
- package/es/pro/Selector/selectorGroup.less +9 -1
- package/es/pro/Selector/types.d.ts +10 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -3
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useThemeTokens.js +40 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +8 -6
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/lib/plus/skuOptionsSelection/store/store.js +2 -1
- package/lib/plus/skuOptionsSelection/types.d.ts +14 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +15 -9
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +9 -6
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -7
- package/lib/pro/Cards/components/SKUCard/index.d.ts +2 -56
- package/lib/pro/Cards/components/SKUCard/index.js +60 -15
- package/lib/pro/Cards/components/SKUCard/index.less +23 -2
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/locales.js +35 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Cards/components/SKUCard/types.js +17 -0
- package/lib/pro/NumericStepper/index.d.ts +5 -0
- package/lib/pro/NumericStepper/index.js +11 -3
- package/lib/pro/NumericStepper/index.less +1 -9
- package/lib/pro/Selector/BatchSelectorDemo.js +13 -19
- package/lib/pro/Selector/Selector.js +7 -1
- package/lib/pro/Selector/SelectorGroup.d.ts +1 -1
- package/lib/pro/Selector/SelectorGroup.js +7 -1
- package/lib/pro/Selector/components/Card/index.js +10 -7
- package/lib/pro/Selector/components/Card/index.less +24 -15
- package/lib/pro/Selector/components/Indicator/index.js +1 -1
- package/lib/pro/Selector/components/Indicator/index.less +12 -12
- package/lib/pro/Selector/components/Media/index.d.ts +1 -1
- package/lib/pro/Selector/components/Media/index.js +7 -4
- package/lib/pro/Selector/components/Media/index.less +1 -1
- package/lib/pro/Selector/selectorGroup.less +9 -1
- package/lib/pro/Selector/types.d.ts +10 -0
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/lowcode/selector/meta.ts +15 -2
- package/lowcode/selector.group/meta.ts +15 -2
- package/lowcode/sku-options-selection/meta.ts +106 -2
- package/package.json +2 -2
- package/es/components/Sales/Summary/utils.d.ts +0 -58
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/eftpos/const.d.ts +0 -64
- package/es/components/eftpos/device.d.ts +0 -9
- package/es/components/eftpos/hooks.d.ts +0 -34
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/es/test/setup.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +0 -58
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/eftpos/const.d.ts +0 -64
- package/lib/components/eftpos/device.d.ts +0 -9
- package/lib/components/eftpos/hooks.d.ts +0 -34
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/lib/test/setup.d.ts +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export declare enum Eftpos {
|
|
2
|
-
Payo = "payo",
|
|
3
|
-
Tyro = "tyro",
|
|
4
|
-
Windcave = "windcave",
|
|
5
|
-
Stripe = "stripe"
|
|
6
|
-
}
|
|
7
|
-
export declare enum DeviceEnum {
|
|
8
|
-
/** 新增 */
|
|
9
|
-
Add = "add",
|
|
10
|
-
/** 编辑 */
|
|
11
|
-
Edit = "edit",
|
|
12
|
-
/** 重新链接 */
|
|
13
|
-
Repair = "repair"
|
|
14
|
-
}
|
|
15
|
-
export declare type DeviceStatus = `${DeviceEnum}`;
|
|
16
|
-
/** 设备配置信息 */
|
|
17
|
-
export interface DeviceProp {
|
|
18
|
-
/** 设备id */
|
|
19
|
-
id?: string | number;
|
|
20
|
-
/** 设备名称 */
|
|
21
|
-
name: string;
|
|
22
|
-
/** 设备类型(厂商) */
|
|
23
|
-
type: Eftpos.Tyro;
|
|
24
|
-
/** 设备状态 */
|
|
25
|
-
status: "unpaired" | "paired";
|
|
26
|
-
/** 设备设置(商户配置) */
|
|
27
|
-
setting: {
|
|
28
|
-
[key: string]: unknown;
|
|
29
|
-
} | null;
|
|
30
|
-
/** 设备设置(第三方配置) */
|
|
31
|
-
connection: {
|
|
32
|
-
[key: string]: unknown;
|
|
33
|
-
} | null;
|
|
34
|
-
[key: string]: unknown;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @title: 获取表单结果数据
|
|
38
|
-
* @description: 获取表单结果数据
|
|
39
|
-
* @param {any} list 表单配置信息
|
|
40
|
-
* @return {*} 表单结果信息
|
|
41
|
-
* @Author: hongbing.wang
|
|
42
|
-
* @Date: 2024-08-19 11:10
|
|
43
|
-
*/
|
|
44
|
-
export declare const getDefaultValue: (list: any) => any;
|
|
45
|
-
/**
|
|
46
|
-
* @title: 构建通用表单配置信息,构建动态表单
|
|
47
|
-
* @description:
|
|
48
|
-
* @param {any} field : array 字段信息 value 结果信息,name 上级字段信息用于嵌套, getComm : 获取字段组件配置信息
|
|
49
|
-
* @return form 表单配置信息
|
|
50
|
-
* @Author: hongbing.wang
|
|
51
|
-
* @Date: 2024-08-19 11:11
|
|
52
|
-
*/
|
|
53
|
-
export declare function getCommByFields({ field, value, name, getComm, }: {
|
|
54
|
-
field: (string | {
|
|
55
|
-
name: string;
|
|
56
|
-
children: string[];
|
|
57
|
-
})[];
|
|
58
|
-
value?: any;
|
|
59
|
-
name?: string[];
|
|
60
|
-
getComm: (params: {
|
|
61
|
-
field: string;
|
|
62
|
-
value?: unknown;
|
|
63
|
-
}, record?: any) => any;
|
|
64
|
-
}): Promise<any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DeviceProp } from './const';
|
|
3
|
-
interface DeviceProps {
|
|
4
|
-
formItemList: any[];
|
|
5
|
-
onSave: (device: DeviceProp) => void;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const Device: (props: DeviceProps) => React.JSX.Element;
|
|
9
|
-
export default Device;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Eftpos } from './const';
|
|
3
|
-
/**
|
|
4
|
-
* @title: tyro 设备连接
|
|
5
|
-
* @Author: hongbing.wang
|
|
6
|
-
* @Date: 2024-08-20 13:23
|
|
7
|
-
*/
|
|
8
|
-
export declare const usePairTerminalo: (type: Eftpos, params: {
|
|
9
|
-
url?: string;
|
|
10
|
-
version?: string;
|
|
11
|
-
}) => ({ mid, tid, apiKey, posProductData, }: {
|
|
12
|
-
mid: string;
|
|
13
|
-
tid: string;
|
|
14
|
-
apiKey: string;
|
|
15
|
-
posProductData: {
|
|
16
|
-
posProductVendor: string;
|
|
17
|
-
posProductName: string;
|
|
18
|
-
posProductVersion: string;
|
|
19
|
-
siteReference: string;
|
|
20
|
-
};
|
|
21
|
-
}, cb: (...agrn: unknown[]) => void) => Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* @title: 获取 Tyro 资源
|
|
24
|
-
* @description:
|
|
25
|
-
* @param {Eftpos} type 类型
|
|
26
|
-
* @param {string} url 链接
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: hongbing.wang
|
|
29
|
-
* @Date: 2024-08-19 18:36
|
|
30
|
-
*/
|
|
31
|
-
export declare const useTyro: (params: {
|
|
32
|
-
url?: string;
|
|
33
|
-
version?: string;
|
|
34
|
-
}) => readonly [import("react").MutableRefObject<any>, boolean];
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PhoneInput.less';
|
|
3
|
-
/** 国家/地区配置(后端返回格式) */
|
|
4
|
-
export interface CountryOption {
|
|
5
|
-
/** 国家/地区名称 */
|
|
6
|
-
name: string;
|
|
7
|
-
/** 国家/地区代码 */
|
|
8
|
-
code: string;
|
|
9
|
-
/** 区号(不带+号) */
|
|
10
|
-
calling_code: string;
|
|
11
|
-
/** 货币代码 */
|
|
12
|
-
currency_code: string;
|
|
13
|
-
}
|
|
14
|
-
/** 手机号对象格式 */
|
|
15
|
-
export interface PhoneValueObject {
|
|
16
|
-
/** 手机号(不含区号) */
|
|
17
|
-
phone: string;
|
|
18
|
-
/** 国家区号(不带+号) */
|
|
19
|
-
country_calling_code: string;
|
|
20
|
-
}
|
|
21
|
-
/** 值格式类型 */
|
|
22
|
-
export declare type ValueFormat = 'string' | 'object';
|
|
23
|
-
/** 手机号输入组件属性 */
|
|
24
|
-
export interface PhoneInputProps {
|
|
25
|
-
/** 完整的手机号值(包含区号),格式:+86138****,或 +1555****(字符串模式) */
|
|
26
|
-
value?: string | PhoneValueObject;
|
|
27
|
-
/** 值变化回调 */
|
|
28
|
-
onChange?: (value: string | PhoneValueObject) => void;
|
|
29
|
-
/** Placeholder */
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
/** 大小 */
|
|
32
|
-
size?: 'large' | 'middle' | 'small';
|
|
33
|
-
/** 是否禁用 */
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
/** 自定义类名 */
|
|
36
|
-
className?: string;
|
|
37
|
-
/** 可用的国家/地区列表 */
|
|
38
|
-
countries?: CountryOption[];
|
|
39
|
-
/** 默认国家/地区代码 */
|
|
40
|
-
defaultCountry?: string;
|
|
41
|
-
/** 值格式:'string' 返回 "+8613800138000",'object' 返回 { phone: "13800138000", country_calling_code: "86" } */
|
|
42
|
-
valueFormat?: ValueFormat;
|
|
43
|
-
/** 键盘按键事件回调 */
|
|
44
|
-
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* 手机号输入组件
|
|
48
|
-
*
|
|
49
|
-
* 支持国际区号选择和手机号输入
|
|
50
|
-
* 值格式:+区号+手机号,例如:+8613800138000 或 +15551234567
|
|
51
|
-
*/
|
|
52
|
-
declare function PhoneInput({ value, onChange, placeholder, onKeyDown, size, disabled, className, countries, defaultCountry, valueFormat, }: PhoneInputProps): React.JSX.Element;
|
|
53
|
-
export default PhoneInput;
|
package/lib/test/setup.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/vitest';
|