- fixed filter for calls table;

- implemented call table async on all pages;
- added applications table async;
This commit is contained in:
Vitalii Kiiko
2025-03-05 17:06:00 +01:00
parent ed91588ef5
commit 00b4ad8569
7 changed files with 316 additions and 63 deletions

View File

@@ -1,5 +1,6 @@
/* data table related */
import { __ } from '@wordpress/i18n';
import { FilterMatchMode } from 'primereact/api';
const currentPageReportTemplate = '';
@@ -7,10 +8,43 @@ const emptyMessage = __('Nessun dato disponibile', 'gepafin');
const selectOneLabel = __('Seleziona', 'gepafin');
const textFilterOptions = [
//{ label: 'Inizia con', value: FilterMatchMode.STARTS_WITH },
{ label: 'Contiene', value: FilterMatchMode.CONTAINS },
//{ label: 'Non contiene', value: FilterMatchMode.NOT_CONTAINS },
//{ label: 'Finisce con', value: FilterMatchMode.ENDS_WITH },
{ label: 'Uguale a', value: FilterMatchMode.EQUALS },
//{ label: 'Diverso da', value: FilterMatchMode.NOT_EQUALS }
];
const statusFilterOptions = [
{ label: 'Uguale a', value: FilterMatchMode.EQUALS }
];
const numericFilterOptions = [
{ label: 'Uguale a', value: FilterMatchMode.EQUALS },
{ label: 'Diverso da', value: FilterMatchMode.NOT_EQUALS },
{ label: 'Maggiore di', value: FilterMatchMode.GREATER_THAN },
{ label: 'Maggiore o uguale a', value: FilterMatchMode.GREATER_THAN_OR_EQUAL_TO },
{ label: 'Minore di', value: FilterMatchMode.LESS_THAN },
{ label: 'Minore o uguale a', value: FilterMatchMode.LESS_THAN_OR_EQUAL_TO }
];
const dateFilterOptions = [
{ label: 'Data uguale a', value: FilterMatchMode.DATE_IS },
{ label: 'Data diversa da', value: FilterMatchMode.DATE_IS_NOT },
{ label: 'Data prima di', value: FilterMatchMode.DATE_BEFORE },
{ label: 'Data dopo', value: FilterMatchMode.DATE_AFTER }
];
const translationStrings = {
currentPageReportTemplate,
emptyMessage,
selectOneLabel
selectOneLabel,
textFilterOptions,
statusFilterOptions,
numericFilterOptions,
dateFilterOptions
}
export default translationStrings;