diff --git a/src/components/config/PrimeVue.d.ts b/src/components/config/PrimeVue.d.ts index b6b67950e..90a44c00e 100644 --- a/src/components/config/PrimeVue.d.ts +++ b/src/components/config/PrimeVue.d.ts @@ -6,6 +6,27 @@ interface PrimeVueConfiguration { } interface PrimeVueLocaleOptions { + startsWith?: string; + contains?: string; + notContains?: string; + endWith?: string; + equals?: string; + notEquals?: string; + noFilter?: string; + lt?: string; + lte?: string; + gt?: string; + gte?: string; + dateIs?: string; + dateIsNot?: string; + dateBefore?: string; + dateAfter?: string; + clear?: string; + apply?: string; + matchAll?: string; + matchAny?: string; + addRule?: string; + removeRule?: string; accept?: string; reject?: string; choose?: string; @@ -17,7 +38,6 @@ interface PrimeVueLocaleOptions { monthNames: string[]; monthNamesShort: string[]; today?: string; - clear?: string; weekHeader?: string; firstDayOfWeek?: number; dateFormat?: string; @@ -25,6 +45,8 @@ interface PrimeVueLocaleOptions { medium?: string; strong?: string; passwordPrompt?: string; + emptyFilterMessage?: string; + emptyMessage?: string; } export declare function usePrimeVue(): PrimeVueConfiguration; diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index 1212f86ff..1d27a962a 100755 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -838,7 +838,7 @@ matchModes: [
FlexScroll can also be used for cases where scrollable viewport should be responsive with respect to the window size. See the
FlexScroll can also be used for cases where scrollable viewport should be responsive with respect to the window size. See the
<div style="height: calc(100vh - 143px)">
<DataTable :value="cars" :scrollable="true" scrollHeight="flex">
diff --git a/src/views/locale/LocaleDemo.vue b/src/views/locale/LocaleDemo.vue
index d3b754ead..0f18bfbc2 100644
--- a/src/views/locale/LocaleDemo.vue
+++ b/src/views/locale/LocaleDemo.vue
@@ -63,94 +63,52 @@ export default defineComponent({
Locale Options
-
-
-
-
- Key
- Value
-
-
-
-
- accept
- Yes
-
-
- reject
- No
-
-
- choose
- Choose
-
-
- upload
- Upload
-
-
- cancel
- Cancel
-
-
- dayNames
- ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
-
-
- dayNamesShort
- ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
-
-
- dayNamesMin
- ["Su","Mo","Tu","We","Th","Fr","Sa"]
-
-
- monthNames
- ["January","February","March","April","May","June","July","August","September","October","November","December"]
-
-
- monthNamesShort
- ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-
-
- today
- Today
-
-
- today
- Today
-
-
- weekHeader
- Wk
-
-
- firstDayOfWeek
- 0
-
-
- dateFormat
- mm/dd/yy
-
-
- weak
- Weak
-
-
- medium
- Medium
-
-
- strong
- Strong
-
-
- passwordPrompt
- Enter a password
-
-
-
-
+
+locale: {
+ startsWith: 'Starts with',
+ contains: 'Contains',
+ notContains: 'Not contains',
+ endsWith: 'Ends with',
+ equals: 'Equals',
+ notEquals: 'Not equals',
+ noFilter: 'No Filter',
+ lt: 'Less than',
+ lte: 'Less than or equal to',
+ gt: 'Greater than',
+ gte: 'Greater than or equal to',
+ dateIs: 'Date is',
+ dateIsNot: 'Date is not',
+ dateBefore: 'Date is before',
+ dateAfter: 'Date is after',
+ clear: 'Clear',
+ apply: 'Apply',
+ matchAll: 'Match All',
+ matchAny: 'Match Any',
+ addRule: 'Add Rule',
+ removeRule: 'Remove Rule',
+ accept: 'Yes',
+ reject: 'No',
+ choose: 'Choose',
+ upload: 'Upload',
+ cancel: 'Cancel',
+ dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
+ dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
+ dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"],
+ monthNames: ["January","February","March","April","May","June","July","August","September","October","November","December"],
+ monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
+ today: 'Today',
+ weekHeader: 'Wk',
+ firstDayOfWeek: 0,
+ dateFormat: 'mm/dd/yy',
+ weak: 'Weak',
+ medium: 'Medium',
+ strong: 'Strong',
+ passwordPrompt: 'Enter a password',
+ emptyFilterMessage: 'No results found',
+ emptyMessage: 'No available options'
+}
+
+