@pisell/private-materials 3.4.51 → 3.4.53

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 (128) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/booking/addons/model.d.ts +10 -1
  12. package/es/components/booking/forms/model.d.ts +10 -1
  13. package/es/components/booking/info/model.d.ts +10 -1
  14. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  16. package/es/components/booking/model.d.ts +9 -1
  17. package/es/components/booking/notes/model.d.ts +10 -1
  18. package/es/components/booking/payments/model.d.ts +10 -1
  19. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  20. package/es/components/eftposPay/payo/config.js +70 -32
  21. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  22. package/es/components/eftposPay/payo/payment.js +579 -0
  23. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  24. package/es/components/eftposPay/utils/log/index.js +371 -0
  25. package/es/components/index.d.ts +2 -1
  26. package/es/components/index.js +2 -1
  27. package/es/components/pay/toC/model.d.ts +9 -1
  28. package/es/components/schedules/model.d.ts +9 -1
  29. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  30. package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
  31. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  32. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  33. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  34. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  35. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  36. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  37. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  38. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  39. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  40. package/es/components/systemSettings/registry/components/index.js +4 -0
  41. package/es/components/systemSettings/registry/index.d.ts +5 -0
  42. package/es/components/systemSettings/registry/index.js +1059 -0
  43. package/es/components/systemSettings/registry/index.less +410 -0
  44. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  45. package/es/components/systemSettings/registry/locales.js +300 -0
  46. package/es/components/systemSettings/registry/services.d.ts +77 -0
  47. package/es/components/systemSettings/registry/services.js +472 -0
  48. package/es/components/systemSettings/registry/types.d.ts +126 -0
  49. package/es/components/systemSettings/registry/types.js +1 -0
  50. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  51. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  52. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  53. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  54. package/es/components/wallet/Detail/model.d.ts +13 -1
  55. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  56. package/es/components/wallet/PointCard/model.d.ts +13 -1
  57. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  58. package/es/components/wallet/Voucher/model.d.ts +13 -1
  59. package/es/components/wallet/model.d.ts +9 -1
  60. package/es/index.d.ts +2 -0
  61. package/es/index.js +3 -1
  62. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  63. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  64. package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
  65. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  66. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  67. package/es/plus/walletPassGallery/index.js +3 -1
  68. package/es/pro/Login2.0/index.less +15 -8
  69. package/lib/components/booking/addons/model.d.ts +10 -1
  70. package/lib/components/booking/forms/model.d.ts +10 -1
  71. package/lib/components/booking/info/model.d.ts +10 -1
  72. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  73. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  74. package/lib/components/booking/model.d.ts +9 -1
  75. package/lib/components/booking/notes/model.d.ts +10 -1
  76. package/lib/components/booking/payments/model.d.ts +10 -1
  77. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  78. package/lib/components/eftposPay/payo/config.js +98 -73
  79. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  80. package/lib/components/eftposPay/payo/payment.js +357 -0
  81. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  82. package/lib/components/eftposPay/utils/log/index.js +294 -0
  83. package/lib/components/index.d.ts +2 -1
  84. package/lib/components/index.js +3 -0
  85. package/lib/components/pay/toC/model.d.ts +9 -1
  86. package/lib/components/schedules/model.d.ts +9 -1
  87. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  88. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  89. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  90. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  91. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  92. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  93. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  94. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  95. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  96. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  97. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  98. package/lib/components/systemSettings/registry/components/index.js +48 -0
  99. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  100. package/lib/components/systemSettings/registry/index.js +529 -0
  101. package/lib/components/systemSettings/registry/index.less +410 -0
  102. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  103. package/lib/components/systemSettings/registry/locales.js +324 -0
  104. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  105. package/lib/components/systemSettings/registry/services.js +290 -0
  106. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  107. package/lib/components/systemSettings/registry/types.js +17 -0
  108. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  109. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  110. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  111. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  112. package/lib/components/wallet/Detail/model.d.ts +13 -1
  113. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  114. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  115. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  116. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  117. package/lib/components/wallet/model.d.ts +9 -1
  118. package/lib/index.d.ts +2 -0
  119. package/lib/index.js +6 -0
  120. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  121. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  122. package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
  123. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  124. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  125. package/lib/plus/walletPassGallery/index.js +3 -1
  126. package/lib/pro/Login2.0/index.less +15 -8
  127. package/lowcode/settings-registry/meta.ts +29 -0
  128. package/package.json +4 -4
