-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance feature initialization (#9479)
Previously, feature loading depended on the import order, requiring features to be imported before the component definition. This caused issues in some situations, especially when creating chunks because the imports can be reordered by the build tools. With this change, we have split the features into two types: library-specific and component-specific. Library-specific features need to be imported before the boot process, otherwise, it can cause serious issues, because the need to re-render all components and manipulate the DOM (including scripts, styles, and meta tags). Component-specific features can now be imported without a specific order, and components that depend on these features will automatically update, enabling the feature on the next rendering of the component. Fixes: #8175
- Loading branch information
Showing
11 changed files
with
157 additions
and
68 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{{#if _showMoreColors}} | ||
<ui5-dialog | ||
header-text="{{moreColorsFeature.colorPaletteDialogTitle}}" | ||
> | ||
<div class="ui5-cp-dialog-content"> | ||
<ui5-color-picker></ui5-color-picker> | ||
</div> | ||
{{#if _effectiveShowMoreColors}} | ||
<ui5-dialog | ||
header-text="{{colorPaletteDialogTitle}}" | ||
> | ||
<div class="ui5-cp-dialog-content"> | ||
<ui5-color-picker></ui5-color-picker> | ||
</div> | ||
|
||
<div slot="footer" class="ui5-cp-dialog-footer"> | ||
<ui5-button | ||
design="Emphasized" | ||
@click="{{_chooseCustomColor}}" | ||
>{{moreColorsFeature.colorPaletteDialogOKButton}}</ui5-button> | ||
<ui5-button | ||
design="Transparent" | ||
@click="{{_closeDialog}}" | ||
>{{moreColorsFeature.colorPaletteCancelButton}}</ui5-button> | ||
</div> | ||
</ui5-dialog> | ||
<div slot="footer" class="ui5-cp-dialog-footer"> | ||
<ui5-button | ||
design="Emphasized" | ||
@click="{{_chooseCustomColor}}" | ||
>{{colorPaletteDialogOKButton}}</ui5-button> | ||
<ui5-button | ||
design="Transparent" | ||
@click="{{_closeDialog}}" | ||
>{{colorPaletteCancelButton}}</ui5-button> | ||
</div> | ||
</ui5-dialog> | ||
{{/if}} |
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.