-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #389 from concordnow/fix_in_place_dialog
Add splattibutes support and fix containerClassNames for rendered in place modals
- Loading branch information
Showing
10 changed files
with
267 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,52 @@ | ||
<EmberWormhole @to={{this.destinationElementId}}> | ||
{{#if this.isOverlaySibling}} | ||
<div class="{{this.wrapperClassNamesString}} {{this.wrapperClass}}"> | ||
<div class='{{this.wrapperClassNamesString}} {{this.wrapperClass}}'> | ||
{{#if this.hasOverlay}} | ||
<div | ||
class={{this.overlayClassNamesString}} | ||
onclick={{action this.onClickOverlay}} | ||
tabindex="-1" | ||
tabindex='-1' | ||
data-emd-overlay | ||
> | ||
</div> | ||
{{/if}} | ||
<EmberModalDialogPositionedContainer @class={{this.containerClassNamesString}} @targetAttachment={{this.targetAttachment}} @target={{this.legacyTarget}}> | ||
<EmberModalDialogPositionedContainer | ||
@class={{this.containerClassNamesString}} | ||
@targetAttachment={{this.targetAttachment}} | ||
@target={{this.legacyTarget}} | ||
...attributes | ||
> | ||
{{yield}} | ||
</EmberModalDialogPositionedContainer> | ||
</div> | ||
{{else}} | ||
<div class="{{this.wrapperClassNamesString}} {{this.wrapperClass}}"> | ||
<div class='{{this.wrapperClassNamesString}} {{this.wrapperClass}}'> | ||
{{#if this.hasOverlay}} | ||
<div | ||
class={{this.overlayClassNamesString}} | ||
onclick={{action (ignore-children this.onClickOverlay)}} | ||
tabindex="-1" | ||
tabindex='-1' | ||
data-emd-overlay | ||
> | ||
<EmberModalDialogPositionedContainer @class={{this.containerClassNamesString}} @targetAttachment={{this.targetAttachment}} @target={{this.legacyTarget}}> | ||
<EmberModalDialogPositionedContainer | ||
@class={{this.containerClassNamesString}} | ||
@targetAttachment={{this.targetAttachment}} | ||
@target={{this.legacyTarget}} | ||
...attributes | ||
> | ||
{{yield}} | ||
</EmberModalDialogPositionedContainer> | ||
</div> | ||
{{else}} | ||
<EmberModalDialogPositionedContainer @class={{this.containerClassNamesString}} @targetAttachment={{this.targetAttachment}} @target={{this.legacyTarget}}> | ||
<EmberModalDialogPositionedContainer | ||
@class={{this.containerClassNamesString}} | ||
@targetAttachment={{this.targetAttachment}} | ||
@target={{this.legacyTarget}} | ||
...attributes | ||
> | ||
{{yield}} | ||
</EmberModalDialogPositionedContainer> | ||
{{/if}} | ||
</div> | ||
{{/if}} | ||
</EmberWormhole> | ||
</EmberWormhole> |
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,12 @@ | ||
<div | ||
class={{concat this.containerClassNamesString " " this.attachmentClass " " this.containerClass}} | ||
class={{concat | ||
this.containerClassNamesString | ||
' ' | ||
this.attachmentClass | ||
' ' | ||
this.containerClass | ||
}} | ||
...attributes | ||
> | ||
{{yield}} | ||
</div> | ||
</div> |
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,37 +1,55 @@ | ||
{{#if this.isOverlaySibling}} | ||
<LiquidWormhole @stack={{this.stack}} @value={{this.value}} @class={{concat "liquid-dialog-container " this.wrapperClassNamesString " " this.wrapperClass}}> | ||
<div class="{{this.wrapperClassNamesString}} {{this.wrapperClass}}"> | ||
<LiquidWormhole | ||
@stack={{this.stack}} | ||
@value={{this.value}} | ||
@class={{concat | ||
'liquid-dialog-container ' | ||
this.wrapperClassNamesString | ||
' ' | ||
this.wrapperClass | ||
}} | ||
> | ||
<div class='{{this.wrapperClassNamesString}} {{this.wrapperClass}}'> | ||
{{#if this.hasOverlay}} | ||
<div | ||
class={{this.overlayClassNamesString}} | ||
onclick={{action this.onClickOverlay}} | ||
tabindex="-1" | ||
tabindex='-1' | ||
data-emd-overlay | ||
> | ||
</div> | ||
{{/if}} | ||
<div class={{this.containerClassNamesString}}> | ||
<div class={{this.containerClassNamesString}} ...attributes> | ||
{{yield}} | ||
</div> | ||
</div> | ||
</LiquidWormhole> | ||
{{else}} | ||
<LiquidWormhole @stack={{this.stack}} @value={{this.value}} @class={{concat "liquid-dialog-container " this.wrapperClassNamesString " " this.wrapperClass}}> | ||
<LiquidWormhole | ||
@stack={{this.stack}} | ||
@value={{this.value}} | ||
@class={{concat | ||
'liquid-dialog-container ' | ||
this.wrapperClassNamesString | ||
' ' | ||
this.wrapperClass | ||
}} | ||
> | ||
{{#if this.hasOverlay}} | ||
<div | ||
class={{this.overlayClassNamesString}} | ||
onclick={{action (ignore-children this.onClickOverlay)}} | ||
tabindex="-1" | ||
tabindex='-1' | ||
data-emd-overlay | ||
> | ||
<div class={{this.containerClassNamesString}}> | ||
<div class={{this.containerClassNamesString}} ...attributes> | ||
{{yield}} | ||
</div> | ||
</div> | ||
{{else}} | ||
<div class={{this.containerClassNamesString}}> | ||
<div class={{this.containerClassNamesString}} ...attributes> | ||
{{yield}} | ||
</div> | ||
{{/if}} | ||
</LiquidWormhole> | ||
{{/if}} | ||
{{/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
{{#if this.hasOverlay}} | ||
<LiquidWormhole @stack="modal-overlay" @class="liquid-dialog-container"> | ||
<LiquidWormhole @stack='modal-overlay' @class='liquid-dialog-container'> | ||
<div | ||
class={{this.overlayClassNamesString}} | ||
onclick={{action this.onClickOverlay}} | ||
tabindex="-1" | ||
tabindex='-1' | ||
data-emd-overlay | ||
> | ||
</div> | ||
</LiquidWormhole> | ||
{{/if}} | ||
<LiquidTether @class={{this.containerClassNamesString}} @target={{this.tetherTarget}} @attachment={{this.attachment}} @targetAttachment={{this.targetAttachment}} @targetModifier={{this.targetModifier}} @classPrefix={{this.tetherClassPrefix}} @offset={{this.offset}} @targetOffset={{this.targetOffset}} @constraints={{this.constraints}} @stack={{this.stack}} @value={{this.value}}> | ||
<LiquidTether | ||
@class={{this.containerClassNamesString}} | ||
@target={{this.tetherTarget}} | ||
@attachment={{this.attachment}} | ||
@targetAttachment={{this.targetAttachment}} | ||
@targetModifier={{this.targetModifier}} | ||
@classPrefix={{this.tetherClassPrefix}} | ||
@offset={{this.offset}} | ||
@targetOffset={{this.targetOffset}} | ||
@constraints={{this.constraints}} | ||
@stack={{this.stack}} | ||
@value={{this.value}} | ||
...attributes | ||
> | ||
{{yield}} | ||
</LiquidTether> | ||
</LiquidTether> |
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
Oops, something went wrong.