@@ -0,0 +1,284 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ /**
3
+ * 类型验证工具函数
4
+ * 用于验证默认值是否符合指定的字段类型
5
+ */
6
+
7
+ /**
8
+ * 验证字符串类型
9
+ */
10
+ var validateString = function validateString(value) {
11
+ if (value === null || value === undefined || value === '') {
12
+ return {
13
+ isValid: true
14
+ };
15
+ }
16
+ if (typeof value === 'string') {
17
+ return {
18
+ isValid: true
19
+ };
20
+ }
21
+ return {
22
+ isValid: false,
23
+ error: '默认值必须是字符串类型'
24
+ };
25
+ };
26
+
27
+ /**
28
+ * 验证整数类型
29
+ */
30
+ var validateInteger = function validateInteger(value) {
31
+ if (value === null || value === undefined || value === '') {
32
+ return {
33
+ isValid: true
34
+ };
35
+ }
36
+
37
+ // 如果是数字,检查是否为整数
38
+ if (typeof value === 'number') {
39
+ if (!Number.isInteger(value)) {
40
+ return {
41
+ isValid: false,
42
+ error: '默认值必须是整数'
43
+ };
44
+ }
45
+ return {
46
+ isValid: true
47
+ };
48
+ }
49
+
50
+ // 如果是字符串,尝试转换
51
+ if (typeof value === 'string') {
52
+ var trimmed = value.trim();
53
+ if (trimmed === '') {
54
+ return {
55
+ isValid: true
56
+ };
57
+ }
58
+ var num = Number(trimmed);
59
+ if (isNaN(num) || !Number.isInteger(num)) {
60
+ return {
61
+ isValid: false,
62
+ error: '默认值必须是有效的整数'
63
+ };
64
+ }
65
+ return {
66
+ isValid: true
67
+ };
68
+ }
69
+ return {
70
+ isValid: false,
71
+ error: '默认值必须是有效的整数'
72
+ };
73
+ };
74
+
75
+ /**
76
+ * 验证浮点数类型
77
+ */
78
+ var validateFloat = function validateFloat(value) {
79
+ if (value === null || value === undefined || value === '') {
80
+ return {
81
+ isValid: true
82
+ };
83
+ }
84
+
85
+ // 如果是数字,检查是否有效
86
+ if (typeof value === 'number') {
87
+ if (!isFinite(value)) {
88
+ return {
89
+ isValid: false,
90
+ error: '默认值必须是有效的数字'
91
+ };
92
+ }
93
+ return {
94
+ isValid: true
95
+ };
96
+ }
97
+
98
+ // 如果是字符串,尝试转换
99
+ if (typeof value === 'string') {
100
+ var trimmed = value.trim();
101
+ if (trimmed === '') {
102
+ return {
103
+ isValid: true
104
+ };
105
+ }
106
+ var num = Number(trimmed);
107
+ if (isNaN(num) || !isFinite(num)) {
108
+ return {
109
+ isValid: false,
110
+ error: '默认值必须是有效的数字'
111
+ };
112
+ }
113
+ return {
114
+ isValid: true
115
+ };
116
+ }
117
+ return {
118
+ isValid: false,
119
+ error: '默认值必须是有效的数字'
120
+ };
121
+ };
122
+
123
+ /**
124
+ * 验证布尔类型
125
+ */
126
+ var validateBoolean = function validateBoolean(value) {
127
+ if (value === null || value === undefined || value === '') {
128
+ return {
129
+ isValid: true
130
+ };
131
+ }
132
+
133
+ // 如果是字符串,只接受 'true' 或 'false'
134
+ if (typeof value === 'string') {
135
+ var trimmed = value.trim().toLowerCase();
136
+ if (trimmed === '') {
137
+ return {
138
+ isValid: true
139
+ };
140
+ }
141
+ if (trimmed !== 'true' && trimmed !== 'false') {
142
+ return {
143
+ isValid: false,
144
+ error: '默认值必须是 true 或 false'
145
+ };
146
+ }
147
+ return {
148
+ isValid: true
149
+ };
150
+ }
151
+
152
+ // 如果是布尔类型
153
+ if (typeof value === 'boolean') {
154
+ return {
155
+ isValid: true
156
+ };
157
+ }
158
+ return {
159
+ isValid: false,
160
+ error: '默认值必须是 true 或 false'
161
+ };
162
+ };
163
+
164
+ /**
165
+ * 验证数组类型(JSON对象/数组)
166
+ */
167
+ var validateArray = function validateArray(value) {
168
+ if (value === null || value === undefined || value === '') {
169
+ return {
170
+ isValid: true
171
+ };
172
+ }
173
+
174
+ // 如果是字符串,尝试解析为JSON
175
+ if (typeof value === 'string') {
176
+ var trimmed = value.trim();
177
+ if (trimmed === '') {
178
+ return {
179
+ isValid: true
180
+ };
181
+ }
182
+ try {
183
+ var parsed = JSON.parse(trimmed);
184
+ // 检查解析后的值是否为对象或数组
185
+ if (_typeof(parsed) !== 'object' || parsed === null) {
186
+ return {
187
+ isValid: false,
188
+ error: '默认值必须是有效的JSON对象或数组'
189
+ };
190
+ }
191
+ return {
192
+ isValid: true
193
+ };
194
+ } catch (error) {
195
+ return {
196
+ isValid: false,
197
+ error: '默认值必须是有效的JSON对象或数组'
198
+ };
199
+ }
200
+ }
201
+
202
+ // 如果是对象或数组
203
+ if (_typeof(value) === 'object' && value !== null) {
204
+ return {
205
+ isValid: true
206
+ };
207
+ }
208
+ return {
209
+ isValid: false,
210
+ error: '默认值必须是有效的JSON对象或数组'
211
+ };
212
+ };
213
+
214
+ /**
215
+ * 根据字段类型验证默认值
216
+ */
217
+ export var validateDefaultValue = function validateDefaultValue(fieldType, defaultValue) {
218
+ if (!fieldType) {
219
+ return {
220
+ isValid: false,
221
+ error: '字段类型不能为空'
222
+ };
223
+ }
224
+ switch (fieldType.toLowerCase()) {
225
+ case 'string':
226
+ return validateString(defaultValue);
227
+ case 'integer':
228
+ return validateInteger(defaultValue);
229
+ case 'float':
230
+ return validateFloat(defaultValue);
231
+ case 'boolean':
232
+ return validateBoolean(defaultValue);
233
+ case 'array':
234
+ return validateArray(defaultValue);
235
+ default:
236
+ return {
237
+ isValid: false,
238
+ error: "\u4E0D\u652F\u6301\u7684\u5B57\u6BB5\u7C7B\u578B: ".concat(fieldType)
239
+ };
240
+ }
241
+ };
242
+
243
+ /**
244
+ * 解析默认值为对应的类型
245
+ */
246
+ export var parseDefaultValue = function parseDefaultValue(fieldType, defaultValue) {
247
+ if (defaultValue === null || defaultValue === undefined || defaultValue === '') {
248
+ return null;
249
+ }
250
+ switch (fieldType.toLowerCase()) {
251
+ case 'string':
252
+ return String(defaultValue);
253
+ case 'integer':
254
+ if (typeof defaultValue === 'string') {
255
+ var trimmed = defaultValue.trim();
256
+ if (trimmed === '') return null;
257
+ return parseInt(trimmed, 10);
258
+ }
259
+ return defaultValue;
260
+ case 'float':
261
+ if (typeof defaultValue === 'string') {
262
+ var _trimmed = defaultValue.trim();
263
+ if (_trimmed === '') return null;
264
+ return parseFloat(_trimmed);
265
+ }
266
+ return defaultValue;
267
+ case 'boolean':
268
+ if (typeof defaultValue === 'string') {
269
+ var _trimmed2 = defaultValue.trim().toLowerCase();
270
+ if (_trimmed2 === '') return null;
271
+ return _trimmed2 === 'true';
272
+ }
273
+ return Boolean(defaultValue);
274
+ case 'array':
275
+ if (typeof defaultValue === 'string') {
276
+ var _trimmed3 = defaultValue.trim();
277
+ if (_trimmed3 === '') return null;
278
+ return JSON.parse(_trimmed3);
279
+ }
280
+ return defaultValue;
281
+ default:
282
+ return defaultValue;
283
+ }
284
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 验证器工具函数
3
+ */
4
+ /**
5
+ * 创建带前缀的应用标识符验证器
6
+ * 用于验证设置项的键格式
7
+ */
8
+ export declare const createPrefixedAppIdentifierValidator: (sectionCode: string) => (_: any, value: string) => Promise<void>;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * 验证器工具函数
3
+ */
4
+
5
+ /**
6
+ * 创建带前缀的应用标识符验证器
7
+ * 用于验证设置项的键格式
8
+ */
9
+ export var createPrefixedAppIdentifierValidator = function createPrefixedAppIdentifierValidator(sectionCode) {
10
+ return function (_, value) {
11
+ if (!value) {
12
+ return Promise.resolve();
13
+ }
14
+
15
+ // 检查是否以section code开头
16
+ var expectedPrefix = "".concat(sectionCode, ".");
17
+ if (!value.startsWith(expectedPrefix)) {
18
+ return Promise.reject(new Error("\u952E\u5FC5\u987B\u4EE5 \"".concat(expectedPrefix, "\" \u5F00\u5934")));
19
+ }
20
+
21
+ // 检查剩余部分的格式
22
+ var remainingPart = value.substring(expectedPrefix.length);
23
+ if (!remainingPart) {
24
+ return Promise.reject(new Error('键不能只包含前缀'));
25
+ }
26
+
27
+ // 验证格式:只能包含小写字母、数字、点、下划线
28
+ var validPattern = /^[a-z0-9._]+$/;
29
+ if (!validPattern.test(remainingPart)) {
30
+ return Promise.reject(new Error('键只能包含小写字母、数字、点、下划线'));
31
+ }
32
+
33
+ // 不能以点或下划线开头或结尾
34
+ if (remainingPart.startsWith('.') || remainingPart.startsWith('_') || remainingPart.endsWith('.') || remainingPart.endsWith('_')) {
35
+ return Promise.reject(new Error('键不能以点或下划线开头或结尾'));
36
+ }
37
+
38
+ // 不能包含连续的点或下划线
39
+ if (remainingPart.includes('..') || remainingPart.includes('__') || remainingPart.includes('._') || remainingPart.includes('_.')) {
40
+ return Promise.reject(new Error('键不能包含连续的点或下划线'));
41
+ }
42
+ return Promise.resolve();
43
+ };
44
+ };
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
package/es/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { default as TaxSelect } from './components/taxSelect';
22
22
  export { default as EftposPay } from './components/eftposPay';
23
23
  export { default as ToCPay } from './components/pay/toC';
24
24
  export { default as Eftpos } from './components/eftpos';
25
+ export { default as Wallet } from './components/wallet';
25
26
  export { default as WalletList } from './components/walletList';
26
27
  export { default as BookingDashboard } from './components/booking/dashboard';
27
28
  export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
@@ -56,3 +57,4 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
56
57
  export { Login2, Register2, AuthModal } from './pro/Login2.0';
57
58
  export { default as WalletEditor } from './plus/walletEditor';
58
59
  export { default as WalletPassGallery } from './plus/walletPassGallery';
60
+ export { default as SettingsRegistry } from './components/systemSettings/registry';
package/es/index.js CHANGED
@@ -26,6 +26,7 @@ export { default as TaxSelect } from "./components/taxSelect";
26
26
  export { default as EftposPay } from "./components/eftposPay";
27
27
  export { default as ToCPay } from "./components/pay/toC";
28
28
  export { default as Eftpos } from "./components/eftpos";
29
+ export { default as Wallet } from "./components/wallet";
29
30
  export { default as WalletList } from "./components/walletList";
30
31
  export { default as BookingDashboard } from "./components/booking/dashboard";
31
32
  export { default as PisellSelectCustomerModal } from "./components/pisellSelectCustomerModal";
@@ -58,4 +59,5 @@ export { default as ContactInfo } from "./plus/contactInfo";
58
59
  export { default as ContactInfoModal } from "./plus/contactInfoModal";
59
60
  export { Login2, Register2, AuthModal } from "./pro/Login2.0";
60
61
  export { default as WalletEditor } from "./plus/walletEditor";
61
- export { default as WalletPassGallery } from "./plus/walletPassGallery";
62
+ export { default as WalletPassGallery } from "./plus/walletPassGallery";
63
+ export { default as SettingsRegistry } from "./components/systemSettings/registry";
@@ -212,10 +212,7 @@ var FooterButtons = function FooterButtons(_ref) {
212
212
  className: "pisell-wallet-pass-gallery_footer-buttons-item pisell-wallet-pass-gallery_footer-buttons-item-primary"
213
213
  }, locales.getText('wallet-pass-gallery.recharge')));
