From 857a47bf544dad5f56448fa242d031bdfa29f1fe Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 27 Feb 2024 16:23:16 -0500 Subject: [PATCH] Fix #6050: Locale TypeScript updates --- components/lib/api/api.d.ts | 232 ++++++++++++++++++++++++++++++++++-- 1 file changed, 222 insertions(+), 10 deletions(-) diff --git a/components/lib/api/api.d.ts b/components/lib/api/api.d.ts index 08ad342616..c8d2d72796 100644 --- a/components/lib/api/api.d.ts +++ b/components/lib/api/api.d.ts @@ -870,6 +870,74 @@ export interface LocaleOptions { * ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] */ monthNamesShort?: string[]; + /** + * Choose Year + */ + chooseYear?: string; + /** + * Choose Month + */ + chooseMonth?: string; + /** + * Choose Date + */ + chooseDate?: string; + /** + * Previous Decade + */ + prevDecade?: string; + /** + * Next Decade + */ + nextDecade?: string; + /** + * Previous Year + */ + prevYear?: string; + /** + * Next Year + */ + nextYear?: string; + /** + * Previous Month + */ + prevMonth?: string; + /** + * Next Month + */ + nextMonth?: string; + /** + * Previous Hour + */ + prevHour?: string; + /** + * Next Hour + */ + nextHour?: string; + /** + * Previous Minute + */ + prevMinute?: string; + /** + * Next Minute + */ + nextMinute?: string; + /** + * Previous Second + */ + prevSecond?: string; + /** + * Next Second + */ + nextSecond?: string; + /** + * AM + */ + am?: string; + /** + * PM + */ + pm?: string; /** * Today (Calendar date only) */ @@ -915,7 +983,7 @@ export interface LocaleOptions { */ emptyMessage?: string; /** - * True + * ARIA labels */ aria?: { /** @@ -931,7 +999,75 @@ export interface LocaleOptions { */ nullLabel?: string; /** - * Page + * 1 star + */ + star?: string; + /** + * {star} stars + */ + stars?: string; + /** + * All items selected + */ + selectAll?: string; + /** + * All items unselected + */ + unselectAll?: string; + /** + * Close + */ + close?: string; + /** + * Previous + */ + previous?: string; + /** + * Next + */ + next?: string; + /** + * Navigation + */ + navigation?: string; + /** + * Scroll Top + */ + scrollTop?: string; + /** + * Move Top + */ + moveTop?: string; + /** + * Move Up + */ + moveUp?: string; + /** + * Move Down + */ + moveDown?: string; + /** + * Move Bottom + */ + moveBottom?: string; + /** + * Move to Target + */ + moveToTarget?: string; + /** + * Move to Source + */ + moveToSource?: string; + /** + * Move All to Target + */ + moveAllToTarget?: string; + /** + * Move All to Source + */ + moveAllToSource?: string; + /** + * Page {page} */ pageLabel?: string; /** @@ -951,21 +1087,97 @@ export interface LocaleOptions { */ previousPageLabel?: string; /** - * Select + * Rows per page + */ + rowsPerPageLabel?: string; + /** + * Jump to Page Dropdown + */ + jumpToPageDropdownLabel?: string; + /** + * Jump to Page Input + */ + jumpToPageInputLabel?: string; + /** + * Row Selected + */ + selectRow?: string; + /** + * Row Unselected + */ + unselectRow?: string; + /** + * Row Expanded + */ + expandRow?: string; + /** + * Row Collapsed + */ + collapseRow?: string; + /** + * Show Filter Menu + */ + showFilterMenu?: string; + /** + * Hide Filter Menu + */ + hideFilterMenu?: string; + /** + * Filter Operator + */ + filterOperator?: string; + /** + * Filter Constraint + */ + filterConstraint?: string; + /** + * Edit Row + */ + editRow?: string; + /** + * Save Edit + */ + saveEdit?: string; + /** + * Cancel Edit + */ + cancelEdit?: string; + /** + * List View + */ + listView?: string; + /** + * Grid View + */ + gridView?: string; + /** + * Slide + */ + slide?: string; + /** + * {slideNumber} + */ + slideNumber?: string; + /** + * Zoom Image + */ + zoomImage?: string; + /** + * Zoom In */ - selectLabel?: string; + zoomIn?: string; /** - * Unselect + * Zoom Out */ - unselectLabel?: string; + zoomOut?: string; /** - * Expand + * Rotate Right */ - expandLabel?: string; + rotateRight?: string; /** - * Collapse + * Rotate Left */ - collapseLabel?: string; + rotateLeft?: string; }; }