@controleonline/ui-default 1.0.281 → 1.0.283

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": "@controleonline/ui-default",
3
- "version": "1.0.281",
3
+ "version": "1.0.283",
4
4
  "author": "ControleOnline",
5
5
  "description": "ControleOnline Default Quasar UI Component",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "last 1 version, not dead, ie >= 11"
17
17
  ],
18
18
  "dependencies": {
19
- "@controleonline/ui-common": "*",
19
+ "@controleonline/ui-common": "1.2.103",
20
20
  "react-native-vector-icons": "^10.3.0"
21
21
  }
22
22
  }
@@ -76,6 +76,7 @@ const DefaultTable = ({
76
76
  showSearch = null,
77
77
  showRowActions = true,
78
78
  showToolbar = true,
79
+ showCompactCaption = true,
79
80
  showAdministrativeTools = true,
80
81
  showToolbarActions = null,
81
82
  showToolbarControls = null,
@@ -285,6 +286,7 @@ const DefaultTable = ({
285
286
  showRowActions: presentationColumns !== null ? showRowActions : storeDeclaredConfigs.showRowActions === false ? false : showRowActions,
286
287
  showAdministrativeTools,
287
288
  showToolbar,
289
+ showCompactCaption,
288
290
  showToolbarActions:
289
291
  showToolbarActions === null
290
292
  ? storeDeclaredConfigs.showToolbarActions !== false
@@ -357,6 +359,7 @@ const DefaultTable = ({
357
359
  showRowActions,
358
360
  showAdministrativeTools,
359
361
  showToolbar,
362
+ showCompactCaption,
360
363
  showToolbarActions,
361
364
  showToolbarControls,
362
365
  showTotalItemsInCompactToolbar,
@@ -401,6 +404,7 @@ const DefaultTable = ({
401
404
  showRowActions,
402
405
  showAdministrativeTools,
403
406
  showToolbar,
407
+ showCompactCaption,
404
408
  showToolbarActions,
405
409
  showToolbarControls,
406
410
  showTotalItemsInCompactToolbar,
@@ -442,6 +446,7 @@ const DefaultTable = ({
442
446
  showRowActions,
443
447
  showAdministrativeTools,
444
448
  showToolbar,
449
+ showCompactCaption,
445
450
  showToolbarActions,
446
451
  showToolbarControls,
447
452
  showTotalItemsInCompactToolbar,
@@ -83,12 +83,12 @@ export default function DefaultTableCompactToolbar({storeName, actions = [], sho
83
83
  <Text numberOfLines={1} style={[s.small, {color: c.chipText || text, flexShrink: 1}]}>{label}</Text><Icon name="x" size={12} color={text} />
84
84
  </TouchableOpacity>;
85
85
  })}<TouchableOpacity accessibilityRole="button" onPress={() => apply({})}><Text style={[s.small, {color: muted}]}>Limpar filtros</Text></TouchableOpacity></View> : null}
86
- <View style={s.secondary}>
86
+ {configs.showCompactCaption !== false && <View style={s.secondary}>
87
87
  <Text style={[s.small, {color: muted}]}>{configs.showTotalItemsInFooter !== false ? `${store.getters?.totalItems ?? 0} ${Number(store.getters?.totalItems) === 1 ? 'resultado' : 'resultados'}` : 'Pedidos'}</Text>
88
88
  {showControls ? <TouchableOpacity accessibilityRole="button" accessibilityLabel="Escolher ordenação" onPress={() => setModal('sort')} style={s.row}>
89
89
  <Icon name="arrow-down" size={14} color={muted} /><Text style={[s.small, {color: text}]}>{sortColumn ? labelFor(sortColumn) : 'Ordenar'} · {configs.resolvedSort?.direction === 'asc' ? '↑' : '↓'}</Text>
90
90
  </TouchableOpacity> : null}
91
- </View>
91
+ </View>}
92
92
  <DefaultFiltersModal storeName={storeName} visible={modal === 'filters'} deferred onClose={() => setModal('')} />
93
93
  <DefaultColumnMenu storeName={storeName} visible={modal === 'columns'} onClose={() => setModal('')} />
94
94
  <DefaultCompactDialog visible={modal === 'more' || modal === 'sort'} title={modal === 'sort' ? 'Ordenação' : 'Mais opções'}
@@ -130,9 +130,9 @@ export const defaultUploadStyles = {
130
130
  attachmentsEmpty: {borderWidth: 1, borderColor: '#ddd', borderRadius: 8, padding: 10},
131
131
  attachmentsEmptyText: {color: '#666'},
132
132
  attachmentsList: {flexDirection: 'row', gap: 10},
133
- attachmentCard: {width: 320, borderWidth: 1, borderColor: '#ddd', borderRadius: 8, padding: 0, overflow: 'hidden', backgroundColor: '#fff'},
134
- attachmentThumb: {width: 320, height: 320, backgroundColor: '#f5f5f5', overflow: 'hidden', alignItems: 'center', justifyContent: 'center'},
135
- attachmentImage: {width: 320, height: 320},
133
+ attachmentCard: {width: 240, borderWidth: 1, borderColor: '#ddd', borderRadius: 8, padding: 0, overflow: 'hidden', backgroundColor: '#fff'},
134
+ attachmentThumb: {width: 240, height: 240, backgroundColor: '#f5f5f5', overflow: 'hidden', alignItems: 'center', justifyContent: 'center'},
135
+ attachmentImage: {width: 240, height: 240},
136
136
  attachmentActionsRow: {flexDirection: 'row', justifyContent: 'center', alignItems: 'center', gap: 8, marginTop: 2},
137
137
  attachmentIconButton: {width: 36, height: 36, borderRadius: 8, alignItems: 'center', justifyContent: 'center'},
138
138
  attachmentRemoveButton: {backgroundColor: '#b00020', paddingVertical: 6, borderRadius: 4},
@@ -76,20 +76,20 @@ export default function DefaultUploadAttachmentsList({
76
76
  key={row.id || fileId || index}
77
77
  style={[
78
78
  styles.attachmentCard,
79
- // app-community#813: card principal 320x320
80
- {width: 320, padding: 0, overflow: 'hidden'},
79
+ // app-community#813: card principal 240x240 (app-community#1275)
80
+ {width: 240, padding: 0, overflow: 'hidden'},
81
81
  ]}>
82
82
  <View
83
83
  style={[
84
84
  styles.attachmentThumb,
85
- {width: 320, height: 320, marginBottom: 0},
85
+ {width: 240, height: 240, marginBottom: 0},
86
86
  ]}>
87
87
  {file ? (
88
88
  <DefaultFile
89
89
  file={file}
90
90
  company={company}
91
91
  resizeMode="cover"
92
- style={{width: 320, height: 320}}
92
+ style={{width: 240, height: 240}}
93
93
  />
94
94
  ) : null}
95
95
  </View>