add selectedcount add phrases for counts label

This commit is contained in:
Harald Bamberger
2025-05-28 17:31:24 +02:00
parent cb1f6e2e5f
commit 42b750e120
2 changed files with 83 additions and 2 deletions
@@ -154,7 +154,8 @@ export default {
filterKontoCount0: undefined,
filterKontoMissingCounter: undefined,
count: 0,
filteredcount: 0
filteredcount: 0,
selectedcount: 0
}
},
methods: {
@@ -165,6 +166,7 @@ export default {
this.$refs.new.open();
},
rowSelectionChanged(data) {
this.selectedcount = data.length;
this.lastSelected = this.selected;
this.$emit('update:selected', data);
},
@@ -279,6 +281,23 @@ export default {
}
}
},
computed: {
countsToHTML: function() {
return this.$p.t('global/anzahl')
+ ' ('
+ this.$p.t('global/ausgewaehlt')
+ ' / '
+ this.$p.t('global/gefiltert')
+ ' / '
+ this.$p.t('global/gesamt')
+ '): '
+ '<strong>' + (this.selectedcount || 0) + '</strong>'
+ ' / '
+ '<strong>' + (this.filteredcount || 0) + '</strong>'
+ ' / '
+ '<strong>' + (this.count || 0) + '</strong>';
}
},
// TODO(chris): focusin, focusout, keydown and tabindex should be in the filter component
// TODO(chris): filter component column chooser has no accessibilty features
template: `
@@ -286,7 +305,7 @@ export default {
<div class="tabulator-container d-flex flex-column h-100" :class="{'has-filter': filterKontoCount0 || filterKontoMissingCounter}" tabindex="0" @focusin="onFocus" @keydown="onKeydown">
<core-filter-cmpt
ref="table"
:description="$p.t('global/anzahl') + ': ' + (filteredcount || 0) + ' / ' + (count || 0)"
:description="countsToHTML"
:tabulator-options="tabulatorOptions"
:tabulator-events="tabulatorEvents"
table-only
+62
View File
@@ -44130,6 +44130,68 @@ and represent the current state of research on the topic. The prescribed citatio
)
),
// FHC4 STUDIERENDENVERWALTUNG AUFNAHMETERMINE ENDE ---------------------------------------------------------------
// FHC4 STUDIERENDENVERWALTUNG ANZAHL START ---------------------------------------------------------------
array(
'app' => 'core',
'category' => 'global',
'phrase' => 'ausgewaehlt',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'ausgewählt',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'selected',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'global',
'phrase' => 'gefiltert',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'gefiltert',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'filtered',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'global',
'phrase' => 'gesamt',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'gesamt',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'total',
'description' => '',
'insertvon' => 'system'
)
)
),
// FHC4 STUDIERENDENVERWALTUNG ANZAHL ENDE ---------------------------------------------------------------
);