214
214
  }
215
-
216
- // 根据按钮数量设置不同的类名
217
- var buttonCount = buttons.length;
218
- var className = "pisell-wallet-pass-gallery_footer-buttons pisell-wallet-pass-gallery_footer-buttons-count-".concat(buttonCount);
215
+ var className = "pisell-wallet-pass-gallery_footer-buttons";
219
216
  return buttons.length > 0 ? /*#__PURE__*/React.createElement("div", {
220
217
  className: className
221
218
  }, buttons) : null;
@@ -223,6 +220,7 @@ var FooterButtons = function FooterButtons(_ref) {
223
220
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
224
221
  className: "pisell-wallet-pass-gallery_footer"
225
222
  }, renderButtons()), /*#__PURE__*/React.createElement(PisellModal, {
223
+ destroyOnClose: true,
226
224
  platform: platform,
227
225
  mobileModalHeight: "auto",
228
226
  headerDivider: false,
@@ -1,83 +1,38 @@
1
1
  .pisell-wallet-pass-gallery_footer {
2
2
  position: relative;
3
- left: 0;
4
- right: 0;
5
- bottom: 0;
6
3
  background-color: #fff;
7
4
  padding: 24px;
8
5
  z-index: 100;
9
6
  border-top: 1px solid #d0d5de;
10
- margin-left: -20px;
11
- margin-right: -20px;
7
+ margin-left: -24px;
8
+ margin-right: -24px;
12
9
  &-buttons {
13
10
  display: flex;
14
11
  gap: 12px;
15
12
  width: 100%;
16
13
 
17
-
18
- .pisell-wallet-pass-gallery_footer-buttons-item-secondary{
19
- overflow: hidden;
20
- display: flex;
21
- >span{
22
- display: block;
23
- // width: 100%;
24
- flex:1;
14
+ .pisell-wallet-pass-gallery_footer-buttons-item-secondary {
15
+ overflow: hidden;
16
+ display: inline-block;
25
17
  white-space: nowrap;
26
18
  overflow: hidden;
27
19
  text-overflow: ellipsis;
28
20
  text-wrap: nowrap;
29
- }
30
- }
31
-
32
-
33
- // 按钮数量样式
34
- // 单个按钮占满宽度
35
- &-count-1 {
36
- .pisell-wallet-pass-gallery_footer-buttons-item {
37
- flex: 1;
38
- width: 100%;
39
- }
40
- }
41
-
42
- // 两个按钮各占一半
43
- &-count-2 {
44
- .pisell-wallet-pass-gallery_footer-buttons-item {
45
- flex: 1;
46
- width: calc(50% - 6px);
21
+ > span {
22
+ display: inline;
47
23
  }
48
24
  }
49
-
50
- // 三个按钮各占三分之一
51
- &-count-3 {
52
- .pisell-wallet-pass-gallery_footer-buttons-item {
53
- flex: 1;
54
- width: calc(33.33% - 8px);
55
- }
56
- }
57
-
58
- // 四个按钮各占四分之一
59
- &-count-4 {
60
- .pisell-wallet-pass-gallery_footer-buttons-item {
61
- flex: 1;
62
- width: calc(25% - 9px);
63
- }
64
- }
65
-
66
- // Ant Design按钮覆盖样式
67
- :global(.ant-btn) {
68
- height: 48px;
69
- border-radius: 6px;
70
- font-size: 16px;
71
- font-weight: 500;
72
- width: 100%;
25
+
26
+ .pisell-wallet-pass-gallery_footer-buttons-item {
27
+ flex-grow: 1;
73
28
  }
74
-
29
+
75
30
  &-item {
76
31
  // 修饰符:主按钮
77
32
  &-primary {
78
- background-color: var(--theme-color, #7F56D9);
33
+ background-color: var(--theme-color, #7f56d9);
79
34
  }
80
-
35
+
81
36
  // 修饰符:次按钮
82
37
  &-secondary {
83
38
  background-color: #fff;
@@ -90,4 +45,4 @@
90
45
 
91
46
  .pisell-wallet-pass-gallery_footer:empty {
92
47
  display: none;
93
- }
48
+ }
@@ -1,3 +1,7 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -198,7 +202,7 @@ var PassDetail = function PassDetail(props) {
198
202
  });
199
203
  };
200
204
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
201
- className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform))
205
+ className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform), _defineProperty({}, "pisell-wallet-pass-gallery_detail-with-footer", platform === 'h5' && tag === 'gift_card'))
202
206
  }, /*#__PURE__*/React.createElement("div", {
203
207
  className: "pisell-wallet-pass-gallery_detail-content",
204
208
  ref: containerRef
@@ -18,6 +18,10 @@
18
18
  padding: 20px 0px;
19
19
  }
20
20
 
21
+ &-with-footer {
22
+ height: calc(100% - 90px);
23
+ }
24
+
21
25
  .pisell-wallet-pass-gallery_detail-content {
22
26
  overflow-y: auto;
23
27
  height: 100%;