esoftplay-event 0.0.0-a → 0.0.0-b

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 (172) hide show
  1. package/event/additional.tsx +4 -4
  2. package/event/additional_input.tsx +11 -11
  3. package/event/alert.tsx +32 -0
  4. package/event/artist.tsx +166 -0
  5. package/event/artist_detail.tsx +520 -0
  6. package/event/artist_detail_multi.tsx +548 -0
  7. package/event/badge.tsx +22 -0
  8. package/event/button.tsx +40 -0
  9. package/event/config.ts +4 -0
  10. package/event/countdown.tsx +5 -5
  11. package/event/countdown_base.tsx +83 -0
  12. package/event/counter_cashier.tsx +11 -11
  13. package/event/counter_cashier_report.tsx +6 -6
  14. package/event/counter_cashier_sell.tsx +7 -7
  15. package/event/counter_eo.tsx +19 -19
  16. package/event/counter_history.tsx +4 -4
  17. package/event/counter_lm.tsx +16 -16
  18. package/event/counter_report.tsx +4 -4
  19. package/event/counter_report_breakdown.tsx +2 -2
  20. package/event/counter_report_detail.tsx +12 -12
  21. package/event/counter_report_detail_list.tsx +4 -4
  22. package/event/counter_request.tsx +4 -4
  23. package/event/counter_request_detail.tsx +6 -6
  24. package/event/counter_send.tsx +6 -6
  25. package/event/counter_user_list.tsx +13 -13
  26. package/event/coupon.tsx +4 -4
  27. package/event/coupon_claim.tsx +4 -4
  28. package/event/coupon_claim_detail.tsx +8 -7
  29. package/event/coupon_claim_history.tsx +9 -9
  30. package/event/coupon_claim_reimburse.tsx +7 -8
  31. package/event/coupon_claim_reimburse_history.tsx +4 -4
  32. package/event/coupon_claim_reimburse_history_detail.tsx +4 -4
  33. package/event/coupon_claim_staff.tsx +10 -10
  34. package/event/coupon_detail.tsx +3 -3
  35. package/event/coupon_event_list.tsx +4 -4
  36. package/event/coupon_generate.tsx +4 -4
  37. package/event/coupon_generate_event.tsx +4 -4
  38. package/event/coupon_generate_list.tsx +2 -2
  39. package/event/date_picker.tsx +5 -5
  40. package/event/detail.tsx +12 -15
  41. package/event/entrance.tsx +17 -17
  42. package/event/entrance_again.tsx +22 -23
  43. package/event/entrance_failed.tsx +15 -15
  44. package/event/entrance_idcard.tsx +23 -23
  45. package/event/entrance_list.tsx +24 -24
  46. package/event/entrance_list_item.tsx +6 -6
  47. package/event/entrance_log.tsx +24 -24
  48. package/event/entrance_success.tsx +8 -8
  49. package/event/entrance_warning.tsx +14 -14
  50. package/event/exchange_reward.tsx +2 -2
  51. package/event/exchange_reward_result.tsx +7 -8
  52. package/event/exchange_ticket.tsx +11 -12
  53. package/event/exchange_ticket_list.tsx +10 -12
  54. package/event/exchange_ticket_result.tsx +11 -12
  55. package/event/exit.tsx +9 -9
  56. package/event/exit_failed.tsx +12 -12
  57. package/event/exit_list.tsx +15 -15
  58. package/event/exit_log.tsx +22 -22
  59. package/event/exit_success.tsx +8 -8
  60. package/event/exit_temporary.tsx +21 -21
  61. package/event/expander.tsx +36 -0
  62. package/event/fab.tsx +24 -0
  63. package/event/firebase_socket.ts +365 -0
  64. package/event/hall_in.tsx +13 -13
  65. package/event/hall_in_failed.tsx +22 -22
  66. package/event/hall_in_list.tsx +17 -17
  67. package/event/hall_in_log.tsx +24 -24
  68. package/event/hall_in_success.tsx +8 -8
  69. package/event/hall_out.tsx +13 -13
  70. package/event/hall_out_failed.tsx +11 -11
  71. package/event/hall_out_list.tsx +17 -17
  72. package/event/hall_out_log.tsx +24 -24
  73. package/event/hall_out_success.tsx +8 -8
  74. package/event/header.tsx +119 -0
  75. package/event/label_input.tsx +23 -0
  76. package/event/list.tsx +20 -21
  77. package/event/list_filter.tsx +12 -13
  78. package/event/list_item.tsx +76 -0
  79. package/event/list_item2.tsx +78 -0
  80. package/event/loading_page.tsx +248 -0
  81. package/event/log.tsx +54 -54
  82. package/event/message.tsx +32 -0
  83. package/event/order.tsx +323 -0
  84. package/event/order_detail.tsx +813 -0
  85. package/event/order_detail_payment.tsx +153 -0
  86. package/event/order_detail_upgrade.tsx +164 -0
  87. package/event/order_detail_upgrade_button.tsx +60 -0
  88. package/event/order_detail_upgrade_payment.tsx +221 -0
  89. package/event/order_detail_visitor.tsx +196 -0
  90. package/event/order_detail_waiting.tsx +520 -0
  91. package/event/order_history.tsx +101 -0
  92. package/event/order_item.tsx +118 -0
  93. package/event/order_lottery.tsx +172 -0
  94. package/event/order_reschedule.tsx +439 -0
  95. package/event/order_reschedule_list.tsx +85 -0
  96. package/event/order_share_to.tsx +219 -0
  97. package/event/order_share_to_detail.tsx +181 -0
  98. package/event/order_status.tsx +66 -0
  99. package/event/order_waiting.tsx +143 -0
  100. package/event/pending_trx.tsx +50 -0
  101. package/event/qc_idcard.tsx +10 -10
  102. package/event/qc_idcard_failed.tsx +4 -4
  103. package/event/qc_idcard_success.tsx +4 -4
  104. package/event/qr_bg.tsx +22 -0
  105. package/event/queue_out.tsx +3 -3
  106. package/event/queue_pricing.tsx +2 -3
  107. package/event/rating.tsx +49 -0
  108. package/event/rating_mini.tsx +35 -0
  109. package/event/review.tsx +3 -3
  110. package/event/review_add.tsx +8 -8
  111. package/event/review_detail.tsx +4 -4
  112. package/event/review_item.tsx +4 -4
  113. package/event/scan_item.tsx +2 -2
  114. package/event/schedule.tsx +8 -9
  115. package/event/seat.tsx +16 -18
  116. package/event/seat_autopick.tsx +4 -4
  117. package/event/seat_map.tsx +4 -4
  118. package/event/seat_map_test.tsx +2 -2
  119. package/event/section_menu.tsx +40 -0
  120. package/event/sheet.tsx +73 -0
  121. package/event/slider.tsx +46 -0
  122. package/event/step.tsx +29 -0
  123. package/event/ticket_list.tsx +15 -16
  124. package/event/ticket_list2.tsx +16 -17
  125. package/event/tms.tsx +4 -4
  126. package/event/tms_add.tsx +7 -8
  127. package/event/tms_add_result.tsx +4 -4
  128. package/event/tms_check_code.tsx +160 -0
  129. package/event/tms_check_ticket.tsx +72 -0
  130. package/event/tms_check_ticket_result.tsx +384 -0
  131. package/event/tms_dashboard.tsx +7 -7
  132. package/event/tms_event_list.tsx +46 -43
  133. package/event/tms_gate.tsx +96 -0
  134. package/event/tms_home.tsx +639 -0
  135. package/event/tms_idcard.tsx +203 -0
  136. package/event/tms_in.tsx +215 -0
  137. package/event/tms_in_again.tsx +199 -0
  138. package/event/tms_in_failed.tsx +190 -0
  139. package/event/tms_in_hall.tsx +148 -0
  140. package/event/tms_in_hall_failed.tsx +270 -0
  141. package/event/tms_in_hall_list.tsx +222 -0
  142. package/event/tms_in_hall_log.tsx +134 -0
  143. package/event/tms_in_hall_success.tsx +132 -0
  144. package/event/tms_in_list.tsx +264 -0
  145. package/event/tms_in_log.tsx +130 -0
  146. package/event/tms_in_success.tsx +155 -0
  147. package/event/tms_in_warning.tsx +91 -0
  148. package/event/tms_list_item.tsx +88 -0
  149. package/event/tms_log.tsx +435 -0
  150. package/event/tms_out.tsx +91 -0
  151. package/event/tms_out_failed.tsx +135 -0
  152. package/event/tms_out_hall.tsx +143 -0
  153. package/event/tms_out_hall_failed.tsx +133 -0
  154. package/event/tms_out_hall_list.tsx +215 -0
  155. package/event/tms_out_hall_log.tsx +133 -0
  156. package/event/tms_out_hall_success.tsx +130 -0
  157. package/event/tms_out_list.tsx +118 -0
  158. package/event/tms_out_log.tsx +131 -0
  159. package/event/tms_out_success.tsx +143 -0
  160. package/event/tms_out_temporary.tsx +226 -0
  161. package/event/toggle.tsx +30 -0
  162. package/event/transaction.ts +34 -0
  163. package/event/turnstile_event_gate.tsx +2 -2
  164. package/event/turnstile_event_list.tsx +4 -4
  165. package/event/turnstile_event_ticket.tsx +4 -4
  166. package/event/turnstile_settings.tsx +11 -11
  167. package/event/turnstile_settings_otp.tsx +4 -4
  168. package/event/turnstile_settings_status.tsx +2 -2
  169. package/event/voucher.tsx +9 -10
  170. package/event/voucher_multi.tsx +4 -5
  171. package/id.json +644 -0
  172. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  // withHooks
