@fto-consult/expo-ui 9.5.3 → 9.5.5

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": "9.5.3",
3
+ "version": "9.5.5",
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": {
@@ -41,12 +41,14 @@ const DatagridAccordionRow = React.forwardRef(({selectable,
41
41
  rowProps = defaultObj(rowProps);
42
42
  rightProps = defaultObj(rightProps);
43
43
  contentContainerProps = defaultObj(contentContainerProps);
44
- if(!isObj(item)) {
45
- return null;
46
- }
44
+ let rowIndex = defaultDecimal(index);
45
+ let rowIndexCount = index+1;
47
46
  const selected = useIsRowSelected(rowKey,rowIndex);
48
47
  const innerRef = React.useRef(null);
49
48
  const [expanded,setExpanded] = React.useState(false);
49
+ if(!isObj(item)) {
50
+ return null;
51
+ }
50
52
  const toggleExpander = ()=>{
51
53
  if(onRowPress){
52
54
  onRowPress(callArgs);
@@ -69,9 +71,6 @@ const DatagridAccordionRow = React.forwardRef(({selectable,
69
71
  }
70
72
  setExpanded(!expanded);
71
73
  }
72
-
73
- let rowIndex = defaultDecimal(index);
74
- let rowIndexCount = index+1;
75
74
  testID = defaultStr(testID,"RN_DatagridAccordionRow"+(rowKey||rowIndex))
76
75
  const hasAvatar = React.isValidElement(avatarContent);
77
76
  const handleRowToggle = (event)=>{
@@ -790,9 +790,10 @@ class DropdownComponent extends AppComponent {
790
790
  right,
791
791
  backgroundColor : cBackgroundColor,
792
792
  dialogProps,
793
+ testID,
793
794
  ...dropdownProps
794
795
  } = this.props;
795
-
796
+ testID = defaultStr(testID,"RN_DropdownComponent");
796
797
  const flattenStyle = StyleSheet.flatten(dropdownProps.style) || {};
797
798
  itemContainerProps = defaultObj(itemContainerProps);
798
799
  dropdownProps = defaultObj(dropdownProps);
@@ -965,7 +966,6 @@ class DropdownComponent extends AppComponent {
965
966
  >{text} </Chip>;
966
967
  })}
967
968
  </View> : null;
968
- const testID = defaultStr(dropdownProps.testID,"RN_DropdownComponent");
969
969
  const defRight = defaultVal(textInputProps.right,inputProps.right);
970
970
  const enableCopy = defaultBool(inputProps.enableCopy,textInputProps.enableCopy,(iconDisabled || (!multiple && !showAdd)) && !loadingElement ?true : false);
971
971
  const anchor = <TouchableRipple
@@ -19,7 +19,7 @@ const PermLines = React.forwardRef(({user,gridProps,defaultActions:cDefaultActio
19
19
  permLineProps = defaultObj(permLineProps);
20
20
  const allPerms = React.useRef({}).current;
21
21
  const dataRef = React.useRef(defaultObj(perms));
22
- const defaultActions = React.useRef(extendObj(true,{},mDefaultAction,defaultActions)).current;
22
+ const defaultActions = React.useRef(extendObj(true,{},mDefaultAction,cDefaultActions)).current;
23
23
  const data = dataRef.current;
24
24
  disabled = !!disabled || isUserMasterAdmin;
25
25
  const onChange = disabled ? undefined : (arg)=>{