@pisell/private-materials 6.4.79 → 6.4.80
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/components/footer/amount.js +14 -6
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +1 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/components/booking/components/footer/amount.js +7 -2
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +1 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/index.d.ts +0 -24
- package/es/components/pay/toC/locales.d.ts +0 -301
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/es/components/systemSettings/registry/components/SectionList.d.ts +0 -4
- package/es/components/systemSettings/registry/components/index.d.ts +0 -4
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/lib/components/index.d.ts +0 -24
- package/lib/components/pay/toC/locales.d.ts +0 -301
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/index.d.ts +0 -4
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export interface MultiLanguageText {
|
|
3
|
-
en: string;
|
|
4
|
-
'zh-CN': string;
|
|
5
|
-
'zh-HK': string;
|
|
6
|
-
original: string;
|
|
7
|
-
}
|
|
8
|
-
export interface BaseItem {
|
|
9
|
-
id: number;
|
|
10
|
-
name: string | MultiLanguageText;
|
|
11
|
-
code: string;
|
|
12
|
-
order?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface SettingItem extends BaseItem {
|
|
15
|
-
key?: string;
|
|
16
|
-
scopes?: string[];
|
|
17
|
-
groupId?: number;
|
|
18
|
-
group_id?: number;
|
|
19
|
-
fieldType?: string;
|
|
20
|
-
type?: string;
|
|
21
|
-
interfaceType?: string;
|
|
22
|
-
interface?: string;
|
|
23
|
-
description?: string | MultiLanguageText;
|
|
24
|
-
systemDefaultValue?: string;
|
|
25
|
-
default?: string;
|
|
26
|
-
uiSchema?: string;
|
|
27
|
-
schema?: any;
|
|
28
|
-
title?: string | MultiLanguageText;
|
|
29
|
-
sort: number;
|
|
30
|
-
created_at?: string | null;
|
|
31
|
-
updated_at?: string | null;
|
|
32
|
-
deleted_at?: string | null;
|
|
33
|
-
}
|
|
34
|
-
export interface SettingGroup extends BaseItem {
|
|
35
|
-
items: SettingItem[];
|
|
36
|
-
expanded?: boolean;
|
|
37
|
-
sort: number;
|
|
38
|
-
}
|
|
39
|
-
export interface Section extends BaseItem {
|
|
40
|
-
icon?: string;
|
|
41
|
-
description?: string | MultiLanguageText;
|
|
42
|
-
groups: SettingGroup[];
|
|
43
|
-
created_at?: string | null;
|
|
44
|
-
updated_at?: string | null;
|
|
45
|
-
deleted_at?: string | null;
|
|
46
|
-
}
|
|
47
|
-
export interface TreeNode {
|
|
48
|
-
key: string;
|
|
49
|
-
type: 'group' | 'item';
|
|
50
|
-
data: SettingGroup | SettingItem;
|
|
51
|
-
children?: TreeNode[];
|
|
52
|
-
parentKey?: string;
|
|
53
|
-
}
|
|
54
|
-
export declare type OperationType = 'add' | 'edit' | 'delete';
|
|
55
|
-
export interface DragItem {
|
|
56
|
-
id: number;
|
|
57
|
-
type: 'group' | 'item';
|
|
58
|
-
groupId?: number;
|
|
59
|
-
}
|
|
60
|
-
export interface RegistryProps {
|
|
61
|
-
className?: string;
|
|
62
|
-
style?: CSSProperties;
|
|
63
|
-
sections?: Section[];
|
|
64
|
-
selectedSectionId?: number;
|
|
65
|
-
onSectionSelect?: (sectionId: number) => void;
|
|
66
|
-
onDataChange?: (sections: Section[]) => void;
|
|
67
|
-
}
|
|
68
|
-
export interface SectionListProps {
|
|
69
|
-
sections: Section[];
|
|
70
|
-
selectedSectionId?: number;
|
|
71
|
-
onSectionSelect: (sectionId: number) => void;
|
|
72
|
-
loading?: boolean;
|
|
73
|
-
hasMore?: boolean;
|
|
74
|
-
onLoadMore?: () => void;
|
|
75
|
-
}
|
|
76
|
-
export interface SettingsTableProps {
|
|
77
|
-
section?: Section;
|
|
78
|
-
groupList?: SettingGroup[];
|
|
79
|
-
groupLoading?: boolean;
|
|
80
|
-
onDataChange?: (section: Section) => void;
|
|
81
|
-
onEditGroup?: (group: SettingGroup) => void;
|
|
82
|
-
onDeleteGroup?: (groupId: number) => void;
|
|
83
|
-
onAddItem?: (groupId: number) => void;
|
|
84
|
-
onEditItem?: (item: SettingItem) => void;
|
|
85
|
-
onDeleteItem?: (itemId: number) => void;
|
|
86
|
-
onGroupReorder?: (groupIds: number[]) => void;
|
|
87
|
-
onItemMove?: (itemId: number, targetGroupId: number, newOrder: number) => void;
|
|
88
|
-
}
|
|
89
|
-
export interface GroupFormData {
|
|
90
|
-
title: MultiLanguageText;
|
|
91
|
-
code: string;
|
|
92
|
-
}
|
|
93
|
-
export interface ItemFormData {
|
|
94
|
-
name: MultiLanguageText;
|
|
95
|
-
key: string;
|
|
96
|
-
fieldType: string;
|
|
97
|
-
interfaceType?: string;
|
|
98
|
-
scopes: string[];
|
|
99
|
-
description?: MultiLanguageText;
|
|
100
|
-
default?: string | null;
|
|
101
|
-
uiSchema?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface GroupModalProps {
|
|
104
|
-
open: boolean;
|
|
105
|
-
type: OperationType;
|
|
106
|
-
data?: SettingGroup;
|
|
107
|
-
onOk: (data: GroupFormData) => void | Promise<void>;
|
|
108
|
-
onCancel: () => void;
|
|
109
|
-
}
|
|
110
|
-
export interface ItemModalProps {
|
|
111
|
-
open: boolean;
|
|
112
|
-
type: OperationType;
|
|
113
|
-
data?: SettingItem;
|
|
114
|
-
section?: Section;
|
|
115
|
-
onOk: (data: ItemFormData) => void | Promise<void>;
|
|
116
|
-
onCancel: () => void;
|
|
117
|
-
}
|
|
118
|
-
export interface ApiResponse<T> {
|
|
119
|
-
data: T[];
|
|
120
|
-
meta: {
|
|
121
|
-
count: number;
|
|
122
|
-
page: number;
|
|
123
|
-
pageSize: number;
|
|
124
|
-
totalPage: number;
|
|
125
|
-
};
|
|
126
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 类型验证工具函数
|
|
3
|
-
* 用于验证默认值是否符合指定的字段类型
|
|
4
|
-
*/
|
|
5
|
-
export interface ValidationResult {
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
error?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 根据字段类型验证默认值
|
|
11
|
-
*/
|
|
12
|
-
export declare const validateDefaultValue: (fieldType: string, defaultValue: any) => ValidationResult;
|
|
13
|
-
/**
|
|
14
|
-
* 解析默认值为对应的类型
|
|
15
|
-
*/
|
|
16
|
-
export declare const parseDefaultValue: (fieldType: string, defaultValue: any) => any;
|