2
2
  import { useEffect } from 'react';
3
3
 
4
- import { BigbangGate_infoProperty } from 'esoftplay/cache/bigbang/gate_info/import';
5
- import { EventExit_successProperty } from 'esoftplay/cache/event/exit_success/import';
6
- import { EventLogProperty } from 'esoftplay/cache/event/log/import';
4
+ import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
5
+ import { EventTms_out_successProperty } from 'esoftplay/cache/event/tms_out_success/import';
6
+ import { EventTms_logProperty } from 'esoftplay/cache/event/tms_log/import';
7
7
  import { LibLoading } from 'esoftplay/cache/lib/loading/import';
8
8
  import { LibStyle } from 'esoftplay/cache/lib/style/import';
9
9
  import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
@@ -17,10 +17,10 @@ import { Text, View } from 'react-native';
17
17
  import Pressable from '../lib/pressable';
18
18
 
19
19
 
20
- export interface EventExit_logArgs {
20
+ export interface EventTms_out_logArgs {
21
21
 
22
22
  }
23
- export interface EventExit_logProps {
23
+ export interface EventTms_out_logProps {
24
24
  onPress: (type: string, title: string) => void
25
25
  }
26
26
 
@@ -48,22 +48,22 @@ function Item(props: ExitLogItem) {
48
48
  }
49
49
 
50
50
 
51
- export default function m(props: EventExit_logProps): any {
51
+ export default function m(props: EventTms_out_logProps): any {
52
52
 
53
- const logExit = BigbangGate_infoProperty.counterState().useSelector(s => s)
54
- const backupExit = EventExit_successProperty.syncTicketExit().useSelector(s => s)
53
+ const logExit = EventTms_homeProperty.counterState().useSelector(s => s)
54
+ const backupExit = EventTms_out_successProperty.syncTicketExit().useSelector(s => s)
55
55
  const [loading, setLoading] = useSafeState<boolean>(true)
56
56
  const timeout = useTimeout()
57
57
 
58
58
  function syncExitData() {
59
- BigbangGate_infoProperty.subscribeSyncExit().trigger(EventExit_successProperty.syncTicketExit().get())
59
+ EventTms_homeProperty.subscribeSyncExit().trigger(EventTms_out_successProperty.syncTicketExit().get())
60
60
  timeout(() => {
61
61
  setLoading(false)
62
62
  }, 1000)
63
63
  }
64
64
 
65
65
  function forceSyncExitData() {
66
- BigbangGate_infoProperty.subscribeSyncExitReset().trigger(EventExit_successProperty.syncTicketExit().get())
66
+ EventTms_homeProperty.subscribeSyncExitReset().trigger(EventTms_out_successProperty.syncTicketExit().get())
67
67
  timeout(() => {
68
68
  setLoading(false)
69
69
  }, 1000)
@@ -78,35 +78,35 @@ export default function m(props: EventExit_logProps): any {
78
78
  return <LibLoading />
79
79
  }
80
80
 
81
- const sumValue = EventLogProperty.sumValuesPerCategory(logExit)
81
+ const sumValue = EventTms_logProperty.sumValuesPerCategory(logExit)
82
82
 
83
83
  return (
84
84
  <View style={{ flex: 1, backgroundColor: '#fff', margin: 17, marginTop: 0, paddingBottom: 10, marginBottom: 0, borderBottomRightRadius: 10, borderBottomLeftRadius: 10, ...LibStyle.elevation(2) }}>
85
- <Item subtitle={esp.lang("event/exit_log", "ticket_scan_out")} text={esp.lang("event/exit_log", "scan_out")} value={sumValue?.out_scan} onPress={() => {
85
+ <Item subtitle={esp.lang("event/tms_out_log", "ticket_scan_out")} text={esp.lang("event/tms_out_log", "scan_out")} value={sumValue?.out_scan} onPress={() => {
86
86
  if (sumValue?.out_scan) {
87
- props.onPress("out_scan", esp.lang("event/exit_log", "scan_out"))
87
+ props.onPress("out_scan", esp.lang("event/tms_out_log", "scan_out"))
88
88
  }
89
89
 
90
90
  }} />
91
- <Item subtitle={esp.lang("event/exit_log", "qty_scanned_out")} text={esp.lang("event/exit_log", "qty_ticket_scan_out")} value={sumValue?.out_ticket} onPress={() => {
91
+ <Item subtitle={esp.lang("event/tms_out_log", "qty_scanned_out")} text={esp.lang("event/tms_out_log", "qty_ticket_scan_out")} value={sumValue?.out_ticket} onPress={() => {
92
92
  if (sumValue?.out_ticket) {
93
- props.onPress("out_ticket", esp.lang("event/exit_log", "qty_ticket_scan_out"))
93
+ props.onPress("out_ticket", esp.lang("event/tms_out_log", "qty_ticket_scan_out"))
94
94
  }
95
95
 
96
96
  }} />
97
- <Item subtitle={esp.lang("event/exit_log", "ticket_scanned_out")} text={esp.lang("event/exit_log", "opengate_out")} value={sumValue?.out_opengate} onPress={() => {
97
+ <Item subtitle={esp.lang("event/tms_out_log", "ticket_scanned_out")} text={esp.lang("event/tms_out_log", "opengate_out")} value={sumValue?.out_opengate} onPress={() => {
98
98
  if (sumValue?.out_opengate) {
99
- props.onPress("out_opengate", esp.lang("event/exit_log", "opengate_out"))
99
+ props.onPress("out_opengate", esp.lang("event/tms_out_log", "opengate_out"))
100
100
  }
101
101
 
102
102
  }} />
103
- <Item subtitle={esp.lang("event/exit_log", "data_send_to_server")} text={esp.lang("event/exit_log", "data_send")} value={sumValue?.out_send} onPress={() => {
103
+ <Item subtitle={esp.lang("event/tms_out_log", "data_send_to_server")} text={esp.lang("event/tms_out_log", "data_send")} value={sumValue?.out_send} onPress={() => {
104
104
  if (sumValue?.out_send) {
105
- props.onPress("out_send", esp.lang("event/exit_log", "data_send"))
105
+ props.onPress("out_send", esp.lang("event/tms_out_log", "data_send"))
106
106
  }
107
107
 
108
108
  }} />
109
- <Item subtitle={esp.lang("event/exit_log", "data_not_send_to_server")} text={esp.lang("event/exit_log", "data_not_send")} value={backupExit.length} valuecolor={LibStyle.colorRed} onPress={() => {
109
+ <Item subtitle={esp.lang("event/tms_out_log", "data_not_send_to_server")} text={esp.lang("event/tms_out_log", "data_not_send")} value={backupExit.length} valuecolor={LibStyle.colorRed} onPress={() => {
110
110
 
111
111
  }} />
112
112
 
@@ -118,12 +118,12 @@ export default function m(props: EventExit_logProps): any {
118
118
  setLoading(true)
119
119
  forceSyncExitData()
120
120
  }}>
121
- <Text allowFontScaling={false} style={{ textAlign: 'center' }}>{esp.lang("event/exit_log", "waiting")}<Text style={{ color: LibStyle.colorBlue, textDecorationStyle: 'solid', textDecorationLine: 'underline' }}>{esp.lang("event/exit_log", "click")}</Text> {esp.lang("event/exit_log", "re_try")}</Text>
121
+ <Text allowFontScaling={false} style={{ textAlign: 'center' }}>{esp.lang("event/tms_out_log", "waiting")}<Text style={{ color: LibStyle.colorBlue, textDecorationStyle: 'solid', textDecorationLine: 'underline' }}>{esp.lang("event/tms_out_log", "click")}</Text> {esp.lang("event/tms_out_log", "re_try")}</Text>
122
122
  </Pressable>
123
123
  } >
124
124
  <LibTextstyle textStyle='callout'
125
125
  style={{ textAlign: 'center', marginTop: 15 }}
126
- text={esp.lang("event/exit_log", "all_data_send")} />
126
+ text={esp.lang("event/tms_out_log", "all_data_send")} />
127
127
  </UseCondition>
128
128
  </View>
129
129
  </View >
@@ -1,5 +1,5 @@
1
1
  // withHooks
2
- import { BigbangGate_infoProperty } from 'esoftplay/cache/bigbang/gate_info/import';
2
+ import { EventTms_homeProperty } from 'esoftplay/cache/event/tms_home/import';
3
3
  import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
4
4
  import { LibObject } from 'esoftplay/cache/lib/object/import';
5
5
  import { LibPicture } from 'esoftplay/cache/lib/picture/import';
@@ -15,10 +15,10 @@ import React from 'react';
15
15
  import { Animated, Easing, Pressable, Text, View } from 'react-native';
16
16
 
17
17
 
18
- export interface EventExit_successArgs {
18
+ export interface EventTms_out_successArgs {
19
19
 
20
20
  }
21
- export interface EventExit_successProps {
21
+ export interface EventTms_out_successProps {
22
22
 
23
23
  }
24
24
 
@@ -28,7 +28,7 @@ export function syncTicketExit(): useGlobalReturn<any[]> {
28
28
  }
29
29
 
30
30
 
31
- export default function m(props: EventExit_successProps): any {
31
+ export default function m(props: EventTms_out_successProps): any {
32
32
  const { scan_type, data, url, post, url_ticket_update, url_ticket_detail, price_type, gate_type, event_id, selectGate, typeScanner, event_title, configPriority }: any = LibNavigation.getArgsAll<any>(props)
33
33
 
34
34
  const [isPaused, setIsPaused] = useSafeState<boolean>(false)
@@ -55,7 +55,7 @@ export default function m(props: EventExit_successProps): any {
55
55
  // script next nya disini
56
56
  LibNavigation.replace('component/scanner', {
57
57
  selectGate: selectGate,
58
- fromPage: 'bigbang/gate_info',
58
+ fromPage: 'event/tms_home',
59
59
  event_id: event_id,
60
60
  event_title: event_title,
61
61
  typeScanner: typeScanner,
@@ -81,7 +81,7 @@ export default function m(props: EventExit_successProps): any {
81
81
 
82
82
  useEffect(() => {
83
83
  // sementara price_id tak jupuk index 0
84
- BigbangGate_infoProperty.addCounterOutOpenGate(1, post?.price_id?.[0])
84
+ EventTms_homeProperty.addCounterOutOpenGate(1, post?.price_id?.[0])
85
85
  dataListTicketExit?.get()
86
86
  createDataExit()
87
87
  animateProgressBar()
@@ -89,7 +89,7 @@ export default function m(props: EventExit_successProps): any {
89
89
 
90
90
  function createDataExit() {
91
91
  dataListTicketExit.set(LibObject.push(dataListTicketExit.get(), [url, post])())
92
- BigbangGate_infoProperty.subscribeSyncExit().trigger(dataListTicketExit.get())
92
+ EventTms_homeProperty.subscribeSyncExit().trigger(dataListTicketExit.get())
93
93
  }
94
94
 
95
95
  let uniquePrices: any = {};
@@ -133,7 +133,7 @@ export default function m(props: EventExit_successProps): any {
133
133
  colors={['rgba(255,255,255,0)', 'rgba(0,0,0,0.55)', 'rgba(0,0,0,1)', 'rgba(0,0,0,1)']}>
134
134
  <View style={{ flex: 1, padding: 15, justifyContent: 'flex-end', paddingBottom: 100, alignContent: 'center', alignItems: 'center' }}>
135
135
  <Text allowFontScaling={false} style={{ textAlign: 'center', flexWrap: 'wrap', fontSize: 35, letterSpacing: 2, fontWeight: '900', color: '#fff' }}>{uniquePriceNames.join(',')}</Text>
136
- <Text allowFontScaling={false} style={{ textAlign: 'center', fontSize: 26, marginTop: 20, color: LibStyle.colorRed }}>{esp.lang("event/exit_success", "exit")}</Text>
136
+ <Text allowFontScaling={false} style={{ textAlign: 'center', fontSize: 26, marginTop: 20, color: LibStyle.colorRed }}>{esp.lang("event/tms_out_success", "exit")}</Text>
137
137
  </View>
138
138
 
139
139
  </LinearGradient>
@@ -1,5 +1,4 @@
1
1
  // withHooks
2
- import { ComponentHeader } from 'esoftplay/cache/component/header/import';
3
2
  import { EventScan_item } from 'esoftplay/cache/event/scan_item/import';
4
3
  import { LibCurl } from 'esoftplay/cache/lib/curl/import';
5
4
  import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
@@ -11,7 +10,8 @@ import { LibStyle } from 'esoftplay/cache/lib/style/import';
11
10
  import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
12
11
 
13
12
  import { applyStyle } from 'esoftplay';
14
- import { ComponentButton } from 'esoftplay/cache/component/button/import';
13
+ import { EventButton } from 'esoftplay/cache/event/button/import';
14
+ import { EventHeader } from 'esoftplay/cache/event/header/import';
15
15
  import { LibPicture } from 'esoftplay/cache/lib/picture/import';
16
16
  import esp from 'esoftplay/esp';
17
17
  import useSafeState from 'esoftplay/state';
@@ -19,13 +19,13 @@ import React, { useEffect } from 'react';
19
19
  import { ScrollView, Text, View } from 'react-native';
20
20
 
21
21
 
22
- export interface EventExit_temporaryArgs {
22
+ export interface EventTms_out_temporaryArgs {
23
23
 
24
24
  }
25
- export interface EventExit_temporaryProps {
25
+ export interface EventTms_out_temporaryProps {
26
26
 
27
27
  }
28
- export default function m(props: EventExit_temporaryProps): any {
28
+ export default function m(props: EventTms_out_temporaryProps): any {
29
29
  const user_qr = LibNavigation.getArgs(props, 'qr_code')
30
30
  const { scan_type, event_id, selectGate, typeScanner }: any = LibNavigation.getArgsAll(props)
31
31
  const [result, setResult] = useSafeState<any>(undefined)
@@ -65,7 +65,7 @@ export default function m(props: EventExit_temporaryProps): any {
65
65
  setResult(c)
66
66
 
67
67
  }, (error) => {
68
- LibDialog.warningConfirm(esp.lang("event/exit_temporary", "fault"), error?.message, esp.lang("event/exit_temporary", "back"), () => LibNavigation.back(), "", () => { })
68
+ LibDialog.warningConfirm(esp.lang("event/tms_out_temporary", "fault"), error?.message, esp.lang("event/tms_out_temporary", "back"), () => LibNavigation.back(), "", () => { })
69
69
  }, 1)
70
70
  }
71
71
 
@@ -74,7 +74,7 @@ export default function m(props: EventExit_temporaryProps): any {
74
74
  let a = list.filter((item: any) => item.checked == 1).map((it: any) => it.id)
75
75
 
76
76
  if (a.length == 0) {
77
- LibToastProperty.show(esp.lang("event/exit_temporary", "select_ticket"))
77
+ LibToastProperty.show(esp.lang("event/tms_out_temporary", "select_ticket"))
78
78
  return
79
79
  }
80
80
  var post = {
@@ -83,12 +83,12 @@ export default function m(props: EventExit_temporaryProps): any {
83
83
  gate_id: selectGate.id
84
84
  }
85
85
 
86
- LibProgress.show(esp.lang("event/exit_temporary", "wait"))
86
+ LibProgress.show(esp.lang("event/tms_out_temporary", "wait"))
87
87
  new LibCurl('event_tms_out_temporary_confirm', post, (result, msg) => {
88
88
  LibProgress.hide()
89
- LibDialog.confirm(esp.lang("event/exit_temporary", "info"), msg, esp.lang("event/exit_temporary", "ok"), () => {
89
+ LibDialog.confirm(esp.lang("event/tms_out_temporary", "info"), msg, esp.lang("event/tms_out_temporary", "ok"), () => {
90
90
  LibNavigation.replace('component/scanner', {
91
- fromPage: 'bigbang/gate_info',
91
+ fromPage: 'event/tms_home',
92
92
  isTemporaryExit: true,
93
93
  event_id: event_id,
94
94
  selectGate: selectGate,
@@ -97,7 +97,7 @@ export default function m(props: EventExit_temporaryProps): any {
97
97
  })
98
98
  }, "", () => { })
99
99
  }, (error) => {
100
- LibDialog.warning(esp.lang("event/exit_temporary", "oops"), error?.message)
100
+ LibDialog.warning(esp.lang("event/tms_out_temporary", "oops"), error?.message)
101
101
  LibProgress.hide()
102
102
  }, 1)
103
103
  }
@@ -127,10 +127,10 @@ export default function m(props: EventExit_temporaryProps): any {
127
127
  colorText={item?.status == 1 ? "#000" : LibStyle.colorBgGrey}
128
128
  label={
129
129
  item.status == 0 ?
130
- esp.lang("event/exit_temporary", "used") :
130
+ esp.lang("event/tms_out_temporary", "used") :
131
131
  item.checked == 0 ?
132
- esp.lang("event/exit_temporary", "use") :
133
- esp.lang("event/exit_temporary", "cancel")
132
+ esp.lang("event/tms_out_temporary", "use") :
133
+ esp.lang("event/tms_out_temporary", "cancel")
134
134
  }
135
135
  onPress={() => {
136
136
  if (item?.status == 1 && item?.is_limit == 0) {
@@ -165,12 +165,12 @@ export default function m(props: EventExit_temporaryProps): any {
165
165
  <Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: "#000", marginBottom: 4, fontSize: 16 })}>{item.exhibitor_name}</Text>
166
166
  {
167
167
  item.status == 1 &&
168
- <ComponentButton style={applyStyle({ marginTop: 10, alignSelf: 'flex-end', width: LibStyle.width / 3, backgroundColor: (item.status == 0 || item.is_limit == 1) ? LibStyle.colorLightGrey : (item.checked == 0) ? LibStyle.colorGreen : LibStyle.colorRed })} label={
168
+ <EventButton style={applyStyle({ marginTop: 10, alignSelf: 'flex-end', width: LibStyle.width / 3, backgroundColor: (item.status == 0 || item.is_limit == 1) ? LibStyle.colorLightGrey : (item.checked == 0) ? LibStyle.colorGreen : LibStyle.colorRed })} label={
169
169
  item.status == 0 ?
170
- esp.lang("event/exit_temporary", "used") :
170
+ esp.lang("event/tms_out_temporary", "used") :
171
171
  item.hasOwnProperty("checked") && item.checked == 0 ?
172
- esp.lang("event/exit_temporary", "use") :
173
- esp.lang("event/exit_temporary", "cancel")
172
+ esp.lang("event/tms_out_temporary", "use") :
173
+ esp.lang("event/tms_out_temporary", "cancel")
174
174
  } fontColor={"#fff"} onPress={() => {
175
175
  let a = LibObject.set(result, item.checked == 1 ? 0 : 1)('staff', i, 'checked')
176
176
  setResult(a)
@@ -197,7 +197,7 @@ export default function m(props: EventExit_temporaryProps): any {
197
197
 
198
198
  return (
199
199
  <View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
200
- <ComponentHeader title={esp.lang("event/exit_temporary", "temp_out")} />
200
+ <EventHeader title={esp.lang("event/tms_out_temporary", "temp_out")} />
201
201
 
202
202
  <ScrollView>
203
203
  <View style={{ margin: 15, marginBottom: 0, borderRadius: 7, overflow: 'hidden' }}>
@@ -212,8 +212,8 @@ export default function m(props: EventExit_temporaryProps): any {
212
212
  </View>
213
213
  </ScrollView>
214
214
  <View style={{ padding: 10, backgroundColor: '#fff' }}>
215
- <ComponentButton
216
- label={esp.lang("event/exit_temporary", "btn_exit")}
215
+ <EventButton
216
+ label={esp.lang("event/tms_out_temporary", "btn_exit")}
217
217
  backgroundColor={LibStyle.colorRed}
218
218
  onPress={() => {
219
219
  quitTemporary()
@@ -0,0 +1,36 @@
1
+ // withHooks
2
+
3
+ import { LibIcon } from 'esoftplay/cache/lib/icon/import';
4
+ import { LibStyle } from 'esoftplay/cache/lib/style/import';
5
+ import useSafeState from 'esoftplay/state';
6
+ import React from 'react';
7
+ import { TouchableOpacity, View } from 'react-native';
8
+
9
+
10
+ export interface EventExpanderArgs {
11
+
12
+ }
13
+ export interface EventExpanderProps {
14
+ style?: any,
15
+ children?: any,
16
+ minHeight?: number,
17
+ defaultExpandStatus?: boolean
18
+ }
19
+ export default function m(props: EventExpanderProps): any {
20
+ const [expand, setExpand] = useSafeState(!!props.defaultExpandStatus)
21
+ const minHeight = props.minHeight || 80
22
+ return (
23
+ <View style={props.style} >
24
+ <View style={{ maxHeight: expand ? undefined : minHeight, overflow: 'hidden' }} >
25
+ {props.children}
26
+ </View>
27
+ {
28
+ props?.children?.props?.children?.length > 6 &&
29
+ <TouchableOpacity activeOpacity={1} onPress={() => setExpand((x) => !x)} style={styleId_ZvFdlx} >
30
+ <LibIcon.SimpleLineIcons name={expand ? "arrow-up" : "arrow-down"} color={LibStyle.colorPrimary} size={16} />
31
+ </TouchableOpacity>
32
+ }
33
+ </View>
34
+ )
35
+ }
36
+ const styleId_ZvFdlx: any = { height: 40, alignItems: 'center', justifyContent: 'center', backgroundColor: 'white' }
package/event/fab.tsx ADDED
@@ -0,0 +1,24 @@
1
+ // withHooks
2
+
3
+ import { LibIcon } from 'esoftplay/cache/lib/icon/import';
4
+ import { LibStyle } from 'esoftplay/cache/lib/style/import';
5
+ import React from 'react';
6
+ import { TouchableOpacity } from 'react-native';
7
+
8
+
9
+ export interface EventFabArgs {
10
+
11
+ }
12
+ export interface EventFabProps {
13
+ onPress: () => void,
14
+ icon: any,
15
+ colorText?: string,
16
+ colorBg?: string
17
+ }
18
+ export default function m(props: EventFabProps): any {
19
+ return (
20
+ <TouchableOpacity onPress={props.onPress} style={{ alignContent: 'center', alignItems: 'center', justifyContent: 'center', height: 50, width: 50, borderRadius: 25, backgroundColor: props.colorBg ? props.colorBg : '#51b596', position: 'absolute', ...LibStyle.elevation(3), bottom: 20, right: 20 }}>
21
+ <LibIcon name={props.icon} color={props.colorText ? props.colorText : "#fff"} />
22
+ </TouchableOpacity>
23
+ )
24
+ }