@fto-consult/expo-ui 8.69.1 → 8.70.1

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.
@@ -0,0 +1,5 @@
1
+ require("@fto-consult/common/bin/generate-jsonconfig")({
2
+ projectRoot : process.cwd(),
3
+ alias : require('../babel.config.alias')({
4
+ })
5
+ });
package/bin/gitignore.js CHANGED
@@ -2,7 +2,7 @@ module.exports = `
2
2
 
3
3
  # dependencies
4
4
  node_modules/
5
-
5
+ jsconfig.json
6
6
  electron/node_modules/
7
7
 
8
8
  /node_modules/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.69.1",
3
+ "version": "8.70.1",
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": {
@@ -14,6 +14,7 @@
14
14
  "start-no-minify": "npx expo start --no-dev --minify",
15
15
  "start-no-dev": "npx expo start --no-dev --minify",
16
16
  "expo-start-client": "npx expo start --dev --no-minify --dev-client",
17
+ "generate-jsonconfig" : "node ./bin/generate-jsonconfig.js",
17
18
  "start-m": "npx expo start - c--dev--no -minify",
18
19
  "android": "npx expo start --android -c",
19
20
  "ios": "npx expo start --ios",
@@ -69,7 +70,7 @@
69
70
  "dependencies": {
70
71
  "@emotion/react": "^11.11.1",
71
72
  "@faker-js/faker": "^8.0.2",
72
- "@fto-consult/common": "^4.40.1",
73
+ "@fto-consult/common": "^4.41.0",
73
74
  "apexcharts": "^3.48.0",
74
75
  "file-saver": "^2.0.5",
75
76
  "google-libphonenumber": "^3.2.34",
@@ -84,7 +85,7 @@
84
85
  "react-native-iphone-x-helper": "^1.3.1",
85
86
  "react-native-mime-types": "^2.5.0",
86
87
  "react-native-paper": "^5.12.3",
87
- "react-native-paper-dates": "^0.22.5",
88
+ "react-native-paper-dates": "^0.22.6",
88
89
  "react-native-web": "^0.19.10",
89
90
  "react-virtuoso": "^4.7.8",
90
91
  "readable-stream": "^4.5.2",
@@ -21,7 +21,8 @@ import BackToTop from "$ecomponents/BackToTop";
21
21
  import FiltersAccordionComponent from "./Filters";
22
22
  import RenderType from "../RenderType";
23
23
  import { flatMode} from "$ecomponents/TextField";
24
- import List from "$ecomponents/Table/List";
24
+ //import List from "$ecomponents/Table/List";
25
+ import List from "$ecomponents/List/FlashList";
25
26
  import theme,{Colors} from "$theme";
26
27
  import {styles as rStyles} from "../utils";
27
28
  import Avatar from "$ecomponents/Avatar";
@@ -551,7 +552,7 @@ const DatagridFactory = (Factory)=>{
551
552
  extraData = {this.state.refresh}
552
553
  contentInset={{ right: 10, top: 10, left: 10, bottom: 10 }}
553
554
  itemHeight = {undefined}
554
- responsive = {defaultBool(responsive,accordionProps.responsive,true)}
555
+ responsive = {defaultBool(responsive,rest.responsive,accordionProps.responsive,true)}
555
556
  filter = {filter}
556
557
  getItemType = {this.getFlashListItemType.bind(this)}
557
558
  renderItem = {this.renderItem.bind(this)}
@@ -112,7 +112,7 @@ export default class DatagridDashboard extends TableData {
112
112
  </View> : null}
113
113
  {<View testID={testID+"_ChartContainer"} {...chartContainerProps} style={[theme.styles.w100,styles.chartContainer,chartContainerProps.style]}>
114
114
  {this.renderProgressBar()}
115
- {chartData}
115
+ {Array.isArray(chartData.props?.options?.series) && chartData?.props?.options?.series.length && chartData || null}
116
116
  </View>}
117
117
  </View>
118
118
  }
@@ -12,11 +12,11 @@ import { useList,useGetNumColumns } from "./hooks";
12
12
 
13
13
  const CommonListComponent = React.forwardRef((props,ref)=>{
14
14
  const context = useList(props);
15
- let {testID,isBigList,defaultItemHeight,itemHeight,onRender,componentProps,columnWrapperStyle,onViewableItemsChanged,withFlatListItem,Component,withBackToTop,backToTopRef:customBackToTopRef,withBackToTopButton,onScroll,onScrollEnd,onMount,onUnmount,renderScrollViewWrapper,prepareItems,getItemKey,getKey,keyExtractor,items,filter,renderItem,numColumns,containerProps,bindResizeEvents,...rest} = props;
15
+ let {testID,isBigList,defaultItemHeight,itemHeight,onRender,componentProps,columnWrapperStyle,onViewableItemsChanged,withFlatListItem,Component,withBackToTop,backToTopRef:customBackToTopRef,withBackToTopButton,onScroll,onScrollEnd,onMount,onUnmount,renderScrollViewWrapper,prepareItems,getItemKey,getKey,keyExtractor,items,filter,renderItem,numColumns:cNumColumns,containerProps,bindResizeEvents,...rest} = props;
16
16
  withBackToTopButton = withBackToTop === true || withBackToTopButton == true || isMobileMedia()? true : false;
17
17
  rest = defaultObj(rest);
18
18
  containerProps = defaultObj(containerProps);
19
- const {itemWindowWidth} = useGetNumColumns(props);
19
+ const {itemWindowWidth,numColumns} = useGetNumColumns(props);
20
20
  let scrollEndTimeout = React.useRef(null);
21
21
  const listRef = React.useRef(null);
22
22
  const hasCustomBackToTop = typeof customBackToTopRef == 'function'? true : false;
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
- "version": "8.68.3",
3
+ "version": "8.69.1",
4
4
  "url": "https://github.com/borispipo/expo-ui#readme",
5
5
  "license": "ISC"
6
6
  },