@fto-consult/expo-ui 8.25.9 → 8.25.11

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.25.9",
3
+ "version": "8.25.11",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@emotion/react": "^11.11.1",
70
70
  "@faker-js/faker": "^8.0.2",
71
- "@fto-consult/common": "^4.25.17",
71
+ "@fto-consult/common": "^4.25.20",
72
72
  "@fto-consult/node-utils": "^1.4.7",
73
73
  "apexcharts": "^3.45.2",
74
74
  "crypto-browserify": "^3.12.0",
@@ -13,7 +13,7 @@ import {DialogProvider} from "$ecomponents/Form/FormData";
13
13
  export const CameraFacing = {back:"back",front:"front"};
14
14
  export const FlashModes = {off:{code:"off",label:"Inactif"},on:{code:"on",label:"Actif"},auto:{code:"auto",label:"Automatique"}}
15
15
  export const CameraSettingsFields = {
16
- enableTorch : {
16
+ enableTorch : false && {
17
17
  type : "switch",
18
18
  label : "Allumer la torche",
19
19
  defaultValue : false,
@@ -127,7 +127,7 @@ export default function BarCodeScanner({onScan,onGrantAccess,testID,onDenyAccess
127
127
  return <Dialog
128
128
  fullPage
129
129
  actions={[
130
- switchCameraBtn,
130
+ //switchCameraBtn,
131
131
  {
132
132
  text : "Options de la camera",
133
133
  icon : "material-settings",
@@ -167,11 +167,11 @@ export default function BarCodeScanner({onScan,onGrantAccess,testID,onDenyAccess
167
167
  onBarcodeScanned={handleBarCodeScanned}
168
168
  />
169
169
  <View style={[styles.row,theme.styles.w100]}>
170
- <Button
170
+ {false ? <Button
171
171
  primary
172
172
  {...switchCameraBtn}
173
173
  style={[theme.styles.p1]}
174
- />
174
+ />:null}
175
175
  <Button
176
176
  error
177
177
  children = {"Annuler"}
@@ -39,9 +39,8 @@ export const renderRowCell = (arg)=>{
39
39
  } else if(isFunction(columnDef.multiplicater)){
40
40
  _render = defaultDecimal(columnDef.multiplicater({...renderArgs,value:rowData[columnField]}),rowData[columnField]);
41
41
  }
42
- const cellValue = defaultVal(_render,rowData[columnField]);
43
- {
44
- _render = cellValue;
42
+ const cellValue = _render = defaultVal(_render,rowData[columnField]);
43
+ if(!React.isValidElement(_render)){
45
44
  if(!renderText && defaultStr(columnDef.format).toLowerCase() === 'hashtag'){
46
45
  _render = <Hashtag>{_render}</Hashtag>
47
46
  } else if(arrayValueExists( _type,["date","datetime","time"])){
@@ -179,7 +178,7 @@ export const renderRowCell = (arg)=>{
179
178
  if((typeof _render ==='string' || typeof _render =='number')){
180
179
  _render = <Label userSelect>{_render}</Label>
181
180
  }
182
- _render = React.isValidElement(_render)|| Array.isArray(_render)?_render:null;
181
+ _render = React.isValidElement(_render) || Array.isArray(_render)?_render:null;
183
182
  return {render:_render,style,extra,key};
184
183
  }
185
184
 
@@ -70,7 +70,7 @@ export default class FormSelectField extends Field{
70
70
  }
71
71
  return undefined;
72
72
  }
73
- isValid(...args){
73
+ isValid11(...args){
74
74
  if(this.hasNoValidSelectedValue() === true) return false;
75
75
  return super.isValid(...args);
76
76
  }
@@ -77,7 +77,6 @@ export const getFilterComponentProps = (_props)=>{
77
77
  type,
78
78
  visible,
79
79
  jsType,
80
- filterType,
81
80
  getValidValue,
82
81
  validate,
83
82
  onValidatorValid,///il s'agit de la fonction de rappel appelée immédiatement après que le validateur ait réuissie la validation
@@ -88,7 +87,7 @@ export const getFilterComponentProps = (_props)=>{
88
87
  props = defaultObj(props);
89
88
  const componentTypes = getComponentTypes();
90
89
  let component = componentTypes.TextField;
91
- type = defaultStr(filterType,jsType,type,'text').toLowerCase().replaceAll("_","").replaceAll("-","").trim();
90
+ type = defaultStr(jsType,type,'text').toLowerCase().replaceAll("_","").replaceAll("-","").trim();
92
91
  const sanitizedType = type.replaceAll("_","").toLowerCase().trim();
93
92
  props = defaultObj(props);
94
93
  props.label = defaultStr(label,text);