@pisell/materials 3.3.73 → 3.3.74
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 +1 -1
- package/build/lowcode/preview.js +143 -143
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +24 -24
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +24 -24
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellWalletPassCard/index.d.ts +6 -0
- package/es/components/pisellWalletPassCard/index.js +70 -58
- package/es/components/pisellWalletPassCard/index.less +95 -34
- package/es/components/productCard/components/Time/components/SelectHolder/index.js +1 -0
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/walletCard/index.js +57 -9
- package/es/components/walletCard/index.less +63 -2
- package/es/locales/en-US.js +3 -1
- package/es/locales/zh-CN.js +3 -1
- package/es/locales/zh-TW.js +3 -0
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +6 -0
- package/lib/components/pisellWalletPassCard/index.js +52 -30
- package/lib/components/pisellWalletPassCard/index.less +95 -34
- package/lib/components/productCard/components/Time/components/SelectHolder/index.js +1 -0
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/walletCard/index.js +47 -7
- package/lib/components/walletCard/index.less +63 -2
- package/lib/locales/en-US.js +3 -1
- package/lib/locales/zh-CN.js +3 -1
- package/lib/locales/zh-TW.js +3 -0
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/cardPro/index.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -16
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
- package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Switch/WithMode.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/Switch/index.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -16
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/context.d.ts +0 -20
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellQrcode/index.d.ts +0 -10
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -84
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/types.d.ts +0 -268
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -11
- package/es/components/walletCard/index.d.ts +0 -71
- package/es/locales/en-US.d.ts +0 -291
- package/es/locales/zh-CN.d.ts +0 -286
- package/es/locales/zh-TW.d.ts +0 -286
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/cardPro/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -16
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -32
- package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Switch/WithMode.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/Switch/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -16
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -120
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -12
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/context.d.ts +0 -20
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellQrcode/index.d.ts +0 -10
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -84
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -11
- package/lib/components/walletCard/index.d.ts +0 -71
- package/lib/locales/en-US.d.ts +0 -291
- package/lib/locales/zh-CN.d.ts +0 -286
- package/lib/locales/zh-TW.d.ts +0 -286
|
@@ -8,6 +8,35 @@
|
|
|
8
8
|
position: relative;
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
|
|
11
|
+
.pisell-wallet-add-holder-mask {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
gap: 16px;
|
|
23
|
+
z-index: 9;
|
|
24
|
+
|
|
25
|
+
&-text {
|
|
26
|
+
color: #fff;
|
|
27
|
+
text-align: center;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 24px;
|
|
32
|
+
white-space: pre-line;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-button {
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
11
40
|
.actions-dropdown-trigger {
|
|
12
41
|
position: absolute;
|
|
13
42
|
top: 16px;
|
|
@@ -49,10 +78,15 @@
|
|
|
49
78
|
justify-content: space-between;
|
|
50
79
|
}
|
|
51
80
|
|
|
81
|
+
.pisell-card-name-info-wrap {
|
|
82
|
+
// 避免子组件 display: inline-block 产生的幽灵间距
|
|
83
|
+
font-size: 0px;
|
|
84
|
+
}
|
|
85
|
+
|
|
52
86
|
.pisell-card-name-wrap {
|
|
53
87
|
font-weight: 500;
|
|
54
88
|
line-height: 20px;
|
|
55
|
-
|
|
89
|
+
font-size: 14px;
|
|
56
90
|
white-space: nowrap;
|
|
57
91
|
overflow: hidden;
|
|
58
92
|
text-overflow: ellipsis;
|
|
@@ -64,6 +98,27 @@
|
|
|
64
98
|
}
|
|
65
99
|
}
|
|
66
100
|
|
|
101
|
+
.pisell-card-holder-name {
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
display: inline-block;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
padding: 2px 8px;
|
|
108
|
+
border-radius: 16px;
|
|
109
|
+
max-width: 60%;
|
|
110
|
+
height: 22px;
|
|
111
|
+
min-width: 50px;
|
|
112
|
+
text-align: center;
|
|
113
|
+
line-height: 16px;
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
font-style: normal;
|
|
116
|
+
font-weight: 500;
|
|
117
|
+
background-color: #475467;
|
|
118
|
+
color: white;
|
|
119
|
+
margin: 4px 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
67
122
|
.pisell-card-store-name {
|
|
68
123
|
height: 20px;
|
|
69
124
|
font-size: 12px;
|
|
@@ -74,30 +129,34 @@
|
|
|
74
129
|
text-overflow: ellipsis;
|
|
75
130
|
}
|
|
76
131
|
|
|
77
|
-
.pisell-card-amount-
|
|
132
|
+
.pisell-card-amount-item {
|
|
78
133
|
display: flex;
|
|
79
|
-
|
|
134
|
+
flex-direction: row;
|
|
135
|
+
align-items: center;
|
|
136
|
+
margin-right: 16px;
|
|
137
|
+
overflow: hidden;
|
|
80
138
|
|
|
81
|
-
.pisell-card-amount-item {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
139
|
+
.pisell-card-amount-item-label {
|
|
140
|
+
color: var(--Gray-500, #667085);
|
|
141
|
+
font-weight: 400;
|
|
142
|
+
line-height: 20px;
|
|
143
|
+
height: 20px;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pisell-card-amount-item-value {
|
|
148
|
+
font-size: 20px;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
line-height: 30px;
|
|
85
151
|
overflow: hidden;
|
|
152
|
+
text-overflow: ellipsis;
|
|
153
|
+
}
|
|
86
154
|
|
|
155
|
+
&-balance,
|
|
156
|
+
&-discount {
|
|
87
157
|
.pisell-card-amount-item-label {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
line-height: 20px;
|
|
91
|
-
height: 20px;
|
|
92
|
-
white-space: nowrap;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.pisell-card-amount-item-value {
|
|
96
|
-
font-size: 20px;
|
|
97
|
-
font-weight: 600;
|
|
98
|
-
line-height: 30px;
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
text-overflow: ellipsis;
|
|
158
|
+
transform: translateY(2px);
|
|
159
|
+
margin-right: 2px;
|
|
101
160
|
}
|
|
102
161
|
}
|
|
103
162
|
}
|
|
@@ -156,16 +215,18 @@
|
|
|
156
215
|
color: var(--Gray-500, #667085);
|
|
157
216
|
padding-bottom: 30px;
|
|
158
217
|
|
|
159
|
-
.pisell-card-amount-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
align-items: center;
|
|
218
|
+
.pisell-card-amount-item {
|
|
219
|
+
flex-direction: row;
|
|
220
|
+
align-items: center;
|
|
163
221
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
222
|
+
.pisell-card-amount-item-label {
|
|
223
|
+
transform: unset !important;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.pisell-card-amount-item-value {
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
font-weight: 400;
|
|
229
|
+
line-height: 20px;
|
|
169
230
|
}
|
|
170
231
|
}
|
|
171
232
|
|
|
@@ -200,10 +261,6 @@
|
|
|
200
261
|
line-height: 20px;
|
|
201
262
|
}
|
|
202
263
|
|
|
203
|
-
.pisell-card-amount-wrap {
|
|
204
|
-
display: block;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
264
|
.pisell-wallet-pass-card-redeem {
|
|
208
265
|
visibility: hidden;
|
|
209
266
|
flex-direction: row;
|
|
@@ -224,7 +281,7 @@
|
|
|
224
281
|
}
|
|
225
282
|
}
|
|
226
283
|
|
|
227
|
-
.pisell-
|
|
284
|
+
.pisell-card-amount-item-balance {
|
|
228
285
|
flex-direction: row;
|
|
229
286
|
align-items: center;
|
|
230
287
|
|
|
@@ -242,6 +299,10 @@
|
|
|
242
299
|
bottom: 16px;
|
|
243
300
|
right: 16px;
|
|
244
301
|
}
|
|
302
|
+
|
|
303
|
+
.pisell-card-warn-message {
|
|
304
|
+
padding: 6px 16px;
|
|
305
|
+
}
|
|
245
306
|
}
|
|
246
307
|
|
|
247
308
|
.pisell-wallet-pass-card-detail-modal,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const fieldMaps: {
|
|
2
3
|
text: {
|
|
3
4
|
field: {
|
|
@@ -197,12 +198,12 @@ export declare const fieldList: ({
|
|
|
197
198
|
field_icon: string;
|
|
198
199
|
field_name: string;
|
|
199
200
|
field_type: string;
|
|
200
|
-
default_value:
|
|
201
|
+
default_value: string;
|
|
201
202
|
} | {
|
|
202
203
|
field_icon: string;
|
|
203
204
|
field_name: string;
|
|
204
205
|
field_type: string;
|
|
205
|
-
default_value:
|
|
206
|
+
default_value: boolean;
|
|
206
207
|
} | {
|
|
207
208
|
field_icon: string;
|
|
208
209
|
field_name: string;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filters" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -62,6 +62,10 @@ var DEFAULT_PROPS = {
|
|
|
62
62
|
showCode: true,
|
|
63
63
|
walletName: "Level",
|
|
64
64
|
isLogin: true,
|
|
65
|
+
showHolderName: true,
|
|
66
|
+
holder: null,
|
|
67
|
+
onSetHolder: () => {
|
|
68
|
+
},
|
|
65
69
|
items: [
|
|
66
70
|
{
|
|
67
71
|
type: "rechargeable",
|
|
@@ -166,7 +170,9 @@ var CardHeader = ({
|
|
|
166
170
|
onCodeClick,
|
|
167
171
|
isLogin = false,
|
|
168
172
|
showViewPin = false,
|
|
169
|
-
onViewPinClick
|
|
173
|
+
onViewPinClick,
|
|
174
|
+
showHolderName,
|
|
175
|
+
holderName
|
|
170
176
|
}) => {
|
|
171
177
|
const processedShowIcon = toBooleanValue(showIcon);
|
|
172
178
|
const processedShowWalletName = toBooleanValue(showWalletName);
|
|
@@ -181,7 +187,7 @@ var CardHeader = ({
|
|
|
181
187
|
alt: "wallet icon",
|
|
182
188
|
style: { width: "20px", height: "20px" }
|
|
183
189
|
}
|
|
184
|
-
)) : null, processedShowWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), processedShowShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), processedShowCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo), processedShowViewPin && /* @__PURE__ */ import_react.default.createElement(
|
|
190
|
+
)) : null, processedShowWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), showHolderName && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-wallet-card-header-holder-name") }, holderName), processedShowShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), processedShowCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo), processedShowViewPin && /* @__PURE__ */ import_react.default.createElement(
|
|
185
191
|
"div",
|
|
186
192
|
{
|
|
187
193
|
className: "pisell-wallet-card-header-view-pin",
|
|
@@ -307,7 +313,10 @@ var WalletCard = (props) => {
|
|
|
307
313
|
onClick,
|
|
308
314
|
className,
|
|
309
315
|
style,
|
|
310
|
-
isGuide
|
|
316
|
+
isGuide,
|
|
317
|
+
showHolderName,
|
|
318
|
+
holder,
|
|
319
|
+
onSetHolder
|
|
311
320
|
} = mergedProps;
|
|
312
321
|
const showIcon = toBooleanValue(mergedProps.showIcon);
|
|
313
322
|
const showWalletName = toBooleanValue(mergedProps.showWalletName);
|
|
@@ -350,11 +359,13 @@ var WalletCard = (props) => {
|
|
|
350
359
|
if (!(items == null ? void 0 : items.length)) {
|
|
351
360
|
return;
|
|
352
361
|
}
|
|
362
|
+
const data = {
|
|
363
|
+
id: props.id,
|
|
364
|
+
holder_id: holder == null ? void 0 : holder.holder_id
|
|
365
|
+
};
|
|
353
366
|
utils == null ? void 0 : utils.action({
|
|
354
367
|
type: "pisell1.goWallet",
|
|
355
|
-
data
|
|
356
|
-
id: props.id
|
|
357
|
-
},
|
|
368
|
+
data,
|
|
358
369
|
callback: () => {
|
|
359
370
|
}
|
|
360
371
|
});
|
|
@@ -367,6 +378,32 @@ var WalletCard = (props) => {
|
|
|
367
378
|
console.error("onViewPinClick方法需要传入");
|
|
368
379
|
}
|
|
369
380
|
};
|
|
381
|
+
const _renderMask = () => {
|
|
382
|
+
if (typeof onSetHolder !== "function") return null;
|
|
383
|
+
if ((holder == null ? void 0 : holder.holder_type) === "form" && !(holder == null ? void 0 : holder.holder_id)) {
|
|
384
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-add-holder-mask" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-add-holder-mask-text" }, (0, import_locales.getText)("pisell2.wallet-card.add-holder-tip")), /* @__PURE__ */ import_react.default.createElement(
|
|
385
|
+
import_antd.Button,
|
|
386
|
+
{
|
|
387
|
+
type: "primary",
|
|
388
|
+
className: "pisell-wallet-add-holder-mask-button",
|
|
389
|
+
onClick: () => onSetHolder == null ? void 0 : onSetHolder()
|
|
390
|
+
},
|
|
391
|
+
(0, import_locales.getText)("pisell2.wallet-card.add-holder-button-text"),
|
|
392
|
+
/* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-user-edit", style: { fontSize: 16 } })
|
|
393
|
+
));
|
|
394
|
+
}
|
|
395
|
+
return null;
|
|
396
|
+
};
|
|
397
|
+
const _showHolderName = (0, import_react.useMemo)(() => {
|
|
398
|
+
return (holder == null ? void 0 : holder.holder_type) === "form" && showHolderName;
|
|
399
|
+
}, [holder, showHolderName]);
|
|
400
|
+
const holderName = (0, import_react.useMemo)(() => {
|
|
401
|
+
var _a2;
|
|
402
|
+
if ((holder == null ? void 0 : holder.holder_type) === "form" && !(holder == null ? void 0 : holder.holder_id)) {
|
|
403
|
+
return "--";
|
|
404
|
+
}
|
|
405
|
+
return ((_a2 = holder == null ? void 0 : holder.detail) == null ? void 0 : _a2.main_field) || "";
|
|
406
|
+
}, [holder]);
|
|
370
407
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
371
408
|
"div",
|
|
372
409
|
{
|
|
@@ -382,6 +419,7 @@ var WalletCard = (props) => {
|
|
|
382
419
|
flexDirection: codeDirection === "top" ? "column-reverse" : "column"
|
|
383
420
|
}
|
|
384
421
|
},
|
|
422
|
+
_renderMask(),
|
|
385
423
|
/* @__PURE__ */ import_react.default.createElement(
|
|
386
424
|
"div",
|
|
387
425
|
{
|
|
@@ -417,7 +455,9 @@ var WalletCard = (props) => {
|
|
|
417
455
|
onCodeClick: handleCodeClick,
|
|
418
456
|
isLogin,
|
|
419
457
|
showViewPin,
|
|
420
|
-
onViewPinClick
|
|
458
|
+
onViewPinClick,
|
|
459
|
+
showHolderName: _showHolderName,
|
|
460
|
+
holderName
|
|
421
461
|
}
|
|
422
462
|
),
|
|
423
463
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -9,6 +9,36 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
display: flex;
|
|
11
11
|
cursor: pointer;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pisell-wallet-add-holder-mask {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
gap: 16px;
|
|
27
|
+
z-index: 9;
|
|
28
|
+
|
|
29
|
+
&-text {
|
|
30
|
+
color: #fff;
|
|
31
|
+
text-align: center;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
line-height: 24px;
|
|
36
|
+
white-space: pre-line;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-button {
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
}
|
|
12
42
|
}
|
|
13
43
|
|
|
14
44
|
// 卡片内容区域
|
|
@@ -35,6 +65,12 @@
|
|
|
35
65
|
color: #fff;
|
|
36
66
|
}
|
|
37
67
|
}
|
|
68
|
+
|
|
69
|
+
.pisell-wallet-card-header-holder-name {
|
|
70
|
+
color: var(--Gray-900, #101828);
|
|
71
|
+
border: 1px solid var(--Gray-100, #f2f4f7);
|
|
72
|
+
background: var(--Gray-100, #f2f4f7);
|
|
73
|
+
}
|
|
38
74
|
}
|
|
39
75
|
|
|
40
76
|
// 亮色主题
|
|
@@ -54,6 +90,12 @@
|
|
|
54
90
|
color: #101828;
|
|
55
91
|
}
|
|
56
92
|
}
|
|
93
|
+
|
|
94
|
+
.pisell-wallet-card-header-holder-name {
|
|
95
|
+
color: #fff;
|
|
96
|
+
border: 1px solid var(--Gray-600, #475467);
|
|
97
|
+
background: var(--Gray-600, #475467);
|
|
98
|
+
}
|
|
57
99
|
}
|
|
58
100
|
}
|
|
59
101
|
|
|
@@ -66,6 +108,25 @@
|
|
|
66
108
|
display: flex;
|
|
67
109
|
justify-content: space-between;
|
|
68
110
|
align-items: flex-start;
|
|
111
|
+
min-height: 100px;
|
|
112
|
+
|
|
113
|
+
.pisell-wallet-card-header-holder-name {
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
display: inline-block;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
padding: 2px 8px;
|
|
120
|
+
border-radius: 16px;
|
|
121
|
+
height: 22px;
|
|
122
|
+
min-width: 50px;
|
|
123
|
+
text-align: center;
|
|
124
|
+
font-size: 12px;
|
|
125
|
+
line-height: 16px;
|
|
126
|
+
max-width: 100%;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-weight: 500;
|
|
129
|
+
}
|
|
69
130
|
|
|
70
131
|
// 头部左侧
|
|
71
132
|
.pisell-wallet-card-header-left {
|
|
@@ -78,7 +139,7 @@
|
|
|
78
139
|
display: flex;
|
|
79
140
|
align-items: center;
|
|
80
141
|
gap: 10px;
|
|
81
|
-
margin-bottom:
|
|
142
|
+
margin-bottom: 4px;
|
|
82
143
|
|
|
83
144
|
// 卡片名称文本
|
|
84
145
|
.pisell-wallet-card-header-level-text {
|
|
@@ -157,7 +218,7 @@
|
|
|
157
218
|
|
|
158
219
|
// 卡片内容列表
|
|
159
220
|
.pisell-wallet-card-list {
|
|
160
|
-
margin-top:
|
|
221
|
+
margin-top: unset;
|
|
161
222
|
height: 50px;
|
|
162
223
|
box-sizing: border-box;
|
|
163
224
|
display: flex;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -325,7 +325,9 @@ var en_US_default = {
|
|
|
325
325
|
"pisell-login-and-register-register-button-text": "Create account",
|
|
326
326
|
"pisell-login-and-register-remember-me": "Remember me",
|
|
327
327
|
"pisell-login-and-register-forgot-password": "Forgot password?",
|
|
328
|
-
//
|
|
328
|
+
// 钱包卡片组件
|
|
329
|
+
"pisell2.wallet-card.add-holder-tip": "To ensure your benefits, please\r\nassign a holder to activate this card.",
|
|
330
|
+
"pisell2.wallet-card.add-holder-button-text": "Set Holder",
|
|
329
331
|
"pisell2.text.goodpass.product-vouchers": "Promotions & Vouchers",
|
|
330
332
|
"pisell2.text.goodpass.last-settlement": "(Last payment)",
|
|
331
333
|
"pisell2.text.goodpass.view-more": "View More",
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -316,7 +316,9 @@ var zh_CN_default = {
|
|
|
316
316
|
"pisell-login-and-register-register-button-text": "创建账户",
|
|
317
317
|
"pisell-login-and-register-remember-me": "记住我",
|
|
318
318
|
"pisell-login-and-register-forgot-password": "忘记密码?",
|
|
319
|
-
//
|
|
319
|
+
// 钱包卡片组件
|
|
320
|
+
"pisell2.wallet-card.add-holder-tip": "为确保您的权益,此卡\r\n需指定使用人后方可激活使用。",
|
|
321
|
+
"pisell2.wallet-card.add-holder-button-text": "添加持有人",
|
|
320
322
|
"pisell2.text.goodpass.product-vouchers": "优惠促销",
|
|
321
323
|
"pisell2.text.goodpass.last-settlement": "(上次结算)",
|
|
322
324
|
"pisell2.text.goodpass.view-more": "查看更多",
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -318,6 +318,9 @@ var zh_TW_default = {
|
|
|
318
318
|
"pisell-login-and-register-register-button-text": "創建帳戶",
|
|
319
319
|
"pisell-login-and-register-remember-me": "記住我",
|
|
320
320
|
"pisell-login-and-register-forgot-password": "忘記密碼?",
|
|
321
|
+
// 钱包卡片组件
|
|
322
|
+
"pisell2.wallet-card.add-holder-tip": "為確保您的權益,此卡\r\n需指定使用人後方可激活使用。",
|
|
323
|
+
"pisell2.wallet-card.add-holder-button-text": "添加使用人",
|
|
321
324
|
"pisell2.text.goodpass.product-vouchers": "優惠促銷",
|
|
322
325
|
"pisell2.text.goodpass.last-settlement": "(上次結算)",
|
|
323
326
|
"pisell2.text.goodpass.view-more": "查看更多",
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.74",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
74
|
"react-camera-pro": "1.4.0",
|
|
75
75
|
"@pisell/date-picker": "3.0.3",
|
|
76
|
-
"@pisell/
|
|
77
|
-
"@pisell/
|
|
76
|
+
"@pisell/utils": "3.0.1",
|
|
77
|
+
"@pisell/icon": "0.0.11"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"react": "^18.0.0",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModeType } from '../../type';
|
|
3
|
-
export interface FormSettingContextType {
|
|
4
|
-
onDataSourceFinish?: (values: any, result: any, form: any) => void;
|
|
5
|
-
renderMode?: ModeType;
|
|
6
|
-
groupInfoPosition?: 'top' | 'side';
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
currentValue?: 'server' | 'local';
|
|
9
|
-
size?: 'small' | 'middle' | 'large';
|
|
10
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
11
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
12
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
13
|
-
beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
|
|
16
|
-
export default FormSettingContext;
|