@fto-consult/expo-ui 5.11.3 → 5.11.4

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": "5.11.3",
3
+ "version": "5.11.4",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -71,16 +71,16 @@
71
71
  "@react-navigation/native-stack": "^6.9.12",
72
72
  "@shopify/flash-list": "^1.4.0",
73
73
  "apexcharts": "^3.40.0",
74
- "expo": "^48.0.17",
75
- "expo-camera": "~13.2.1",
76
- "expo-clipboard": "~4.1.1",
77
- "expo-font": "~11.1.1",
78
- "expo-image-picker": "~14.1.1",
79
- "expo-linking": "~4.0.1",
80
- "expo-sqlite": "~11.1.1",
81
- "expo-status-bar": "~1.4.4",
82
- "expo-system-ui": "~2.2.1",
83
- "expo-web-browser": "~12.1.1",
74
+ "expo": "^48.0.19",
75
+ "expo-camera": "^13.2.1",
76
+ "expo-clipboard": "^4.1.2",
77
+ "expo-font": "^11.1.1",
78
+ "expo-image-picker": "^14.1.1",
79
+ "expo-linking": "^4.0.1",
80
+ "expo-sqlite": "^11.1.1",
81
+ "expo-status-bar": "^1.4.4",
82
+ "expo-system-ui": "^2.2.1",
83
+ "expo-web-browser": "^12.1.1",
84
84
  "file-saver": "^2.0.5",
85
85
  "fs-extra": "^11.1.1",
86
86
  "google-libphonenumber": "^3.2.32",
@@ -1590,7 +1590,7 @@ export default class CommonDatagridComponent extends AppComponent {
1590
1590
  checkedTooltip : "Les étiquettes de valeurs seront affichées sur le graphe",
1591
1591
  checkedValue : true,
1592
1592
  uncheckedValue : false,
1593
- defaultValue : this.isDashboard()? true : false,
1593
+ defaultValue : false,
1594
1594
  },
1595
1595
  abreviateValues : {
1596
1596
  type : "switch",
@@ -2227,7 +2227,7 @@ export default class CommonDatagridComponent extends AppComponent {
2227
2227
  const dataLabelFormatter = typeof chartProps.dataLabels?.formatter =="function"? chartProps.dataLabels.formatter : undefined;
2228
2228
  const chartOptions = {
2229
2229
  ...chartProps,
2230
- dataLabels : extendObj(true,{enabled:!this.isDashboard()},chartProps.dataLabels,{
2230
+ dataLabels : extendObj(true,{enabled:false},chartProps.dataLabels,{
2231
2231
  formatter : (value, { seriesIndex, dataPointIndex, w })=> {
2232
2232
  const serie = w.config.series[seriesIndex];
2233
2233
  const serieName = serie.name;
@@ -1,6 +1,6 @@
1
1
  import {getAppBarActionsProps} from "./utils";
2
2
  import React, {Component as AppComponent} from "$react";
3
- import {isNonNullString,defaultStr,defaultObj,extendObj,isObj,isFunction,defaultFunc,uniqid} from "$cutils";
3
+ import {isNonNullString,defaultStr,defaultNumber,defaultObj,extendObj,isObj,isFunction,defaultFunc,uniqid} from "$cutils";
4
4
  import {getForm,getFormField,Forms} from "../utils";
5
5
  import Divider from "$ecomponents/Divider";
6
6
  import Surface from "$ecomponents/Surface";
@@ -191,6 +191,7 @@ export default class FormDataComponent extends AppComponent{
191
191
  const archived = data.archived ? true : false;
192
192
  const responsive = typeof formProps.responsive =='boolean' ? formProps.responsive : this.props.responsive !== false ? true : false;
193
193
  const responsiveProps = extendObj({},this.props.responsiveProps,formProps.responsiveProps);
194
+ const windowWidth = defaultNumber(formProps.windowWidth,this.props.windowWidth) || undefined;
194
195
  Object.map(fields,(field,index,i)=>{//on ignore tous les champs supposés être à ignorer
195
196
  if(field === 'divider'){
196
197
  content.push(<Divider key = {index} style={theme.styles.w100}/>)
@@ -240,6 +241,7 @@ export default class FormDataComponent extends AppComponent{
240
241
  customResponsiveProps = defaultObj(customResponsiveProps);
241
242
  content.push(<Component
242
243
  data = {data}
244
+ windowWidth = {windowWidth}
243
245
  //withBottomSheet = {this.props.withBottomSheet}
244
246
  index = {index}
245
247
  disabled = {this.props.disabled || archived}
@@ -363,6 +365,7 @@ export default class FormDataComponent extends AppComponent{
363
365
  const cStyle = flattenStyle([styles.container,{backgroundColor:theme.surfaceBackgroundColor},containerProps.style]);
364
366
  formProps.style = flattenStyle([{backgroundColor:cStyle.backgroundColor},formProps.style]);
365
367
  formProps.fields = defaultObj(formProps.fields,fields);
368
+ formProps.windowWidth = defaultNumber(formProps.windowWidth,windowWidth) || undefined;
366
369
  const content = <Form
367
370
  {...formProps}
368
371
  name={this.getFormName()}
@@ -1,21 +0,0 @@
1
- {
2
- "name": "SMART-EEM",
3
- "version": "1.0.0",
4
- "id": "com.ftc.apps.device.smarteneo",
5
- "realeaseDateStr": "1er Juin 2021",
6
- "releaseDate": "2020-05-23",
7
- "devMail": "smart-eneo@gmail.com",
8
- "devWebsite": "http://fto-consulting.com/smart-eneo/",
9
- "copyRight": "FirsTo consulting@Août 2022",
10
- "apiVersion": "1.0",
11
- "includeCredentialsOnApiFetch": false,
12
- "checkNavigationPermsOnTableOrStructData": false,
13
- "theme": {
14
- "light": {
15
- "primary": "#00AB55",
16
- "secondary": "#354448"
17
- }
18
- },
19
- "netInfoReachabilityShortTimeout": 30000,
20
- "description": "Suivi des équipements Eneo"
21
- }