Skip to content

Commit

Permalink
Fix #5378: Update local api.d.ts (#5380)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 23, 2023
1 parent d693c70 commit 8d97cae
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 14 deletions.
259 changes: 246 additions & 13 deletions components/lib/api/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import { OverlayPanelPassThroughOptions } from '../overlaypanel/overlaypanel';
import { PaginatorPassThroughOptions } from '../paginator/paginator';
import { PanelPassThroughOptions } from '../panel/panel';
import { PanelMenuPassThroughOptions } from '../panelmenu/panelmenu';
import { PassThroughOptions } from '../passthrough';
import { PasswordPassThroughOptions } from '../password/password';
import { PickListPassThroughOptions } from '../picklist/picklist';
import { ProgressBarPassThroughOptions } from '../progressbar/progressbar';
Expand Down Expand Up @@ -93,7 +94,6 @@ import { TreePassThroughOptions } from '../tree/tree';
import { TreeSelectPassThroughOptions } from '../treeselect/treeselect';
import { TreeTablePassThroughOptions } from '../treetable/treetable';
import { VirtualScrollerPassThroughOptions } from '../virtualscroller/virtualscroller';
import { PassThroughOptions } from '../passthrough';

// Config
/**
Expand Down Expand Up @@ -831,6 +831,10 @@ export interface LocaleOptions {
* Close
*/
close?: string;
/**
* Completed
*/
completed?: string;
/**
* Pending
*/
Expand Down Expand Up @@ -859,10 +863,82 @@ 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;
/**
*
*/
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;
/**
* PM
*/
am?: string;
/**
* AM
*/
pm?: string;
/**
* Today
*/
today?: string;
/**
* Now
*/
now?: string;
/**
* Wk
*/
Expand Down Expand Up @@ -892,16 +968,29 @@ export interface LocaleOptions {
*/
passwordPrompt?: string;
/**
* No available options
* No results found
*/
emptyFilterMessage?: string;
/**
* {0} results are available
*/
searchMessage?: string;
/**
* {0} items selected
*/
selectionMessage?: string;
/**
* No selected item
*/
emptySelectionMessage?: string;
/**
* No results found
*/
emptyMessage?: string;
emptySearchMessage?: string;
/**
* True
* No available options
*/
emptyMessage?: string;
aria?: {
/**
* True
Expand All @@ -916,7 +1005,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;
/**
Expand All @@ -936,21 +1093,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;
};
}

Expand Down
4 changes: 3 additions & 1 deletion pages/ripple/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ const RippleDemo = () => {
useEffect(() => {
setRipple(true);

const currentRipple = userRippleValue.current;

return () => {
setRipple(userRippleValue.current);
setRipple(currentRipple);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down

0 comments on commit 8d97cae

Please sign in to comment.