@fto-consult/expo-ui 8.70.6 → 8.71.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.70.6",
3
+ "version": "8.71.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
6
6
  "scripts": {
@@ -2,7 +2,7 @@
2
2
  // Use of this source code is governed by a BSD-style
3
3
  // license that can be found in the LICENSE file.
4
4
  import DateLib from "$date";
5
- import React from "$react";
5
+ import React,{useState} from "$react";
6
6
  import {defaultObj,isNonNullString} from "$cutils";
7
7
  import SimpleSelect from "$ecomponents/SimpleSelect";
8
8
  import Provider from "$ecomponents/Dialog/Provider";
@@ -14,7 +14,9 @@ import { View } from "react-native";
14
14
  import Icon from "$ecomponents/Icon";
15
15
 
16
16
  const DateFormatSelector = React.forwardRef((props,ref)=>{
17
- return <SimpleSelect ref={ref} {...selectDateFormatFieldProps(props)}/>
17
+ return <SimpleSelect
18
+ ref={ref} {...selectDateFormatFieldProps(props)}
19
+ />
18
20
  });
19
21
 
20
22
  DateFormatSelector.displayName = "DateFormatSelector";
@@ -70,6 +72,9 @@ export const selectDateFormatFieldProps = ({onAdd:customOnAdd,onAddCustomFormat,
70
72
  if(typeof customOnAdd =='function'){
71
73
  customOnAdd(valueRef.current);
72
74
  }
75
+ if(typeof onAddCustomFormat =="function"){
76
+ onAddCustomFormat(valueRef.current);
77
+ }
73
78
  Provider.close();
74
79
  }
75
80
  }],
@@ -77,11 +82,11 @@ export const selectDateFormatFieldProps = ({onAdd:customOnAdd,onAddCustomFormat,
77
82
  };
78
83
  inputProps = defaultObj(props.inputProps);
79
84
  return {
80
- items : getDateFormatSelectorItems(),
81
85
  getItemValue : ({item})=>item.code,
82
86
  renderItem : dateFormatSelectorRenderItem,
83
87
  showAdd : true,
84
88
  label : "Format de date",
89
+ items : getDateFormatSelectorItems(props),
85
90
  ...props,
86
91
  inputProps : {
87
92
  enableCopy:false,...inputProps,
@@ -93,8 +98,6 @@ export const selectDateFormatFieldProps = ({onAdd:customOnAdd,onAddCustomFormat,
93
98
  },
94
99
  defaultValue : defaultStr(props.defaultValue,props.format),
95
100
  onAdd,
96
- onAdd : undefined,
97
- showAdd : false,
98
101
  }
99
102
  }
100
103
  export const getDateFormatSelectorItems = x=> Object.map(DateLib.sortedFormats,(format)=>{
@@ -1,6 +1,5 @@
1
1
  import SelectField from "./SelectField";
2
2
  import {selectDateFormatFieldProps,getDateFormatSelectorItems} from "$ecomponents/Date/FormatSelector";
3
- import DateLib from "$date";
4
3
 
5
4
  export default class FormFieldSelectDateFormat extends SelectField{
6
5
  constructor(props){
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
- "version": "8.70.3",
3
+ "version": "8.70.6",
4
4
  "url": "https://github.com/borispipo/expo-ui#readme",
5
5
  "license": "ISC"
6
6
  },
@@ -39,16 +39,6 @@ module.exports = {
39
39
  "url": "https://github.com/pchmn/expo-material3-theme#readme",
40
40
  "license": "MIT"
41
41
  },
42
- "@react-native-async-storage/async-storage": {
43
- "version": "1.21.0",
44
- "url": "https://github.com/react-native-async-storage/async-storage#readme",
45
- "license": "MIT"
46
- },
47
- "@react-native-community/datetimepicker": {
48
- "version": "7.6.1",
49
- "url": "https://github.com/react-native-community/datetimepicker#readme",
50
- "license": "MIT"
51
- },
52
42
  "@react-native-community/netinfo": {
53
43
  "version": "11.1.0",
54
44
  "url": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
@@ -109,6 +99,11 @@ module.exports = {
109
99
  "url": "https://docs.expo.dev/versions/latest/sdk/clipboard",
110
100
  "license": "MIT"
111
101
  },
102
+ "expo-document-picker": {
103
+ "version": "11.10.1",
104
+ "url": "https://docs.expo.dev/versions/latest/sdk/document-picker/",
105
+ "license": "MIT"
106
+ },
112
107
  "expo-font": {
113
108
  "version": "11.10.3",
114
109
  "url": "https://docs.expo.dev/versions/latest/sdk/font/",
@@ -194,6 +189,11 @@ module.exports = {
194
189
  "url": "https://github.com/react-native-community/react-native-svg",
195
190
  "license": "MIT"
196
191
  },
192
+ "react-native-view-shot": {
193
+ "version": "3.8.0",
194
+ "url": "https://github.com/gre/react-native-view-shot",
195
+ "license": "MIT"
196
+ },
197
197
  "react-native-webview": {
198
198
  "version": "13.6.4",
199
199
  "url": "https://github.com/react-native-webview/react-native-webview#readme",
@@ -208,5 +208,10 @@ module.exports = {
208
208
  "version": "3.0.0",
209
209
  "url": "https://github.com/browserify/stream-browserify",
210
210
  "license": "MIT"
211
+ },
212
+ "vm": {
213
+ "version": "0.1.0",
214
+ "url": "https://github.com/DiegoRBaquero/node-vm#readme",
215
+ "license": "MIT"
211
216
  }
212
217
  };