esoftplay-event 0.0.0-w → 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/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
|
}
|