-
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
5172fc9
commit 345d547
Showing
4 changed files
with
160 additions
and
35 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
27 changes: 27 additions & 0 deletions
27
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,27 @@ | ||
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 { | ||
/** | ||
* Loading state | ||
*/ | ||
status: 'loading' | 'loaded'; | ||
/** | ||
* 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