esoftplay-event 0.0.0-v → 0.0.0-x
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/config.json +1 -1
- package/event/additional_input.tsx +43 -42
- package/event/order.tsx +3 -3
- package/event/order_detail_waiting.tsx +10 -8
- package/event/order_status.tsx +8 -1
- package/id.json +4 -3
- package/package.json +1 -1
package/config.json
CHANGED
|
@@ -265,52 +265,53 @@ export default function m(props: EventAdditional_inputProps): any {
|
|
|
265
265
|
/>
|
|
266
266
|
</View>
|
|
267
267
|
|
|
268
|
-
|
|
269
|
-
<View style={{ backgroundColor: 'white', paddingBottom: 25, height: 230 }}>
|
|
270
|
-
<LibDatepicker
|
|
271
|
-
minDate={LibUtils.moment().add(-90, 'years').localeFormat('YYYY-MM-DD')}
|
|
272
|
-
maxDate={LibUtils.moment().localeFormat('YYYY-MM-DD')}
|
|
273
|
-
onDateChange={(dt) => {
|
|
274
|
-
let updateValue = LibObject.set(newData, [dt])('additions', getIdx(), 'value')
|
|
275
|
-
let updateDisplayValue = LibObject.set(updateValue, [LibUtils.moment(dt).localeFormat("DD MMMM YYYY")])('additions', getIdx(), 'display_value')
|
|
276
|
-
setNewData(updateDisplayValue)
|
|
277
|
-
dialogDatePicker.current?.hide()
|
|
278
|
-
}}
|
|
279
|
-
selectedDate={newData?.additions?.[getIdx()]?.value?.[0] || LibUtils.moment().localeFormat('YYYY-MM-DD')}
|
|
280
|
-
/>
|
|
281
|
-
</View>
|
|
282
|
-
</LibSlidingup>
|
|
268
|
+
</LibKeyboard_avoid>
|
|
283
269
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
<
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
270
|
+
<LibSlidingup ref={dialogDatePicker}>
|
|
271
|
+
<View style={{ backgroundColor: 'white', paddingBottom: 25, height: 230 }}>
|
|
272
|
+
<LibDatepicker
|
|
273
|
+
minDate={LibUtils.moment().add(-90, 'years').localeFormat('YYYY-MM-DD')}
|
|
274
|
+
maxDate={LibUtils.moment().localeFormat('YYYY-MM-DD')}
|
|
275
|
+
onDateChange={(dt) => {
|
|
276
|
+
let updateValue = LibObject.set(newData, [dt])('additions', getIdx(), 'value')
|
|
277
|
+
let updateDisplayValue = LibObject.set(updateValue, [LibUtils.moment(dt).localeFormat("DD MMMM YYYY")])('additions', getIdx(), 'display_value')
|
|
278
|
+
setNewData(updateDisplayValue)
|
|
279
|
+
dialogDatePicker.current?.hide()
|
|
280
|
+
}}
|
|
281
|
+
selectedDate={newData?.additions?.[getIdx()]?.value?.[0] || LibUtils.moment().localeFormat('YYYY-MM-DD')}
|
|
282
|
+
/>
|
|
283
|
+
</View>
|
|
284
|
+
</LibSlidingup>
|
|
291
285
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
setNewData(updateDisplayValue)
|
|
300
|
-
|
|
301
|
-
dialogDropdown.current?.hide()
|
|
302
|
-
}} key={i} style={{ borderBottomWidth: 1, borderColor: '#c5c5c5', padding: 10, flexDirection: 'row', alignItems: "center" }}>
|
|
303
|
-
<Text allowFontScaling={false} style={{ flex: 1, fontFamily: 'InterMedium', fontSize: 16, color: '#2C2B2D' }}>{item?.content}</Text>
|
|
304
|
-
</Pressable>
|
|
305
|
-
)
|
|
306
|
-
})
|
|
307
|
-
}
|
|
286
|
+
<LibSlidingup ref={dialogDropdown} >
|
|
287
|
+
<View style={{ width: 40, height: 3, borderRadius: 5, backgroundColor: "#fff", alignSelf: 'center', marginBottom: 10 }} />
|
|
288
|
+
<View style={{ maxHeight: LibStyle.height - (LibStyle.height / 5), backgroundColor: 'white', borderTopLeftRadius: 15, paddingHorizontal: 25, borderTopRightRadius: 15, padding: 10 }} >
|
|
289
|
+
<Pressable style={{ marginTop: 10, alignSelf: 'flex-end' }} onPress={() => dialogDropdown.current?.hide()}>
|
|
290
|
+
<LibIcon name='close' color={"#c9c9c9"} />
|
|
291
|
+
</Pressable>
|
|
292
|
+
<Text allowFontScaling={false} style={{ fontWeight: 'bold', fontSize: 16, marginBottom: 15 }}>{dropdownData?.question}</Text>
|
|
308
293
|
|
|
309
|
-
|
|
294
|
+
<ScrollView>
|
|
295
|
+
{
|
|
296
|
+
dropdownData?.options?.map((item: any, i: number) => {
|
|
297
|
+
return (
|
|
298
|
+
<Pressable onPress={() => {
|
|
299
|
+
let updateValue = LibObject.set(newData, [item.id])('additions', getIdx(), 'value')
|
|
300
|
+
let updateDisplayValue = LibObject.set(updateValue, [item.content])('additions', getIdx(), 'display_value')
|
|
301
|
+
setNewData(updateDisplayValue)
|
|
302
|
+
|
|
303
|
+
dialogDropdown.current?.hide()
|
|
304
|
+
}} key={i} style={{ borderBottomWidth: 1, borderColor: '#c5c5c5', padding: 10, flexDirection: 'row', alignItems: "center" }}>
|
|
305
|
+
<Text allowFontScaling={false} style={{ flex: 1, fontFamily: 'InterMedium', fontSize: 16, color: '#2C2B2D' }}>{item?.content}</Text>
|
|
306
|
+
</Pressable>
|
|
307
|
+
)
|
|
308
|
+
})
|
|
309
|
+
}
|
|
310
310
|
|
|
311
|
-
</
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
</ScrollView>
|
|
312
|
+
|
|
313
|
+
</View>
|
|
314
|
+
</LibSlidingup>
|
|
314
315
|
</View>
|
|
315
316
|
)
|
|
316
317
|
}
|
package/event/order.tsx
CHANGED
|
@@ -70,7 +70,7 @@ export function subscribe(): useGlobalSubscriberReturn {
|
|
|
70
70
|
|
|
71
71
|
export default function m(props: EventOrderProps): any {
|
|
72
72
|
const allStatus = EventOrder_status()
|
|
73
|
-
const statusCode = LibNavigation.getArgs(props, 'status', esp.isDebug("filter") ? '0,1,2,3,4,5' : '1')
|
|
73
|
+
const statusCode = LibNavigation.getArgs(props, 'status', esp.isDebug("filter") ? '0,1,2,3,4,5,6,7,10' : '1')
|
|
74
74
|
const [status, setStatus] = useSafeState(statusCode)
|
|
75
75
|
const [code, setCode] = useSafeState(statusCode)
|
|
76
76
|
const [badge, setBadge] = useSafeState<number>(0)
|
|
@@ -238,9 +238,9 @@ export default function m(props: EventOrderProps): any {
|
|
|
238
238
|
<LibTextstyle textStyle='footnote' text={esp.lang("event/order", "Transaction_Status")} style={applyStyle({ fontWeight: 'bold', fontSize: 14, color: "#4E4E4E" })} />
|
|
239
239
|
</View>
|
|
240
240
|
<ScrollView>
|
|
241
|
-
<Pressable onPress={() => { setCode('0,1,2,3,4,5') }} style={applyStyle({ flexDirection: 'row', alignItems: 'center', borderBottomWidth: 1, borderBottomColor: '#e6e6e6', paddingVertical: 12 })}>
|
|
241
|
+
<Pressable onPress={() => { setCode('0,1,2,3,4,5,6,7,10') }} style={applyStyle({ flexDirection: 'row', alignItems: 'center', borderBottomWidth: 1, borderBottomColor: '#e6e6e6', paddingVertical: 12 })}>
|
|
242
242
|
<LibTextstyle textStyle='footnote' text={esp.lang("event/order", "All_Transaction_Status")} style={applyStyle({ flex: 1, fontWeight: 'bold', fontSize: 10, color: "#4E4E4E" })} />
|
|
243
|
-
<LibIcon.Ionicons name={code == '0,1,2,3,4,5' ? 'radio-button-on' : 'radio-button-off'} color={code == '0,1,2,3,4,5' ? LibStyle.colorPrimary : '#4E4E4E'} />
|
|
243
|
+
<LibIcon.Ionicons name={code == '0,1,2,3,4,5,6,7,10' ? 'radio-button-on' : 'radio-button-off'} color={code == '0,1,2,3,4,5,6,7,10' ? LibStyle.colorPrimary : '#4E4E4E'} />
|
|
244
244
|
</Pressable>
|
|
245
245
|
{
|
|
246
246
|
allStatus?.filter((item: any) => item.publish == 1).map((it: any, i: number) => {
|
|
@@ -445,14 +445,16 @@ export default function m(props: EventOrder_waitingProps): any {
|
|
|
445
445
|
|
|
446
446
|
<View style={{ height: 3, backgroundColor: "#f6f6f6" }} />
|
|
447
447
|
<Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#9b9b9b", marginTop: 14 }}>{esp.lang("event/order_detail", "Checked_within_10_minutes_after_payment_is_made")}</Text>
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
448
|
+
{
|
|
449
|
+
result?.payment?.description != null &&
|
|
450
|
+
<TouchableOpacity onPress={() => {
|
|
451
|
+
LibNavigation.navigate('event/order_detail_payment', {
|
|
452
|
+
data: result?.payment?.description
|
|
453
|
+
})
|
|
454
|
+
}}>
|
|
455
|
+
<Text allowFontScaling={false} style={{ fontSize: 10, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, color: "#16a085", marginTop: 7 }}>{esp.lang("event/order_detail", "payment_instruction")}</Text>
|
|
456
|
+
</TouchableOpacity>
|
|
457
|
+
}
|
|
456
458
|
|
|
457
459
|
</View>
|
|
458
460
|
</LibScroll>
|
package/event/order_status.tsx
CHANGED
|
@@ -42,7 +42,7 @@ export default function m(): EventOrder_status[] {
|
|
|
42
42
|
publish: 1
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
code: '2,4
|
|
45
|
+
code: '2,4',
|
|
46
46
|
text: esp.lang("event/order_status", "cancel"),
|
|
47
47
|
module: 'event/order',
|
|
48
48
|
icon: 'icons/event/ic_notification_event_cancel.png',
|
|
@@ -61,6 +61,13 @@ export default function m(): EventOrder_status[] {
|
|
|
61
61
|
module: 'event/review',
|
|
62
62
|
icon: 'icons/event/ic_notification_event_done.png',
|
|
63
63
|
publish: esp.isDebug("review") ? 1 : 0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
code: '10',
|
|
67
|
+
text: esp.lang("event/order_status", "system_cancel"),
|
|
68
|
+
module: 'event/order',
|
|
69
|
+
icon: 'icons/event/ic_notification_event_cancel.png',
|
|
70
|
+
publish: 1
|
|
64
71
|
}
|
|
65
72
|
]
|
|
66
73
|
}
|
package/id.json
CHANGED
|
@@ -1168,11 +1168,12 @@
|
|
|
1168
1168
|
},
|
|
1169
1169
|
"event/order_status": {
|
|
1170
1170
|
"already_paid": "Sudah Dibayar",
|
|
1171
|
-
"cancel": "
|
|
1172
|
-
"done": "
|
|
1173
|
-
"expired": "Pembayaran
|
|
1171
|
+
"cancel": "Dibatalkan Member",
|
|
1172
|
+
"done": "Sudah Dipakai",
|
|
1173
|
+
"expired": "Pembayaran Kedaluawarsa",
|
|
1174
1174
|
"refund": "Refund",
|
|
1175
1175
|
"review": "Review",
|
|
1176
|
+
"system_cancel": "Dibatalkan Sistem",
|
|
1176
1177
|
"waiting_payment": "Menunggu Pembayaran"
|
|
1177
1178
|
},
|
|
1178
1179
|
"event/order_waiting": {
|