@controleonline/ui-default 1.0.281 → 1.0.282
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.
|
|
3
|
+
"version": "1.0.282",
|
|
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'}
|