-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'types' of https://github.com/primefaces/primeng into types
- Loading branch information
Showing
14 changed files
with
415 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/** | ||
* Represents a blockable user interface element. | ||
*/ | ||
export interface BlockableUI { | ||
/** | ||
* Retrieves the blockable element associated with the UI. | ||
* @returns The HTML element that can be blocked. | ||
*/ | ||
getBlockableElement(): HTMLElement; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,111 @@ | ||
import { EventEmitter } from '@angular/core'; | ||
|
||
/** | ||
* Represents a confirmation dialog configuration. | ||
*/ | ||
export interface Confirmation { | ||
/** | ||
* The message to be displayed in the confirmation dialog. | ||
*/ | ||
message?: string; | ||
|
||
/** | ||
* A unique key to identify the confirmation dialog. | ||
*/ | ||
key?: string; | ||
|
||
/** | ||
* The name of the icon to be displayed in the confirmation dialog. | ||
*/ | ||
icon?: string; | ||
|
||
/** | ||
* The header text of the confirmation dialog. | ||
*/ | ||
header?: string; | ||
|
||
/** | ||
* The callback function to be executed when the accept button is clicked. | ||
*/ | ||
accept?: Function; | ||
|
||
/** | ||
* The callback function to be executed when the reject button is clicked. | ||
*/ | ||
reject?: Function; | ||
|
||
/** | ||
* The label text for the accept button. | ||
*/ | ||
acceptLabel?: string; | ||
|
||
/** | ||
* The label text for the reject button. | ||
*/ | ||
rejectLabel?: string; | ||
|
||
/** | ||
* The name of the icon to be displayed on the accept button. | ||
*/ | ||
acceptIcon?: string; | ||
|
||
/** | ||
* The name of the icon to be displayed on the reject button. | ||
*/ | ||
rejectIcon?: string; | ||
|
||
/** | ||
* Specifies whether the accept button should be visible. | ||
*/ | ||
acceptVisible?: boolean; | ||
|
||
/** | ||
* Specifies whether the reject button should be visible. | ||
*/ | ||
rejectVisible?: boolean; | ||
|
||
/** | ||
* Specifies whether to block scrolling on the page when the confirmation dialog is displayed. | ||
*/ | ||
blockScroll?: boolean; | ||
|
||
/** | ||
* Specifies whether the confirmation dialog should be closed when the escape key is pressed. | ||
*/ | ||
closeOnEscape?: boolean; | ||
|
||
/** | ||
* Specifies whether clicking outside the confirmation dialog should dismiss it. | ||
*/ | ||
dismissableMask?: boolean; | ||
|
||
/** | ||
* The ID or class name of the element to receive focus by default when the confirmation dialog is opened. | ||
*/ | ||
defaultFocus?: string; | ||
|
||
/** | ||
* The CSS class name to be applied to the accept button. | ||
*/ | ||
acceptButtonStyleClass?: string; | ||
|
||
/** | ||
* The CSS class name to be applied to the reject button. | ||
*/ | ||
rejectButtonStyleClass?: string; | ||
|
||
/** | ||
* The target event where the confirmation dialog is triggered from. | ||
*/ | ||
target?: EventTarget; | ||
|
||
/** | ||
* An event emitter for the accept event. | ||
*/ | ||
acceptEvent?: EventEmitter<any>; | ||
|
||
/** | ||
* An event emitter for the reject event. | ||
*/ | ||
rejectEvent?: EventEmitter<any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
/** | ||
* Represents metadata for filtering a data set. | ||
*/ | ||
export interface FilterMetadata { | ||
/** | ||
* The value used for filtering. | ||
*/ | ||
value?: any; | ||
|
||
/** | ||
* The match mode for filtering. | ||
*/ | ||
matchMode?: string; | ||
|
||
/** | ||
* The operator for filtering. | ||
*/ | ||
operator?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,45 @@ | ||
import { SortMeta } from './sortmeta'; | ||
import { FilterMetadata } from './filtermetadata'; | ||
import { SortMeta } from './sortmeta'; | ||
|
||
/** | ||
* Represents an event object for lazy loading data. | ||
*/ | ||
export interface LazyLoadEvent { | ||
/** | ||
* The index of the first record to be loaded. | ||
*/ | ||
first?: number; | ||
/** | ||
* The index of the last record to be loaded. | ||
*/ | ||
last?: number; | ||
/** | ||
* The number of rows to load. | ||
*/ | ||
rows?: number; | ||
/** | ||
* The field to be used for sorting. | ||
*/ | ||
sortField?: string; | ||
/** | ||
* The sort order for the field. | ||
*/ | ||
sortOrder?: number; | ||
/** | ||
* An array of sort metadata objects for multiple column sorting. | ||
*/ | ||
multiSortMeta?: SortMeta[]; | ||
/** | ||
* An object containing filter metadata for filtering the data. | ||
* The keys represent the field names, and the values represent the corresponding filter metadata. | ||
*/ | ||
filters?: { [s: string]: FilterMetadata }; | ||
/** | ||
* The global filter value for filtering across all columns. | ||
*/ | ||
globalFilter?: any; | ||
/** | ||
* A function that can be called to force an update in the lazy loaded data. | ||
*/ | ||
forceUpdate?: () => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.