esoftplay-event 0.0.1-o → 0.0.1-p
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/order_detail.tsx +12 -4
- package/event/visitor_input.tsx +15 -4
- package/package.json +1 -1
package/config.json
CHANGED
package/event/order_detail.tsx
CHANGED
|
@@ -399,6 +399,11 @@ export default function m(props: EventOrder_detailProps): any {
|
|
|
399
399
|
<View testID='price_name' style={{ marginTop: 10, borderWidth: 5, padding: 3, borderColor: result?.color, backgroundColor: EventOrder_itemProperty.textColor(result?.color) }}>
|
|
400
400
|
<View style={{ padding: 10, backgroundColor: result?.color, justifyContent: 'center', alignContent: 'center', alignItems: 'center' }}>
|
|
401
401
|
<EventHtmltext allowFontScaling={false} numberOfLines={3} ellipsizeMode="tail" style={{ color: EventOrder_itemProperty.textColor(result?.color), alignSelf: 'center', textAlign: 'center', fontSize: 20, fontWeight: 'bold' }}> {result?.price_name}</EventHtmltext>
|
|
402
|
+
{
|
|
403
|
+
result?.ondate != "0000-00-00" &&
|
|
404
|
+
<Text allowFontScaling={false} style={{ flex: 1, marginRight: 10, marginLeft: 6, fontFamily: "Arial", fontSize: 14, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#484848" }}>{moment(result?.ondate).localeFormat("DD MMMM YYYY")}</Text>
|
|
405
|
+
}
|
|
406
|
+
|
|
402
407
|
</View>
|
|
403
408
|
</View>
|
|
404
409
|
|
|
@@ -436,10 +441,13 @@ export default function m(props: EventOrder_detailProps): any {
|
|
|
436
441
|
</View>
|
|
437
442
|
}
|
|
438
443
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
<
|
|
442
|
-
|
|
444
|
+
{
|
|
445
|
+
result?.ondate == "0000-00-00" &&
|
|
446
|
+
<View style={{ flexDirection: 'row', alignContent: 'center', alignItems: 'center' }}>
|
|
447
|
+
<LibIcon name="calendar-blank-outline" size={20} />
|
|
448
|
+
<Text allowFontScaling={false} style={{ flex: 1, marginRight: 10, marginLeft: 6, fontFamily: "Arial", fontSize: 12, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#484848" }}>{((isInvitationDate || isOnlineWithoutDate) ? esp.lang("event/order_item", "used_once") : dateRange)}</Text>
|
|
449
|
+
</View>
|
|
450
|
+
}
|
|
443
451
|
{
|
|
444
452
|
result?.use_seat == 1 &&
|
|
445
453
|
<View style={{ marginTop: 15, marginRight: 10 }}>
|
package/event/visitor_input.tsx
CHANGED
|
@@ -53,8 +53,6 @@ export default function m(props: EventVisitor_inputProps): any {
|
|
|
53
53
|
return (name) => inputsState.set(LibObject.set(inputsState.get(), name)(list_id))
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
// esp.log(url_invitation);
|
|
57
|
-
|
|
58
56
|
useEffect(() => {
|
|
59
57
|
loadData()
|
|
60
58
|
}, [])
|
|
@@ -115,8 +113,11 @@ export default function m(props: EventVisitor_inputProps): any {
|
|
|
115
113
|
setCounter(counter + 1)
|
|
116
114
|
}}>
|
|
117
115
|
<View style={applyStyle({ height: 35, width: LibStyle.width / 4, alignItems: 'center', overflow: 'visible', justifyContent: 'center', backgroundColor: '#fff' })}>
|
|
118
|
-
<
|
|
119
|
-
|
|
116
|
+
<View style={{ width: LibStyle.width / 4, }}>
|
|
117
|
+
<Text allowFontScaling={false} numberOfLines={2} ellipsizeMode='tail' style={applyStyle({ fontFamily: "Arial", fontSize: 11, fontWeight: activeTab?.id == item?.id ? "bold" : "normal", fontStyle: "normal", letterSpacing: 0, textAlign: "center", color: activeTab?.id == item?.id ? "#51b596" : "#c5c5c5" })}>{item.name}</Text>
|
|
118
|
+
<Text allowFontScaling={false} style={applyStyle({ fontFamily: "Arial", fontSize: 11, fontWeight: activeTab?.id == item?.id ? "bold" : "normal", fontStyle: "normal", letterSpacing: 0, textAlign: "center", color: activeTab?.id == item?.id ? "#51b596" : "#c5c5c5" })}>({LibUtils.number(item?.qty)})</Text>
|
|
119
|
+
</View>
|
|
120
|
+
<View style={applyStyle({ width: (LibStyle.width / 4) - 20, height: 3, backgroundColor: activeTab?.id == item?.id ? "#51b596" : "#fff", position: 'absolute', bottom: -1 })} />
|
|
120
121
|
</View>
|
|
121
122
|
</TouchableOpacity>
|
|
122
123
|
)
|
|
@@ -244,6 +245,16 @@ export default function m(props: EventVisitor_inputProps): any {
|
|
|
244
245
|
// isDebug={1}
|
|
245
246
|
key={activeTab + counter}
|
|
246
247
|
// style={{ flex: 1 }}
|
|
248
|
+
ListHeaderComponent={
|
|
249
|
+
<>
|
|
250
|
+
{
|
|
251
|
+
activeTab?.ondate != "0000-00-00" &&
|
|
252
|
+
<View style={{ margin: 15, marginBottom: 0 }}>
|
|
253
|
+
<Text allowFontScaling={false} style={{ fontWeight: 'bold', color: LibStyle.colorGreen }}>{"Tanggal berlaku " + LibUtils.moment(activeTab?.ondate).format("DD MMMM YYYY")}</Text>
|
|
254
|
+
</View>
|
|
255
|
+
}
|
|
256
|
+
</>
|
|
257
|
+
}
|
|
247
258
|
removeClippedSubviews={Platform.OS == 'android'}
|
|
248
259
|
renderItem={renderItem}
|
|
249
260
|
/>
|