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 CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "fonts": {
3
- "mono": "mono.ttf",
4
3
  "Arial": "Arial.ttf",
5
4
  "ArialBold": "ArialBold.ttf",
6
5
  "SFProText": "SFProText.ttf",
6
+ "mono": "mono.ttf",
7
7
  "MonoSpace": "MonoSpace.ttf",
8
8
  "DecoNumbers": "DecoNumbers.ttf",
9
9
  "digital": "digital.ttf"
@@ -265,52 +265,53 @@ export default function m(props: EventAdditional_inputProps): any {
265
265
  />
266
266
  </View>
267
267
 
268
- <LibSlidingup ref={dialogDatePicker}>
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
- <LibSlidingup ref={dialogDropdown} >
285
- <View style={{ width: 40, height: 3, borderRadius: 5, backgroundColor: "#fff", alignSelf: 'center', marginBottom: 10 }} />
286
- <View style={{ maxHeight: LibStyle.height - (LibStyle.height / 5), backgroundColor: 'white', borderTopLeftRadius: 15, paddingHorizontal: 25, borderTopRightRadius: 15, padding: 10 }} >
287
- <Pressable style={{ marginTop: 10, alignSelf: 'flex-end' }} onPress={() => dialogDropdown.current?.hide()}>
288
- <LibIcon name='close' color={"#c9c9c9"} />
289
- </Pressable>
290
- <Text allowFontScaling={false} style={{ fontWeight: 'bold', fontSize: 16, marginBottom: 15 }}>{dropdownData?.question}</Text>
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
- <ScrollView>
293
- {
294
- dropdownData?.options?.map((item: any, i: number) => {
295
- return (
296
- <Pressable onPress={() => {
297
- let updateValue = LibObject.set(newData, [item.id])('additions', getIdx(), 'value')
298
- let updateDisplayValue = LibObject.set(updateValue, [item.content])('additions', getIdx(), 'display_value')
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
- </ScrollView>
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
- </View>
312
- </LibSlidingup>
313
- </LibKeyboard_avoid>
311
+ </ScrollView>
312
+
313
+ </View>
314
+ </LibSlidingup>
314
315
  </View>
315
316
  )
316
317
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.0-w",
3
+ "version": "0.0.0-x",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {