@pisell/private-materials 6.6.6 → 6.6.8

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 (121) 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/Footer/index.d.ts +1 -0
  8. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  9. package/es/components/booking/forms/table/index.d.ts +1 -0
  10. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  11. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  12. package/es/components/booking/info/service/like/index.d.ts +1 -0
  13. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  14. package/es/components/checkout/PaymentModal.js +15 -10
  15. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  16. package/es/components/eftpos/group/index.d.ts +1 -0
  17. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  18. package/es/components/eftpos/icon/device.d.ts +1 -0
  19. package/es/components/eftpos/receipt/index.d.ts +1 -0
  20. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  21. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  22. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  23. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  24. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  25. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  26. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  27. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  28. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  29. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  30. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  31. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  32. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  33. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  34. package/es/components/schedules/products/index.d.ts +1 -0
  35. package/es/plus/clientName/index.d.ts +1 -0
  36. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  37. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  38. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  39. package/lib/components/booking/forms/table/index.d.ts +1 -0
  40. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  41. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  42. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  43. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  44. package/lib/components/checkout/PaymentModal.js +5 -2
  45. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  46. package/lib/components/eftpos/group/index.d.ts +1 -0
  47. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  48. package/lib/components/eftpos/icon/device.d.ts +1 -0
  49. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  50. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  51. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  52. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  53. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  54. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  55. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  56. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  57. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  58. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  59. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  60. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  61. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  62. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  63. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  64. package/lib/components/schedules/products/index.d.ts +1 -0
  65. package/lib/plus/clientName/index.d.ts +1 -0
  66. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  67. package/package.json +4 -4
  68. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  69. package/es/components/pay/toC/locales.d.ts +0 -301
  70. package/es/components/pay/toC/status.d.ts +0 -13
  71. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  72. package/es/components/systemSettings/registry/services.d.ts +0 -77
  73. package/es/components/systemSettings/registry/types.d.ts +0 -126
  74. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  75. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  76. package/es/components/wallet/utils.d.ts +0 -48
  77. package/es/components/walletList/locales.d.ts +0 -27
  78. package/es/components/walletList/types/index.d.ts +0 -194
  79. package/es/plus/selectHolder/types.d.ts +0 -104
  80. package/es/plus/selectHolder/utils.d.ts +0 -9
  81. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  82. package/es/plus/walletEditor/locales.d.ts +0 -135
  83. package/es/plus/walletEditor/types.d.ts +0 -52
  84. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  85. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  86. package/es/pro/Login2.0/hooks/index.d.ts +0 -2
  87. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  88. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
  89. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
  90. package/es/pro/Login2.0/locales.d.ts +0 -543
  91. package/es/pro/Login2.0/shared/Header.d.ts +0 -11
  92. package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  93. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  94. package/es/pro/Login2.0/types.d.ts +0 -167
  95. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  96. package/lib/components/pay/toC/locales.d.ts +0 -301
  97. package/lib/components/pay/toC/status.d.ts +0 -13
  98. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  99. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  100. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  101. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  102. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  103. package/lib/components/wallet/utils.d.ts +0 -48
  104. package/lib/components/walletList/locales.d.ts +0 -27
  105. package/lib/components/walletList/types/index.d.ts +0 -194
  106. package/lib/plus/selectHolder/types.d.ts +0 -104
  107. package/lib/plus/selectHolder/utils.d.ts +0 -9
  108. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
  109. package/lib/plus/walletEditor/locales.d.ts +0 -135
  110. package/lib/plus/walletEditor/types.d.ts +0 -52
  111. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  112. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  113. package/lib/pro/Login2.0/hooks/index.d.ts +0 -2
  114. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
  115. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
  116. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
  117. package/lib/pro/Login2.0/locales.d.ts +0 -543
  118. package/lib/pro/Login2.0/shared/Header.d.ts +0 -11
  119. package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
  120. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  121. package/lib/pro/Login2.0/types.d.ts +0 -167
