@pisell/private-materials 6.3.100 → 6.3.102
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/booking/info/header/index.js +7 -7
- package/es/components/booking/info/header/index.less +5 -5
- package/es/components/ecocup/components/AddCustomerModal/index.js +3 -3
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
- package/es/components/ecocup/components/CupInfoCard/index.js +4 -2
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
- package/es/components/ecocup/components/CupStatusModal/hooks.js +109 -1
- package/es/components/ecocup/components/CupStatusModal/index.js +164 -30
- package/es/components/ecocup/components/CupStatusModal/index.less +48 -10
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
- package/es/components/ecocup/components/CustomerCard/index.d.ts +3 -1
- package/es/components/ecocup/components/CustomerCard/index.js +9 -6
- package/es/components/ecocup/components/PageHeader/index.d.ts +2 -0
- package/es/components/ecocup/components/PageHeader/index.js +15 -5
- package/es/components/ecocup/components/PageHeader/index.less +16 -4
- package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/es/components/ecocup/components/SearchBar/index.js +33 -3
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/components/SettingModal/const.js +17 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/es/components/ecocup/components/SettingModal/index.js +253 -0
- package/es/components/ecocup/components/SettingModal/index.less +9 -0
- package/es/components/ecocup/cupList/const.d.ts +8 -1
- package/es/components/ecocup/cupList/const.js +14 -1
- package/es/components/ecocup/cupList/hooks/index.d.ts +2 -2
- package/es/components/ecocup/cupList/hooks/index.js +2 -2
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
- package/es/components/ecocup/cupList/hooks/useColumns.js +4 -6
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
- package/es/components/ecocup/cupList/hooks/useCupApi.js +148 -8
- package/es/components/ecocup/cupList/hooks/useSummary.js +9 -7
- package/es/components/ecocup/cupList/index.js +60 -12
- package/es/components/ecocup/cupList/index.less +62 -16
- package/es/components/ecocup/cupProject/const.js +8 -2
- package/es/components/ecocup/cupProject/index.js +10 -1
- package/es/components/ecocup/hooks.d.ts +8 -0
- package/es/components/ecocup/hooks.js +29 -12
- package/es/components/ecocup/locales.d.ts +93 -3
- package/es/components/ecocup/locales.js +124 -25
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/download.js +34 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/index.js +2 -0
- package/es/hooks/useLocale.js +8 -1
- package/es/pro/Cards/components/SKUCard/index.d.ts +0 -1
- package/es/pro/Cards/components/SKUCard/index.js +0 -1
- package/es/pro/Cards/components/SKUCard/types.d.ts +2 -2
- package/es/pro/Login2.0/Login2.js +8 -8
- package/es/pro/Login2.0/locales.d.ts +5 -0
- package/es/pro/Login2.0/locales.js +5 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +3 -2
- package/lib/components/booking/info/header/index.js +7 -7
- package/lib/components/booking/info/header/index.less +5 -5
- package/lib/components/ecocup/components/AddCustomerModal/index.js +2 -2
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
- package/lib/components/ecocup/components/CupInfoCard/index.js +2 -2
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +62 -2
- package/lib/components/ecocup/components/CupStatusModal/index.js +103 -22
- package/lib/components/ecocup/components/CupStatusModal/index.less +48 -10
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +3 -1
- package/lib/components/ecocup/components/CustomerCard/index.js +13 -3
- package/lib/components/ecocup/components/PageHeader/index.d.ts +2 -0
- package/lib/components/ecocup/components/PageHeader/index.js +10 -3
- package/lib/components/ecocup/components/PageHeader/index.less +16 -4
- package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/lib/components/ecocup/components/SearchBar/index.js +15 -2
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/components/SettingModal/const.js +48 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/SettingModal/index.js +199 -0
- package/lib/components/ecocup/components/SettingModal/index.less +9 -0
- package/lib/components/ecocup/cupList/const.d.ts +8 -1
- package/lib/components/ecocup/cupList/const.js +18 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +2 -2
- package/lib/components/ecocup/cupList/hooks/index.js +4 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
- package/lib/components/ecocup/cupList/hooks/useColumns.js +2 -4
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +123 -8
- package/lib/components/ecocup/cupList/hooks/useSummary.js +22 -14
- package/lib/components/ecocup/cupList/index.js +70 -16
- package/lib/components/ecocup/cupList/index.less +62 -16
- package/lib/components/ecocup/cupProject/const.js +8 -1
- package/lib/components/ecocup/cupProject/index.js +10 -1
- package/lib/components/ecocup/hooks.d.ts +8 -0
- package/lib/components/ecocup/hooks.js +18 -4
- package/lib/components/ecocup/locales.d.ts +93 -3
- package/lib/components/ecocup/locales.js +118 -25
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/download.js +47 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/index.js +42 -0
- package/lib/hooks/useLocale.js +7 -2
- package/lib/pro/Cards/components/SKUCard/index.d.ts +0 -1
- package/lib/pro/Cards/components/SKUCard/index.js +0 -1
- package/lib/pro/Cards/components/SKUCard/types.d.ts +2 -2
- package/lib/pro/Login2.0/Login2.js +8 -8
- package/lib/pro/Login2.0/locales.d.ts +5 -0
- package/lib/pro/Login2.0/locales.js +5 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +3 -2
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/package.json +3 -3
|
@@ -30,7 +30,7 @@ var locales_default = {
|
|
|
30
30
|
"pisell2.text.ecocup.button.missing": "Missing",
|
|
31
31
|
"pisell2.text.ecocup.button.broken": "Broken",
|
|
32
32
|
"pisell2.text.ecocup.button.clear-all": "Clear All",
|
|
33
|
-
"pisell2.text.ecocup.button.mark-as-return": "
|
|
33
|
+
"pisell2.text.ecocup.button.mark-as-return": "Return",
|
|
34
34
|
"pisell2.text.ecocup.button.mark-as-missing": "Mark as Missing",
|
|
35
35
|
"pisell2.text.ecocup.button.mark-as-broken": "Mark as Broken",
|
|
36
36
|
"pisell2.text.ecocup.button.cancel": "Cancel",
|
|
@@ -49,6 +49,7 @@ var locales_default = {
|
|
|
49
49
|
"pisell2.text.cup-project.footer.button.new-customer": "New Customer",
|
|
50
50
|
"pisell2.text.cup-project.footer.button.customer-list": "Customer list",
|
|
51
51
|
"pisell2.text.cup-project.footer.button.cup-list": "Cup list",
|
|
52
|
+
"pisell2.text.cup-project.footer.button.setting": "Setting",
|
|
52
53
|
"pisell2.text.cup-project.footer.button.register-cups": "Register Cups to Inventory",
|
|
53
54
|
"pisell2.text.cup-project.search-bar.result.header.name": "Name",
|
|
54
55
|
"pisell2.text.cup-project.search-bar.result.header.registrationTime": "Registration Time",
|
|
@@ -60,13 +61,13 @@ var locales_default = {
|
|
|
60
61
|
"pisell2.text.ecocup.status.placeholder": "Select Status",
|
|
61
62
|
"pisell2.text.ecocup.status.shop.placeholder": "Select Shop",
|
|
62
63
|
"pisell2.text.ecocup.scan-or-search": "mobile number or cup code",
|
|
63
|
-
"pisell2.text.ecocup.available-to-rent": "Available to
|
|
64
|
+
"pisell2.text.ecocup.available-to-rent": "Stock Available to Rent Now",
|
|
64
65
|
"pisell2.text.ecocup.rent": "Rent",
|
|
65
66
|
"pisell2.text.ecocup.broken": "Broken",
|
|
66
|
-
"pisell2.text.ecocup.cup-rent": "Cup Rent",
|
|
67
|
-
"pisell2.text.ecocup.cup-returned": "Cup Returned",
|
|
68
|
-
"pisell2.text.ecocup.eco.cup-rent": "Cup Rent
|
|
69
|
-
"pisell2.text.ecocup.eco.cup-returned": "Cup Returned
|
|
67
|
+
"pisell2.text.ecocup.cup-rent": "Cup Rent (During Selected Period)",
|
|
68
|
+
"pisell2.text.ecocup.cup-returned": "Cup Returned (During Selected Period)",
|
|
69
|
+
"pisell2.text.ecocup.eco.cup-rent": "Cup Rent (all shops during selected period)",
|
|
70
|
+
"pisell2.text.ecocup.eco.cup-returned": "Cup Returned (all shops during selected period)",
|
|
70
71
|
"pisell2.text.ecocup.table.cup-code": "Cup Code",
|
|
71
72
|
"pisell2.text.ecocup.table.customer": "Customer",
|
|
72
73
|
"pisell2.text.ecocup.table.status": "Status",
|
|
@@ -90,6 +91,8 @@ var locales_default = {
|
|
|
90
91
|
"pisell2.text.ecocup.action.more.broken": "Broken",
|
|
91
92
|
"pisell2.text.ecocup.table.time-of-rent.relative": (num) => `${num} ${num === 1 ? "day" : "days"} ago`,
|
|
92
93
|
"pisell2.text.ecocup.table.time-of-return.today": "Today",
|
|
94
|
+
"pisell2.text.ecocup.share.title": "Share",
|
|
95
|
+
"pisell2.text.ecocup.export.title": "Export",
|
|
93
96
|
// Customer List
|
|
94
97
|
"pisell2.text.ecocup.customer.list.title": "Customer List",
|
|
95
98
|
"pisell2.text.ecocup.customer.list.customer": "Cutomer",
|
|
@@ -127,6 +130,10 @@ var locales_default = {
|
|
|
127
130
|
"pisell2.text.ecocup.cup-info-card.title.rentInfo": "Rent at",
|
|
128
131
|
"pisell2.text.ecocup.cup-info-card.title.markInfo": "Marked by",
|
|
129
132
|
"pisell2.text.ecocup.cup-info-card.title.belongInfo": "Belongs to",
|
|
133
|
+
"pisell2.text.ecocup.cup-info-card.title.otherBelongInfo": "This cup belongs to",
|
|
134
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-shop": "multiple shop detected",
|
|
135
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-time": "multiple time detected",
|
|
136
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-customer": "Multiple customers",
|
|
130
137
|
// Customer First Modal
|
|
131
138
|
"pisell2.text.ecocup.customer-first-modal.title": "Rent/Return Cup(s)",
|
|
132
139
|
"pisell2.text.ecocup.customer-first-modal.search-tip": "Please scan/input the correct ECO Cup code.",
|
|
@@ -137,12 +144,36 @@ var locales_default = {
|
|
|
137
144
|
// Search Bar
|
|
138
145
|
"pisell2.text.ecocup.search-bar.search-tip": "Please scan/input the correct ECO Cup code.",
|
|
139
146
|
// Cup Status Modal
|
|
140
|
-
"pisell2.text.ecocup.cup-status-modal.title-other_rent":
|
|
141
|
-
"pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "
|
|
147
|
+
"pisell2.text.ecocup.cup-status-modal.title-other_rent": (num) => `Cup Return ${num > 1 ? `(${num} cups)` : ""}`,
|
|
148
|
+
"pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "Cup not in your inventory",
|
|
142
149
|
"pisell2.text.ecocup.cup-status-modal.title-missing": "Cup Marked as Missing",
|
|
143
150
|
"pisell2.text.ecocup.cup-status-modal.title-broken": "Cup Marked as Broken",
|
|
144
151
|
"pisell2.text.ecocup.cup-status-modal.title-not_found": "Cup not in your inventory",
|
|
145
|
-
"pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting"
|
|
152
|
+
"pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting",
|
|
153
|
+
"pisell2.text.ecocup.cup-status-modal.tip-in-stock": "Please report to Eco-cup admin for further actions",
|
|
154
|
+
// Setting
|
|
155
|
+
"pisell2.text.ecocup.setting.expire-time": "Expire Time",
|
|
156
|
+
"pisell2.text.ecocup.setting.expire-time-placeholder": "Expire Time",
|
|
157
|
+
"pisell2.text.ecocup.setting.expire-time-required": "Expire Time is required",
|
|
158
|
+
"pisell2.text.ecocup.setting.expire-time-max": "Expire Time must be less than 365 days",
|
|
159
|
+
"pisell2.text.ecocup.setting.expire-time-min": "Expire Time must be greater than 0",
|
|
160
|
+
"pisell2.text.ecocup.setting.max-rent-count-max": "Max Rent Count must be less than 9999",
|
|
161
|
+
"pisell2.text.ecocup.setting.max-rent-count-min": "Max Rent Count must be greater than 0",
|
|
162
|
+
"pisell2.text.ecocup.setting.days": "Days",
|
|
163
|
+
"pisell2.text.ecocup.setting.regular": "Regular",
|
|
164
|
+
"pisell2.text.ecocup.setting.regular-placeholder": "Regular",
|
|
165
|
+
"pisell2.text.ecocup.setting.regular-required": "Regular is required",
|
|
166
|
+
"pisell2.text.ecocup.setting.business": "Business",
|
|
167
|
+
"pisell2.text.ecocup.setting.business-placeholder": "Business",
|
|
168
|
+
"pisell2.text.ecocup.setting.business-required": "Business is required",
|
|
169
|
+
"pisell2.text.ecocup.setting.admin": "Admin",
|
|
170
|
+
"pisell2.text.ecocup.setting.admin-placeholder": "Admin",
|
|
171
|
+
"pisell2.text.ecocup.setting.admin-required": "Admin is required",
|
|
172
|
+
"pisell2.text.ecocup.setting.success": "Settings saved successfully",
|
|
173
|
+
"pisell2.text.ecocup.export.fail": "Export failed",
|
|
174
|
+
"pisell2.text.ecocup.export.success": "Export success",
|
|
175
|
+
"pisell2.text.ecocup.cup-status-modal.search-bar.title": "Scan multiple cups and return together",
|
|
176
|
+
"pisell2.text.ecocup.toast.success-copy-link": "Link copied to clipboard"
|
|
146
177
|
},
|
|
147
178
|
"zh-CN": {
|
|
148
179
|
"pisell2.text.ecocup.cup-id": "Cup ID",
|
|
@@ -151,7 +182,7 @@ var locales_default = {
|
|
|
151
182
|
"pisell2.text.ecocup.button.missing": "Missing",
|
|
152
183
|
"pisell2.text.ecocup.button.broken": "Broken",
|
|
153
184
|
"pisell2.text.ecocup.button.clear-all": "Clear All",
|
|
154
|
-
"pisell2.text.ecocup.button.mark-as-return": "
|
|
185
|
+
"pisell2.text.ecocup.button.mark-as-return": "Return",
|
|
155
186
|
"pisell2.text.ecocup.button.mark-as-missing": "Mark as Missing",
|
|
156
187
|
"pisell2.text.ecocup.button.mark-as-broken": "Mark as Broken",
|
|
157
188
|
"pisell2.text.ecocup.button.cancel": "Cancel",
|
|
@@ -170,6 +201,7 @@ var locales_default = {
|
|
|
170
201
|
"pisell2.text.cup-project.footer.button.new-customer": "New Customer",
|
|
171
202
|
"pisell2.text.cup-project.footer.button.customer-list": "Customer list",
|
|
172
203
|
"pisell2.text.cup-project.footer.button.cup-list": "Cup list",
|
|
204
|
+
"pisell2.text.cup-project.footer.button.setting": "Setting",
|
|
173
205
|
"pisell2.text.cup-project.footer.button.register-cups": "Register Cups to Inventory",
|
|
174
206
|
"pisell2.text.cup-project.search-bar.result.header.name": "Name",
|
|
175
207
|
"pisell2.text.cup-project.search-bar.result.header.registrationTime": "Registration Time",
|
|
@@ -184,10 +216,10 @@ var locales_default = {
|
|
|
184
216
|
"pisell2.text.ecocup.available-to-rent": "Available to rent now",
|
|
185
217
|
"pisell2.text.ecocup.rent": "Rent",
|
|
186
218
|
"pisell2.text.ecocup.broken": "Broken",
|
|
187
|
-
"pisell2.text.ecocup.cup-rent": "Cup Rent",
|
|
188
|
-
"pisell2.text.ecocup.cup-returned": "Cup Returned",
|
|
189
|
-
"pisell2.text.ecocup.eco.cup-rent": "Cup Rent
|
|
190
|
-
"pisell2.text.ecocup.eco.cup-returned": "Cup Returned
|
|
219
|
+
"pisell2.text.ecocup.cup-rent": "Cup Rent (During Selected Period)",
|
|
220
|
+
"pisell2.text.ecocup.cup-returned": "Cup Returned (During Selected Period)",
|
|
221
|
+
"pisell2.text.ecocup.eco.cup-rent": "Cup Rent (all shops during selected period)",
|
|
222
|
+
"pisell2.text.ecocup.eco.cup-returned": "Cup Returned (all shops during selected period)",
|
|
191
223
|
"pisell2.text.ecocup.table.cup-code": "Cup Code",
|
|
192
224
|
"pisell2.text.ecocup.table.customer": "Customer",
|
|
193
225
|
"pisell2.text.ecocup.table.status": "Status",
|
|
@@ -211,6 +243,8 @@ var locales_default = {
|
|
|
211
243
|
"pisell2.text.ecocup.action.more.broken": "Broken",
|
|
212
244
|
"pisell2.text.ecocup.table.time-of-rent.relative": (num) => `${num} ${num > 1 ? "days" : "day"} ago`,
|
|
213
245
|
"pisell2.text.ecocup.table.time-of-return.today": "Today",
|
|
246
|
+
"pisell2.text.ecocup.share.title": "Share",
|
|
247
|
+
"pisell2.text.ecocup.export.title": "Export",
|
|
214
248
|
// Customer List
|
|
215
249
|
"pisell2.text.ecocup.customer.list.title": "Customer List",
|
|
216
250
|
"pisell2.text.ecocup.customer.list.customer": "Cutomer",
|
|
@@ -248,6 +282,10 @@ var locales_default = {
|
|
|
248
282
|
"pisell2.text.ecocup.cup-info-card.title.rentInfo": "Rent at",
|
|
249
283
|
"pisell2.text.ecocup.cup-info-card.title.markInfo": "Marked by",
|
|
250
284
|
"pisell2.text.ecocup.cup-info-card.title.belongInfo": "Belongs to",
|
|
285
|
+
"pisell2.text.ecocup.cup-info-card.title.otherBelongInfo": "This cup belongs to",
|
|
286
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-shop": "multiple shop detected",
|
|
287
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-time": "multiple time detected",
|
|
288
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-customer": "Multiple customers",
|
|
251
289
|
// Customer First Modal
|
|
252
290
|
"pisell2.text.ecocup.customer-first-modal.title": "Rent/Return Cup(s)",
|
|
253
291
|
"pisell2.text.ecocup.customer-first-modal.search-tip": "Please scan/input the correct ECO Cup code.",
|
|
@@ -258,12 +296,36 @@ var locales_default = {
|
|
|
258
296
|
// Search Bar
|
|
259
297
|
"pisell2.text.ecocup.search-bar.search-tip": "Please scan/input the correct ECO Cup code.",
|
|
260
298
|
// Cup Status Modal
|
|
261
|
-
"pisell2.text.ecocup.cup-status-modal.title-other_rent":
|
|
262
|
-
"pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "
|
|
299
|
+
"pisell2.text.ecocup.cup-status-modal.title-other_rent": (num) => `Cup Return ${num > 1 ? `(${num} cups)` : ""}`,
|
|
300
|
+
"pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "Cup not in your inventory",
|
|
263
301
|
"pisell2.text.ecocup.cup-status-modal.title-missing": "Cup Marked as Missing",
|
|
264
302
|
"pisell2.text.ecocup.cup-status-modal.title-broken": "Cup Marked as Broken",
|
|
265
303
|
"pisell2.text.ecocup.cup-status-modal.title-not_found": "Cup not in your inventory",
|
|
266
|
-
"pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting"
|
|
304
|
+
"pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting",
|
|
305
|
+
"pisell2.text.ecocup.cup-status-modal.tip-in-stock": "Please report to Eco-cup admin for further actions",
|
|
306
|
+
// Setting
|
|
307
|
+
"pisell2.text.ecocup.setting.expire-time": "Expire Time",
|
|
308
|
+
"pisell2.text.ecocup.setting.expire-time-placeholder": "Expire Time",
|
|
309
|
+
"pisell2.text.ecocup.setting.expire-time-required": "Expire Time is required",
|
|
310
|
+
"pisell2.text.ecocup.setting.expire-time-max": "Expire Time must be less than 365 days",
|
|
311
|
+
"pisell2.text.ecocup.setting.expire-time-min": "Expire Time must be greater than 0",
|
|
312
|
+
"pisell2.text.ecocup.setting.max-rent-count-max": "Max Rent Count must be less than 9999",
|
|
313
|
+
"pisell2.text.ecocup.setting.max-rent-count-min": "Max Rent Count must be greater than 0",
|
|
314
|
+
"pisell2.text.ecocup.setting.days": "Days",
|
|
315
|
+
"pisell2.text.ecocup.setting.regular": "Regular",
|
|
316
|
+
"pisell2.text.ecocup.setting.regular-placeholder": "Regular",
|
|
317
|
+
"pisell2.text.ecocup.setting.regular-required": "Regular is required",
|
|
318
|
+
"pisell2.text.ecocup.setting.business": "Business",
|
|
319
|
+
"pisell2.text.ecocup.setting.business-placeholder": "Business",
|
|
320
|
+
"pisell2.text.ecocup.setting.business-required": "Business is required",
|
|
321
|
+
"pisell2.text.ecocup.setting.admin": "Admin",
|
|
322
|
+
"pisell2.text.ecocup.setting.admin-placeholder": "Admin",
|
|
323
|
+
"pisell2.text.ecocup.setting.admin-required": "Admin is required",
|
|
324
|
+
"pisell2.text.ecocup.setting.success": "Settings saved successfully",
|
|
325
|
+
"pisell2.text.ecocup.export.fail": "Export failed",
|
|
326
|
+
"pisell2.text.ecocup.export.success": "Export success",
|
|
327
|
+
"pisell2.text.ecocup.cup-status-modal.search-bar.title": "Scan multiple cups and return together",
|
|
328
|
+
"pisell2.text.ecocup.toast.success-copy-link": "Link copied to clipboard"
|
|
267
329
|
},
|
|
268
330
|
"zh-HK": {
|
|
269
331
|
"pisell2.text.ecocup.cup-id": "Cup ID",
|
|
@@ -272,7 +334,7 @@ var locales_default = {
|
|
|
272
334
|
"pisell2.text.ecocup.button.missing": "Missing",
|
|
273
335
|
"pisell2.text.ecocup.button.broken": "Broken",
|
|
274
336
|
"pisell2.text.ecocup.button.clear-all": "Clear All",
|
|
275
|
-
"pisell2.text.ecocup.button.mark-as-return": "
|
|
337
|
+
"pisell2.text.ecocup.button.mark-as-return": "Return",
|
|
276
338
|
"pisell2.text.ecocup.button.mark-as-missing": "Mark as Missing",
|
|
277
339
|
"pisell2.text.ecocup.button.mark-as-broken": "Mark as Broken",
|
|
278
340
|
"pisell2.text.ecocup.button.cancel": "Cancel",
|
|
@@ -291,6 +353,7 @@ var locales_default = {
|
|
|
291
353
|
"pisell2.text.cup-project.footer.button.new-customer": "New Customer",
|
|
292
354
|
"pisell2.text.cup-project.footer.button.customer-list": "Customer list",
|
|
293
355
|
"pisell2.text.cup-project.footer.button.cup-list": "Cup list",
|
|
356
|
+
"pisell2.text.cup-project.footer.button.setting": "Setting",
|
|
294
357
|
"pisell2.text.cup-project.footer.button.register-cups": "Register Cups to Inventory",
|
|
295
358
|
"pisell2.text.cup-project.search-bar.result.header.name": "Name",
|
|
296
359
|
"pisell2.text.cup-project.search-bar.result.header.registrationTime": "Registration Time",
|
|
@@ -305,10 +368,10 @@ var locales_default = {
|
|
|
305
368
|
"pisell2.text.ecocup.available-to-rent": "Available to rent now",
|
|
306
369
|
"pisell2.text.ecocup.rent": "Rent",
|
|
307
370
|
"pisell2.text.ecocup.broken": "Broken",
|
|
308
|
-
"pisell2.text.ecocup.cup-rent": "Cup Rent",
|
|
309
|
-
"pisell2.text.ecocup.cup-returned": "Cup Returned",
|
|
310
|
-
"pisell2.text.ecocup.eco.cup-rent": "Cup Rent
|
|
311
|
-
"pisell2.text.ecocup.eco.cup-returned": "Cup Returned
|
|
371
|
+
"pisell2.text.ecocup.cup-rent": "Cup Rent (During Selected Period)",
|
|
372
|
+
"pisell2.text.ecocup.cup-returned": "Cup Returned (During Selected Period)",
|
|
373
|
+
"pisell2.text.ecocup.eco.cup-rent": "Cup Rent (all shops during selected period)",
|
|
374
|
+
"pisell2.text.ecocup.eco.cup-returned": "Cup Returned (all shops during selected period)",
|
|
312
375
|
"pisell2.text.ecocup.table.cup-code": "Cup Code",
|
|
313
376
|
"pisell2.text.ecocup.table.customer": "Customer",
|
|
314
377
|
"pisell2.text.ecocup.table.status": "Status",
|
|
@@ -332,6 +395,8 @@ var locales_default = {
|
|
|
332
395
|
"pisell2.text.ecocup.action.more.broken": "Broken",
|
|
333
396
|
"pisell2.text.ecocup.table.time-of-rent.relative": (num) => `${num} ${num === 1 ? "day" : "days"} ago`,
|
|
334
397
|
"pisell2.text.ecocup.table.time-of-return.today": "Today",
|
|
398
|
+
"pisell2.text.ecocup.share.title": "Share",
|
|
399
|
+
"pisell2.text.ecocup.export.title": "Export",
|
|
335
400
|
// Customer List
|
|
336
401
|
"pisell2.text.ecocup.customer.list.title": "Customer List",
|
|
337
402
|
"pisell2.text.ecocup.customer.list.customer": "Cutomer",
|
|
@@ -369,6 +434,10 @@ var locales_default = {
|
|
|
369
434
|
"pisell2.text.ecocup.cup-info-card.title.rentInfo": "Rent at",
|
|
370
435
|
"pisell2.text.ecocup.cup-info-card.title.markInfo": "Marked by",
|
|
371
436
|
"pisell2.text.ecocup.cup-info-card.title.belongInfo": "Belongs to",
|
|
437
|
+
"pisell2.text.ecocup.cup-info-card.title.otherBelongInfo": "This cup belongs to",
|
|
438
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-shop": "multiple shop detected",
|
|
439
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-time": "multiple time detected",
|
|
440
|
+
"pisell2.text.ecocup.cup-info-card.title.multiple-customer": "Multiple customers",
|
|
372
441
|
// Customer First Modal
|
|
373
442
|
"pisell2.text.ecocup.customer-first-modal.title": "Rent/Return Cup(s)",
|
|
374
443
|
"pisell2.text.ecocup.customer-first-modal.search-tip": "Please scan/input the correct ECO Cup code.",
|
|
@@ -379,12 +448,36 @@ var locales_default = {
|
|
|
379
448
|
// Search Bar
|
|
380
449
|
"pisell2.text.ecocup.search-bar.search-tip": "Please scan/input the correct ECO Cup code.",
|
|
381
450
|
// Cup Status Modal
|
|
382
|
-
"pisell2.text.ecocup.cup-status-modal.title-other_rent":
|
|
383
|
-
"pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "
|
|
451
|
+
"pisell2.text.ecocup.cup-status-modal.title-other_rent": (num) => `Cup Return ${num > 1 ? `(${num} cups)` : ""}`,
|
|
452
|
+
"pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "Cup not in your inventory",
|
|
384
453
|
"pisell2.text.ecocup.cup-status-modal.title-missing": "Cup Marked as Missing",
|
|
385
454
|
"pisell2.text.ecocup.cup-status-modal.title-broken": "Cup Marked as Broken",
|
|
386
455
|
"pisell2.text.ecocup.cup-status-modal.title-not_found": "Cup not in your inventory",
|
|
387
|
-
"pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting"
|
|
456
|
+
"pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting",
|
|
457
|
+
"pisell2.text.ecocup.cup-status-modal.tip-in-stock": "Please report to Eco-cup admin for further actions",
|
|
458
|
+
// Setting
|
|
459
|
+
"pisell2.text.ecocup.setting.expire-time": "Expire Time",
|
|
460
|
+
"pisell2.text.ecocup.setting.expire-time-placeholder": "Expire Time",
|
|
461
|
+
"pisell2.text.ecocup.setting.expire-time-required": "Expire Time is required",
|
|
462
|
+
"pisell2.text.ecocup.setting.expire-time-max": "Expire Time must be less than 365 days",
|
|
463
|
+
"pisell2.text.ecocup.setting.expire-time-min": "Expire Time must be greater than 0",
|
|
464
|
+
"pisell2.text.ecocup.setting.max-rent-count-max": "Max Rent Count must be less than 9999",
|
|
465
|
+
"pisell2.text.ecocup.setting.max-rent-count-min": "Max Rent Count must be greater than 0",
|
|
466
|
+
"pisell2.text.ecocup.setting.days": "Days",
|
|
467
|
+
"pisell2.text.ecocup.setting.regular": "Regular",
|
|
468
|
+
"pisell2.text.ecocup.setting.regular-placeholder": "Regular",
|
|
469
|
+
"pisell2.text.ecocup.setting.regular-required": "Regular is required",
|
|
470
|
+
"pisell2.text.ecocup.setting.business": "Business",
|
|
471
|
+
"pisell2.text.ecocup.setting.business-placeholder": "Business",
|
|
472
|
+
"pisell2.text.ecocup.setting.business-required": "Business is required",
|
|
473
|
+
"pisell2.text.ecocup.setting.admin": "Admin",
|
|
474
|
+
"pisell2.text.ecocup.setting.admin-placeholder": "Admin",
|
|
475
|
+
"pisell2.text.ecocup.setting.admin-required": "Admin is required",
|
|
476
|
+
"pisell2.text.ecocup.setting.success": "Settings saved successfully",
|
|
477
|
+
"pisell2.text.ecocup.export.fail": "Export failed",
|
|
478
|
+
"pisell2.text.ecocup.export.success": "Export success",
|
|
479
|
+
"pisell2.text.ecocup.cup-status-modal.search-bar.title": "Scan multiple cups and return together",
|
|
480
|
+
"pisell2.text.ecocup.toast.success-copy-link": "Link copied to clipboard"
|
|
388
481
|
},
|
|
389
482
|
ja: {
|
|
390
483
|
"pisell2.text.ecocup.cup-id": "カップID",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/ecocup/utils/download.ts
|
|
20
|
+
var download_exports = {};
|
|
21
|
+
__export(download_exports, {
|
|
22
|
+
downloadFile: () => downloadFile
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(download_exports);
|
|
25
|
+
var downloadFile = (url, filename) => {
|
|
26
|
+
const isApp = window.navigator.userAgent.includes("Capacitor");
|
|
27
|
+
if (isApp) {
|
|
28
|
+
window.open(url, "_blank");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const link = document.createElement("a");
|
|
32
|
+
link.href = url;
|
|
33
|
+
link.target = "_blank";
|
|
34
|
+
if (filename) {
|
|
35
|
+
link.download = filename;
|
|
36
|
+
}
|
|
37
|
+
link.style.display = "none";
|
|
38
|
+
document.body.appendChild(link);
|
|
39
|
+
link.click();
|
|
40
|
+
setTimeout(() => {
|
|
41
|
+
document.body.removeChild(link);
|
|
42
|
+
}, 100);
|
|
43
|
+
};
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
downloadFile
|
|
47
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/components/ecocup/utils/index.ts
|
|
31
|
+
var utils_exports = {};
|
|
32
|
+
__export(utils_exports, {
|
|
33
|
+
scanListener: () => import_scanListener.default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(utils_exports);
|
|
36
|
+
__reExport(utils_exports, require("./download"), module.exports);
|
|
37
|
+
var import_scanListener = __toESM(require("./scanListener"));
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
scanListener,
|
|
41
|
+
...require("./download")
|
|
42
|
+
});
|
package/lib/hooks/useLocale.js
CHANGED
|
@@ -34,8 +34,13 @@ __export(useLocale_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(useLocale_exports);
|
|
35
35
|
var import_useEngineContext = __toESM(require("./useEngineContext"));
|
|
36
36
|
var useLocale = () => {
|
|
37
|
-
var _a, _b;
|
|
37
|
+
var _a, _b, _c, _d, _e, _f;
|
|
38
38
|
const context = (0, import_useEngineContext.default)();
|
|
39
|
-
|
|
39
|
+
const { getApp } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
40
|
+
const app = getApp && (getApp == null ? void 0 : getApp()) || {};
|
|
41
|
+
if ((_b = app == null ? void 0 : app.locales) == null ? void 0 : _b.getLocale) {
|
|
42
|
+
return (_d = (_c = app == null ? void 0 : app.locales) == null ? void 0 : _c.getLocale) == null ? void 0 : _d.call(_c);
|
|
43
|
+
}
|
|
44
|
+
return ((_f = (_e = context == null ? void 0 : context.engine) == null ? void 0 : _e.props) == null ? void 0 : _f.locale) || "en";
|
|
40
45
|
};
|
|
41
46
|
var useLocale_default = useLocale;
|
|
@@ -40,7 +40,6 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
|
|
|
40
40
|
var import_locales = __toESM(require("./locales"));
|
|
41
41
|
var import_useThemeTokens = __toESM(require("../../../../hooks/useThemeTokens"));
|
|
42
42
|
var import_index = require("./index.less");
|
|
43
|
-
var import_index2 = require("./index.less");
|
|
44
43
|
var SKUCard = ({
|
|
45
44
|
cover,
|
|
46
45
|
title,
|
|
@@ -603,7 +603,7 @@ var Login2 = ({
|
|
|
603
603
|
}
|
|
604
604
|
const res = await registerAndLogin.resetPassword(resetPasswordParams);
|
|
605
605
|
if ((res == null ? void 0 : res.code) !== 200) {
|
|
606
|
-
throw new Error((res == null ? void 0 : res.message) || "
|
|
606
|
+
throw new Error((res == null ? void 0 : res.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
handleCloseForgotPassword();
|
|
@@ -627,7 +627,7 @@ var Login2 = ({
|
|
|
627
627
|
}
|
|
628
628
|
setLoginStep("account");
|
|
629
629
|
} catch (error) {
|
|
630
|
-
import_antd.message.error((error == null ? void 0 : error.message) || "
|
|
630
|
+
import_antd.message.error((error == null ? void 0 : error.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
631
631
|
} finally {
|
|
632
632
|
setLoading(false);
|
|
633
633
|
}
|
|
@@ -641,14 +641,14 @@ var Login2 = ({
|
|
|
641
641
|
password
|
|
642
642
|
});
|
|
643
643
|
if ((res == null ? void 0 : res.code) !== 200) {
|
|
644
|
-
throw new Error((res == null ? void 0 : res.message) || "
|
|
644
|
+
throw new Error((res == null ? void 0 : res.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
handleCloseForgotPassword();
|
|
648
648
|
setEmailLinkVerifyStatus(null);
|
|
649
|
-
import_antd.message.success("
|
|
649
|
+
import_antd.message.success(import_utils.locales.getText("pisell-forgot-password-success"));
|
|
650
650
|
} catch (error) {
|
|
651
|
-
import_antd.message.error((error == null ? void 0 : error.message) || "
|
|
651
|
+
import_antd.message.error((error == null ? void 0 : error.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
652
652
|
throw error;
|
|
653
653
|
} finally {
|
|
654
654
|
setLoading(false);
|
|
@@ -1413,7 +1413,7 @@ var Login2 = ({
|
|
|
1413
1413
|
password
|
|
1414
1414
|
});
|
|
1415
1415
|
if (result.status) {
|
|
1416
|
-
import_antd.message.success("
|
|
1416
|
+
import_antd.message.success(import_utils.locales.getText("pisell-forgot-password-success"));
|
|
1417
1417
|
setEmailLinkVerifyStatus(null);
|
|
1418
1418
|
setEmailLinkError("");
|
|
1419
1419
|
if (resetPasswordUserEmail) {
|
|
@@ -1427,13 +1427,13 @@ var Login2 = ({
|
|
|
1427
1427
|
setLoginStep("account");
|
|
1428
1428
|
}
|
|
1429
1429
|
} else {
|
|
1430
|
-
import_antd.message.error(result.message || "
|
|
1430
|
+
import_antd.message.error(result.message || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
1431
1431
|
}
|
|
1432
1432
|
} else {
|
|
1433
1433
|
import_antd.message.error("系统错误,请稍后重试");
|
|
1434
1434
|
}
|
|
1435
1435
|
} catch (error) {
|
|
1436
|
-
import_antd.message.error((error == null ? void 0 : error.message) || "
|
|
1436
|
+
import_antd.message.error((error == null ? void 0 : error.message) || import_utils.locales.getText("pisell-forgot-password-failed"));
|
|
1437
1437
|
}
|
|
1438
1438
|
},
|
|
1439
1439
|
onBack: () => {
|
|
@@ -75,6 +75,7 @@ declare const _default: {
|
|
|
75
75
|
'pisell-forgot-password-send-link': string;
|
|
76
76
|
'pisell-forgot-password-link-sent': string;
|
|
77
77
|
'pisell-forgot-password-success': string;
|
|
78
|
+
'pisell-forgot-password-failed': string;
|
|
78
79
|
'pisell-forgot-password-verify': string;
|
|
79
80
|
'pisell-common-resend': string;
|
|
80
81
|
'pisell-common-verify': string;
|
|
@@ -255,6 +256,7 @@ declare const _default: {
|
|
|
255
256
|
'pisell-forgot-password-send-link': string;
|
|
256
257
|
'pisell-forgot-password-link-sent': string;
|
|
257
258
|
'pisell-forgot-password-success': string;
|
|
259
|
+
'pisell-forgot-password-failed': string;
|
|
258
260
|
'pisell-forgot-password-verify': string;
|
|
259
261
|
'pisell-common-resend': string;
|
|
260
262
|
'pisell-common-verify': string;
|
|
@@ -447,6 +449,7 @@ declare const _default: {
|
|
|
447
449
|
'pisell-forgot-password-send-link': string;
|
|
448
450
|
'pisell-forgot-password-link-sent': string;
|
|
449
451
|
'pisell-forgot-password-success': string;
|
|
452
|
+
'pisell-forgot-password-failed': string;
|
|
450
453
|
'pisell-forgot-password-verify': string;
|
|
451
454
|
'pisell-common-resend': string;
|
|
452
455
|
'pisell-common-verify': string;
|
|
@@ -615,6 +618,7 @@ declare const _default: {
|
|
|
615
618
|
'pisell-forgot-password-send-link': string;
|
|
616
619
|
'pisell-forgot-password-link-sent': string;
|
|
617
620
|
'pisell-forgot-password-success': string;
|
|
621
|
+
'pisell-forgot-password-failed': string;
|
|
618
622
|
'pisell-forgot-password-verify': string;
|
|
619
623
|
'pisell-common-resend': string;
|
|
620
624
|
'pisell-common-verify': string;
|
|
@@ -795,6 +799,7 @@ declare const _default: {
|
|
|
795
799
|
'pisell-forgot-password-send-link': string;
|
|
796
800
|
'pisell-forgot-password-link-sent': string;
|
|
797
801
|
'pisell-forgot-password-success': string;
|
|
802
|
+
'pisell-forgot-password-failed': string;
|
|
798
803
|
'pisell-forgot-password-verify': string;
|
|
799
804
|
'pisell-common-resend': string;
|
|
800
805
|
'pisell-common-verify': string;
|
|
@@ -109,6 +109,7 @@ var locales_default = {
|
|
|
109
109
|
"pisell-forgot-password-send-link": "Send reset password link",
|
|
110
110
|
"pisell-forgot-password-link-sent": "Reset password link sent",
|
|
111
111
|
"pisell-forgot-password-success": "Password reset successfully",
|
|
112
|
+
"pisell-forgot-password-failed": "Password reset failed",
|
|
112
113
|
"pisell-forgot-password-verify": "Verify",
|
|
113
114
|
// Common buttons and actions
|
|
114
115
|
"pisell-common-resend": "Resend",
|
|
@@ -315,6 +316,7 @@ var locales_default = {
|
|
|
315
316
|
"pisell-forgot-password-send-link": "发送重置密码链接",
|
|
316
317
|
"pisell-forgot-password-link-sent": "重置密码链接已发送",
|
|
317
318
|
"pisell-forgot-password-success": "密码重置成功",
|
|
319
|
+
"pisell-forgot-password-failed": "密码重置失败",
|
|
318
320
|
"pisell-forgot-password-verify": "验证",
|
|
319
321
|
// Common buttons and actions
|
|
320
322
|
"pisell-common-resend": "重新发送",
|
|
@@ -537,6 +539,7 @@ var locales_default = {
|
|
|
537
539
|
"pisell-forgot-password-send-link": "發送重置密碼連結",
|
|
538
540
|
"pisell-forgot-password-link-sent": "重置密碼連結已發送",
|
|
539
541
|
"pisell-forgot-password-success": "密碼重設成功",
|
|
542
|
+
"pisell-forgot-password-failed": "密碼重設失敗",
|
|
540
543
|
"pisell-forgot-password-verify": "驗證",
|
|
541
544
|
// Common buttons and actions
|
|
542
545
|
"pisell-common-resend": "重新發送",
|
|
@@ -719,6 +722,7 @@ var locales_default = {
|
|
|
719
722
|
"pisell-forgot-password-send-link": "パスワードリセットリンクを送信",
|
|
720
723
|
"pisell-forgot-password-link-sent": "パスワードリセットリンクが送信されました",
|
|
721
724
|
"pisell-forgot-password-success": "パスワードリセット成功",
|
|
725
|
+
"pisell-forgot-password-failed": "パスワードリセット失敗",
|
|
722
726
|
"pisell-forgot-password-verify": "確認",
|
|
723
727
|
"pisell-common-resend": "再送信",
|
|
724
728
|
"pisell-common-verify": "確認",
|
|
@@ -899,6 +903,7 @@ var locales_default = {
|
|
|
899
903
|
"pisell-forgot-password-send-link": "Enviar link de redefinição de senha",
|
|
900
904
|
"pisell-forgot-password-link-sent": "Link de redefinição de senha enviado",
|
|
901
905
|
"pisell-forgot-password-success": "Redefinição de senha bem-sucedida",
|
|
906
|
+
"pisell-forgot-password-failed": "Falha na redefinição de senha",
|
|
902
907
|
"pisell-forgot-password-verify": "Verificar",
|
|
903
908
|
"pisell-common-resend": "Reenviar",
|
|
904
909
|
"pisell-common-verify": "Verificar",
|
|
@@ -39,11 +39,11 @@ var import_utils = require("@pisell/utils");
|
|
|
39
39
|
var import_ahooks = require("ahooks");
|
|
40
40
|
var import_classnames = __toESM(require("classnames"));
|
|
41
41
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
42
|
+
var import_useLocale = __toESM(require("../../../../hooks/useLocale"));
|
|
42
43
|
var import_useNativeScanner = __toESM(require("../../hooks/useNativeScanner"));
|
|
43
44
|
var import_locales = __toESM(require("./locales"));
|
|
44
45
|
var import_index = require("./index.less");
|
|
45
46
|
var SearchSection = (props) => {
|
|
46
|
-
var _a, _b, _c;
|
|
47
47
|
const {
|
|
48
48
|
isShowSearchCamera = true,
|
|
49
49
|
searchIcon = "pisell2-search-lg",
|
|
@@ -63,9 +63,10 @@ var SearchSection = (props) => {
|
|
|
63
63
|
} = props;
|
|
64
64
|
const { activeNativeScanner, isTerminal } = (0, import_useNativeScanner.default)();
|
|
65
65
|
const context = (0, import_useEngineContext.default)();
|
|
66
|
+
const locale = (0, import_useLocale.default)();
|
|
66
67
|
import_utils.locales.init(
|
|
67
68
|
import_locales.default,
|
|
68
|
-
|
|
69
|
+
locale || "en"
|
|
69
70
|
);
|
|
70
71
|
const [searchValue, setSearchValue] = (0, import_ahooks.useControllableValue)(props);
|
|
71
72
|
const handleSearch = (0, import_ahooks.useMemoizedFn)(async () => {
|
|
@@ -9,7 +9,7 @@ const EcoCustomerListMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/private-materials",
|
|
12
|
-
"version": "
|
|
12
|
+
"version": "6.3.101",
|
|
13
13
|
"exportName": "EcoCustomerList",
|
|
14
14
|
"main": "src/index.ts",
|
|
15
15
|
"destructuring": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.102",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
79
|
"@pisell/utils": "3.0.5",
|
|
80
80
|
"@pisell/materials": "6.3.26",
|
|
81
|
-
"@pisell/
|
|
82
|
-
"@pisell/
|
|
81
|
+
"@pisell/icon": "0.0.11",
|
|
82
|
+
"@pisell/date-picker": "3.0.8"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|