-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: post message events upon placeholder
- Loading branch information
1 parent
804c1d2
commit ae30e21
Showing
4 changed files
with
173 additions
and
38 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
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
23 changes: 23 additions & 0 deletions
23
packages/@o3r/components/src/tools/placeholder/placeholder.interface.ts
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import {OtterMessageContent} from '@o3r/core'; | ||
|
||
/** | ||
* Payload of the {@see PlaceholderLoadingStatusMessage} | ||
* | ||
* Describe the state of an identified placeholder: what template is being loaded and whether the load is done | ||
*/ | ||
export interface PlaceholderLoadingStatus { | ||
/** | ||
* Ids of the template to be loaded in the placeholder | ||
*/ | ||
templateIds?: string[]; | ||
/** | ||
* Identify the placeholder under consideration | ||
*/ | ||
placeholderId?: string; | ||
} | ||
|
||
/** | ||
* Message to describe a placeholder's loading status: the templates to be loaded and the pending status. | ||
*/ | ||
export interface PlaceholderLoadingStatusMessage extends PlaceholderLoadingStatus, | ||
OtterMessageContent<'placeholder-loading-status'> {} |
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