@@ -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;
@@ -1,8 +0,0 @@
1
- /**
2
- * 验证器工具函数
3
- */
4
- /**
5
- * 创建带前缀的应用标识符验证器
6
- * 用于验证设置项的键格式
7
- */
8
- export declare const createPrefixedAppIdentifierValidator: (sectionCode: string) => (_: any, value: string) => Promise<void>;
@@ -1,48 +0,0 @@
1
- interface ScheduleTextResult {
2
- validityTexts: string[];
3
- excluded_date: string[];
4
- included_date: string[];
5
- }
6
- declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
7
- interface ScheduleItem {
8
- id: number;
9
- name: string | {
10
- [key: string]: string;
11
- };
12
- type: 'standard' | 'time-slots' | 'designation';
13
- start_time: string | null;
14
- end_time: string | null;
15
- repeat_type: 'none' | 'daily' | 'weekly';
16
- repeat_rule: {
17
- end: {
18
- type: 'never' | 'date' | 'occurrence';
19
- end_date: string | null;
20
- occurrence: number | null;
21
- };
22
- frequency: number;
23
- excluded_date: Array<{
24
- start: string;
25
- end: string;
26
- }>;
27
- included_date: any[];
28
- frequency_date: number[];
29
- } | null;
30
- designation: Array<{
31
- start_date: string;
32
- start_time: string;
33
- end_date: string;
34
- end_time: string;
35
- }> | null;
36
- is_all: number;
37
- time_slot: Array<{
38
- start_time: string;
39
- end_time: string;
40
- }>;
41
- }
42
- /**
43
- * 根据scheduleList格式化文案展示
44
- * @param scheduleList 日程列表
45
- * @returns 格式化后的文案结果数组,每个日程对应一个结果
46
- */
47
- export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
48
- export {};
@@ -1,27 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'page.wallet.guide.title': string;
4
- 'page.wallet.guide.subtitle': string;
5
- 'page.wallet.guide.button': string;
6
- 'page.wallet.tempHolderSelector.title': string;
7
- 'page.wallet.tempHolderSelector.create': string;
8
- 'page.wallet.tempHolderSelector.confirm': string;
9
- };
10
- 'zh-CN': {
11
- 'page.wallet.guide.title': string;
12
- 'page.wallet.guide.subtitle': string;
13
- 'page.wallet.guide.button': string;
14
- 'page.wallet.tempHolderSelector.title': string;
15
- 'page.wallet.tempHolderSelector.create': string;
16
- 'page.wallet.tempHolderSelector.confirm': string;
17
- };
18
- 'zh-HK': {
19
- 'page.wallet.guide.title': string;
20
- 'page.wallet.guide.subtitle': string;
21
- 'page.wallet.guide.button': string;
22
- 'page.wallet.tempHolderSelector.title': string;
23
- 'page.wallet.tempHolderSelector.create': string;
24
- 'page.wallet.tempHolderSelector.confirm': string;
25
- };
26
- };
27
- export default _default;
@@ -1,194 +0,0 @@
1
- import React from 'react';
2
- export interface MultiLanguageName {
3
- original: string;
4
- 'zh-CN': string;
5
- 'zh-HK': string;
6
- en: string;
7
- [key: string]: string;
8
- }
9
- declare type WalletPassType = 'rechargeable' | 'point' | 'voucher' | 'discount';
10
- export interface WalletMetadata {
11
- name: MultiLanguageName;
12
- welcomeText?: string | MultiLanguageName;
13
- customerName?: string;
14
- coverImage?: string;
15
- icon?: string;
16
- showcaseWalletPassNew?: Array<{
17
- type: WalletPassType;
18
- custom_title?: string | MultiLanguageName;
19
- display?: 0 | 1;
20
- }>;
21
- }
22
- export interface Shop {
23
- id: number;
24
- name: string;
25
- default_url: string;
26
- }
27
- export interface Wallet {
28
- id: string | null;
29
- shop_id: string | null;
30
- shop?: Shop;
31
- status: string | null;
32
- name: MultiLanguageName;
33
- valid_for: {
34
- type: string;
35
- unit?: string;
36
- unit_type?: string;
37
- custom_date?: string;
38
- };
39
- metadata: WalletMetadata;
40
- created_at: string | null;
41
- }
42
- export interface WalletPass {
43
- id: string | null;
44
- shop_id: string | null;
45
- code: string;
46
- status: string | null;
47
- wallet_id: string | null;
48
- customer_id: string | null;
49
- expired_at: string | null;
50
- created_at: string;
51
- shop: Shop;
52
- wallet: Wallet;
53
- icon?: string;
54
- isLogin?: boolean;
55
- showIcon?: boolean;
56
- }
57
- export interface WalletBalance {
58
- gift_card_balance: number;
59
- point_card_balance: number;
60
- voucher_count: number;
61
- discount_card_count: number;
62
- }
63
- export interface WalletCardItem {
64
- type: WalletPassType;
65
- custom_title?: string | MultiLanguageName;
66
- display: 0 | 1;
67
- value?: number;
68
- }
69
- export interface State {
70
- list: WalletPass[];
71
- balance: WalletBalance | null;
72
- loading: boolean;
73
- error: Error | null;
74
- authError?: boolean;
75
- hasAttempted: boolean;
76
- isLoggedIn?: boolean;
77
- }
78
- export interface Action {
79
- type: string;
80
- payload: Partial<State>;
81
- }
82
- export interface Balance {
83
- gift_card_balance: number;
84
- point_card_balance: number;
85
- voucher_count: number;
86
- discount_card_count: number;
87
- }
88
- export interface IWallList {
89
- tag?: string;
90
- sales_status?: string;
91
- machine_search?: string;
92
- createdDate?: string;
93
- limit_status?: string;
94
- relation_id?: string;
95
- relation_type?: string;
96
- customer_id?: string;
97
- sort?: string;
98
- order_by?: string;
99
- used_status?: string;
100
- num?: number;
101
- skip?: number;
102
- }
103
- export interface WalletListProps {
104
- globalState?: {
105
- platform?: 'pc' | 'h5' | 'ipad';
106
- mode?: 'dark' | 'light';
107
- cardStyle?: 'normal' | 'full';
108
- codeType?: 'barCode' | 'qrCode';
109
- codeDirection?: 'bottom' | 'top';
110
- shopName?: boolean;
111
- showWalletName?: boolean;
112
- showShopName?: boolean;
113
- cardNo?: string;
114
- showCardNo?: boolean;
115
- showCode?: boolean;
116
- points?: boolean;
117
- balance?: boolean;
118
- coupon?: boolean;
119
- pointsValue?: number;
120
- balanceValue?: number;
121
- couponValue?: number;
122
- symbol?: string;
123
- showIcon?: boolean;
124
- iconImg?: string;
125
- customBackgroundImage?: string;
126
- walletName?: string;
127
- };
128
- }
129
- export interface WalletCardProps {
130
- platform?: 'pc' | 'h5' | 'ipad';
131
- mode?: 'dark' | 'light';
132
- cardStyle?: 'normal' | 'full';
133
- codeType?: 'barCode' | 'qrCode';
134
- codeDirection?: 'bottom' | 'top';
135
- shopName?: boolean;
136
- showIcon?: boolean;
137
- iconImg?: string;
138
- showWalletName?: boolean;
139
- showShopName?: boolean;
140
- cardNo?: string;
141
- showCardNo?: boolean;
142
- showCode?: boolean;
143
- points?: boolean;
144
- balance?: boolean;
145
- coupon?: boolean;
146
- pointsValue?: number;
147
- balanceValue?: number;
148
- couponValue?: number;
149
- isLogin?: boolean;
150
- items: WalletCardItem[];
151
- }
152
- export interface DivProps extends React.HTMLAttributes<HTMLDivElement> {
153
- children?: React.ReactNode;
154
- }
155
- export interface WalletListContextType {
156
- state: State;
157
- dispatch: React.Dispatch<Action>;
158
- }
159
- export declare const DEFAULT_CARD_CONFIG: {
160
- readonly mode: "light";
161
- readonly cardStyle: "normal";
162
- readonly codeDirection: "bottom";
163
- readonly showShopName: true;
164
- readonly showWalletName: true;
165
- readonly showIcon: true;
166
- readonly iconImg: "";
167
- readonly showCardNo: true;
168
- readonly showCode: true;
169
- readonly points: true;
170
- readonly balance: true;
171
- readonly coupon: true;
172
- };
173
- export interface CarouselSettings {
174
- className: string;
175
- arrows: boolean;
176
- infinite: boolean;
177
- slidesToShow: number;
178
- slidesToScroll: number;
179
- centerMode: boolean;
180
- centerPadding: string;
181
- autoplay: boolean;
182
- autoplaySpeed: number;
183
- dots: boolean;
184
- appendDots?: (dots: React.ReactNode) => React.ReactNode;
185
- responsive?: Array<{
186
- breakpoint: number;
187
- settings: {
188
- slidesToShow: number;
189
- slidesToScroll: number;
190
- centerPadding: string;
191
- };
192
- }>;
193
- }
194
- export {};
@@ -1,104 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * @title: 选项数据类型
4
- * @description:
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2025-10-11 14:18
8
- */
9
- export interface HolderOption {
10
- /** 显示的标签文本 */
11
- label: string;
12
- /** 选项的值(唯一标识) */
13
- value: any;
14
- /** 头像地址 */
15
- avatar?: string;
16
- /** 副标题/描述 */
17
- subtitle?: string;
18
- /** 其他字段 */
19
- [key: string]: any;
20
- }
21
- /**
22
- * @title: 模态框配置
23
- * @description:
24
- * @return {*}
25
- * @Author: WangHan
26
- * @Date: 2025-10-10 14:32
27
- */
28
- export interface HolderModalProps {
29
- title?: string;
30
- confirmText?: string;
31
- showClose?: boolean;
32
- }
33
- /**
34
- * @title: 字段展示配置
35
- * @description:
36
- * @return {*}
37
- * @Author: WangHan
38
- * @Date: 2025-10-10 14:32
39
- */
40
- export interface HolderDisplayProps {
41
- showAvatar?: boolean;
42
- showTitle?: boolean;
43
- showSubtitle?: boolean;
44
- isSkipable?: boolean;
45
- direction?: 'horizontal' | 'vertical';
46
- selectType?: 'single' | 'multiple';
47
- showExtraFields?: boolean;
48
- extraFields?: any[];
49
- }
50
- /**
51
- * @title: SelectHolder 组件属性
52
- * @description:
53
- * @return {*}
54
- * @Author: WangHan
55
- * @Date: 2025-10-11 14:18
56
- */
57
- export interface PisellSelectHolderProps {
58
- /** 选项列表 */
59
- dataSource?: HolderOption[];
60
- /** 是否打开模态框 */
61
- open?: boolean;
62
- /** 关闭事件(右上角 X 按钮) */
63
- onClose?: () => void;
64
- /** 确认事件,返回选中的值 */
65
- onConfirm?: (selected: any) => void;
66
- /** 跳过事件(底部跳过按钮) */
67
- onSkip?: () => void;
68
- /** 点击添加按钮事件 */
69
- onAdd?: () => void;
70
- /** 当前选中的值(单选) 或 选中的值数组(多选) */
71
- value?: any;
72
- modalConfig?: HolderModalProps;
73
- displayConfig?: HolderDisplayProps;
74
- /** 是否禁用确认按钮 */
75
- disabled?: boolean;
76
- /** 错误提示文案 */
77
- errorTipText?: string;
78
- /** 是否显示添加按钮 */
79
- allowAdd?: boolean;
80
- /** 添加按钮文案 */
81
- addText?: string;
82
- /** 每行显示的列数 */
83
- columns?: number;
84
- /** 水平间距 */
85
- horizontalGap?: number;
86
- /** 垂直间距 */
87
- verticalGap?: number;
88
- /** 最大可选数量 */
89
- maxSelectedCount?: number;
90
- /** 是否内联模式(不显示弹窗,直接渲染内容,用于页面级别) */
91
- isInline?: boolean;
92
- /** 内联模式的容器样式类名 */
93
- className?: string;
94
- /** 内联模式的容器样式 */
95
- style?: React.CSSProperties;
96
- }
97
- export interface HolderItemProps {
98
- item: HolderOption;
99
- displayDirection?: 'horizontal' | 'vertical';
100
- displayConfig?: HolderDisplayProps;
101
- onClick?: (value?: any) => void;
102
- value?: any;
103
- isAddItem?: boolean;
104
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @title: 获取头像文本
3
- * @description: 获取头像文本(标签的首字母,最多两个单词)
4
- * @param {string} label
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2025-10-11 13:46
8
- */
9
- export declare const getAvatarText: (label: string) => string;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface JsonEditorProps {
3
- value?: any;
4
- onChange?: (value: any) => void;
5
- disabled?: boolean;
6
- placeholder?: string;
7
- rows?: number;
8
- style?: React.CSSProperties;
9
- }
10
- declare const JsonEditor: React.FC<JsonEditorProps>;
11
- export default JsonEditor;
@@ -1,135 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- walletName: string;
4
- validityPeriod: string;
5
- linkedPasses: string;
6
- linkedPassesDesc: string;
7
- sort: string;
8
- status: string;
9
- distributionConditions: string;
10
- selectPasses: string;
11
- backgroundImage: string;
12
- advancedSettings: string;
13
- sendConfig: string;
14
- displaySettings: string;
15
- viewPreview: string;
16
- coverImage: string;
17
- icon: string;
18
- upload: string;
19
- enable: string;
20
- disable: string;
21
- barCode: string;
22
- qrCode: string;
23
- day: string;
24
- days: string;
25
- month: string;
26
- months: string;
27
- year: string;
28
- years: string;
29
- forever: string;
30
- custom: string;
31
- balance: string;
32
- point: string;
33
- voucher: string;
34
- discount: string;
35
- rechargeable: string;
36
- pleaseInputWalletName: string;
37
- enterCoverImageURL: string;
38
- enterJSONConfig: string;
39
- selectValidityPeriod: string;
40
- selectCustomDate: string;
41
- registerToIssue: string;
42
- 'pisell2.wallet-editor.holder': string;
43
- 'pisell2.wallet-editor.holder.required': string;
44
- 'pisell2.wallet-editor.holder.invalid': string;
45
- };
46
- 'zh-CN': {
47
- walletName: string;
48
- validityPeriod: string;
49
- linkedPasses: string;
50
- linkedPassesDesc: string;
51
- sort: string;
52
- status: string;
53
- distributionConditions: string;
54
- selectPasses: string;
55
- backgroundImage: string;
56
- advancedSettings: string;
57
- sendConfig: string;
58
- displaySettings: string;
59
- viewPreview: string;
60
- coverImage: string;
61
- icon: string;
62
- upload: string;
63
- enable: string;
64
- disable: string;
65
- barCode: string;
66
- qrCode: string;
67
- day: string;
68
- days: string;
69
- month: string;
70
- months: string;
71
- year: string;
72
- years: string;
73
- forever: string;
74
- custom: string;
75
- balance: string;
76
- point: string;
77
- voucher: string;
78
- discount: string;
79
- rechargeable: string;
80
- pleaseInputWalletName: string;
81
- enterCoverImageURL: string;
82
- enterJSONConfig: string;
83
- selectValidityPeriod: string;
84
- selectCustomDate: string;
85
- registerToIssue: string;
86
- 'pisell2.wallet-editor.holder': string;
87
- 'pisell2.wallet-editor.holder.required': string;
88
- 'pisell2.wallet-editor.holder.invalid': string;
89
- };
90
- 'zh-HK': {
91
- walletName: string;
92
- validityPeriod: string;
93
- linkedPasses: string;
94
- linkedPassesDesc: string;
95
- sort: string;
96
- status: string;
97
- distributionConditions: string;
98
- selectPasses: string;
99
- backgroundImage: string;
100
- advancedSettings: string;
101
- sendConfig: string;
102
- displaySettings: string;
103
- viewPreview: string;
104
- coverImage: string;
105
- icon: string;
106
- upload: string;
107
- enable: string;
108
- disable: string;
109
- barCode: string;
110
- qrCode: string;
111
- day: string;
112
- days: string;
113
- month: string;
114
- months: string;
115
- year: string;
116
- years: string;
117
- forever: string;
118
- custom: string;
119
- balance: string;
120
- point: string;
121
- voucher: string;
122
- discount: string;
123
- rechargeable: string;
124
- pleaseInputWalletName: string;
125
- enterCoverImageURL: string;
126
- enterJSONConfig: string;
127
- selectValidityPeriod: string;
128
- selectCustomDate: string;
129
- registerToIssue: string;
130
- 'pisell2.wallet-editor.holder': string;
131
- 'pisell2.wallet-editor.holder.required': string;
132
- 'pisell2.wallet-editor.holder.invalid': string;
133
- };
134
- };
135
- export default _default;