@fto-consult/expo-ui 2.35.0 → 2.35.2

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": "2.35.0",
3
+ "version": "2.35.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1651,16 +1651,17 @@ export default class CommonDatagridComponent extends AppComponent {
1651
1651
  })
1652
1652
  }
1653
1653
  return <Menu
1654
- title = "Type d'affichage"
1654
+ title = {"Type d'affichage ["+activeType.label+"]"}
1655
1655
  items = {m}
1656
1656
  anchor = {(p)=>{
1657
1657
  return <Pressable {...p} style={[theme.styles.row]}>
1658
1658
  <Icon
1659
1659
  {...p}
1660
1660
  name = {activeType.icon}
1661
+ color = {theme.colors.primaryOnSurface}
1661
1662
  title = {"Les données s'affichent actuellement en {0}. Cliquez pour modifier le type d'affichage".sprintf(activeType.label)}
1662
1663
  />
1663
- {this.isDashboard() && <Label textBold>Type d'affichage</Label>||null}
1664
+ {this.isDashboard() && <Label textBold primaryOnSurface>{activeType.label||"Type d'affichage"}</Label>||null}
1664
1665
  </Pressable>
1665
1666
  }}
1666
1667
  />
@@ -3241,8 +3242,8 @@ export default class CommonDatagridComponent extends AppComponent {
3241
3242
  if(!_render) _render = rowData[columnField]
3242
3243
  } else if(arrayValueExists(_type,['switch','checkbox'])){
3243
3244
  let {checkedLabel,checkedTooltip,uncheckedTooltip,checkedValue,uncheckedLabel,uncheckedValue} = columnDef;
3244
- checkedLabel = defaultStr(checkedLabel,checkedTooltip,'Oui')
3245
- uncheckedLabel = defaultStr(uncheckedLabel,uncheckedTooltip,'Non')
3245
+ checkedLabel = defaultStr(checkedLabel,'Oui')
3246
+ uncheckedLabel = defaultStr(uncheckedLabel,'Non')
3246
3247
  checkedValue = defaultVal(checkedValue,1); uncheckedValue = defaultVal(uncheckedValue,0)
3247
3248
  let val = defaultVal(rowData[columnField],columnDef.defaultValue,columnDef.value)
3248
3249
  if(val === checkedValue){
@@ -90,8 +90,8 @@ export const getFilterComponentProps = (_props)=>{
90
90
  } else if(type == 'switch' || type =='radio' || type ==='checkbox') {
91
91
  type = 'select';
92
92
  let {checkedLabel,checkedTooltip,uncheckedTooltip,checkedValue,uncheckedLabel,uncheckedValue,label,text,...pR} = props;
93
- checkedLabel = defaultVal(checkedLabel,checkedTooltip,'Inactif/Désélectionné')
94
- uncheckedLabel = defaultVal(uncheckedLabel,uncheckedTooltip,'Actif/Sélectionné')
93
+ checkedLabel = defaultVal(checkedLabel,'Non')
94
+ uncheckedLabel = defaultVal(uncheckedLabel,'Oui')
95
95
  checkedValue = defaultVal(checkedValue,1); uncheckedValue = defaultVal(uncheckedValue,0)
96
96
  props = pR;
97
97
  props.items = [{code:checkedValue,label:checkedLabel},{code:uncheckedValue,label:uncheckedLabel}];