This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
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 #749 from derrabauke/octane-pr-20
refactor: attendances, progress-tooltip and minor fixes
- Loading branch information
Showing
41 changed files
with
710 additions
and
627 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 was deleted.
Oops, something went wrong.
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,15 +1,36 @@ | ||
<RangeSlider @start={{this.start}} @step={{15}} @min={{0}} @max={{1440}} @connect={{true}} @animate={{true}} @behaviour="drag" @tooltips={{this.tooltips}} @on-slide={{action (mut this.values)}} @on-change={{action (perform this.save)}} /> | ||
<div class="attendance-slider" ...attributes> | ||
<RangeSlider | ||
@start={{this.start}} | ||
@step={{15}} | ||
@min={{0}} | ||
@max={{1440}} | ||
@connect={{true}} | ||
@animate={{true}} | ||
@behaviour="drag" | ||
@tooltips={{this.tooltips}} | ||
@on-slide={{fn (mut this.values)}} | ||
@on-change={{perform this.save}} | ||
/> | ||
|
||
<div class="slider-labels"> | ||
{{#each this.labels as |label|}} | ||
<div style={{label.style}} class="slider-label slider-label--{{label.size}}"> | ||
<div class="slider-label-text"> | ||
{{label.value}} | ||
<div class="slider-labels"> | ||
{{#each this.labels as |label|}} | ||
<div | ||
style={{label.style}} | ||
class="slider-label slider-label--{{label.size}}" | ||
> | ||
<div class="slider-label-text"> | ||
{{label.value}} | ||
</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
{{/each}} | ||
</div> | ||
|
||
<div class="slider-title"> | ||
<span>{{this.duration}}</span> {{fa-icon 'trash' data-test-delete-attendance=true click=(perform this.delete)}} | ||
<div class="slider-title"> | ||
<span>{{this.duration}}</span> | ||
<FaIcon | ||
@icon="trash" | ||
data-test-delete-attendance="true" | ||
{{on "click" (perform this.delete)}} | ||
/> | ||
</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
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
60 changes: 33 additions & 27 deletions
60
app/components/optimized-power-select/trigger/template.hbs
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,30 +1,36 @@ | ||
{{#if @select.selected}} | ||
{{#if @selectedItemComponent}} | ||
<div class={{@triggerClass}}> | ||
{{#if @select.selected}} | ||
{{#if @selectedItemComponent}} | ||
{{component | ||
@selectedItemComponent | ||
option=(readonly @select.selected) | ||
select=(readonly @select) | ||
}} | ||
{{else}} | ||
<span class="ember-power-select-selected-item"> | ||
{{#if @extra.selectedTemplate}} | ||
{{component | ||
(ensure-safe-component @extra.selectedTemplate) | ||
selected=@select.selected | ||
}} | ||
{{else}} | ||
{{yield @select.selected @select}} | ||
{{/if}} | ||
</span> | ||
{{/if}} | ||
{{#if (and @allowClear (not @select.disabled))}} | ||
<span | ||
role="button" | ||
class="ember-power-select-clear-btn" | ||
{{on "mouseup" this.clear}} | ||
{{on "ontouchend" this.clear}} | ||
>×</span> | ||
{{/if}} | ||
{{else}} | ||
{{component | ||
@selectedItemComponent | ||
option=(readonly @select.selected) | ||
select=(readonly @select) | ||
(ensure-safe-component @placeholderComponent) | ||
placeholder=@placeholder | ||
}} | ||
{{else}} | ||
<span class="ember-power-select-selected-item"> | ||
{{#if @extra.selectedTemplate}} | ||
{{component (ensure-safe-component @extra.selectedTemplate) selected=@select.selected}} | ||
{{else}} | ||
{{yield @select.selected @select}} | ||
{{/if}} | ||
</span> | ||
{{/if}} | ||
{{#if (and @allowClear (not @select.disabled))}} | ||
<span | ||
class="ember-power-select-clear-btn" | ||
{{on "mousedown" this.clear}} | ||
{{on "ontouchstart" this.clear}} | ||
>×</span> | ||
{{/if}} | ||
{{else}} | ||
{{component | ||
(ensure-safe-component @placeholderComponent) | ||
placeholder=@placeholder | ||
}} | ||
{{/if}} | ||
<span class="ember-power-select-status-icon"></span> | ||
<span class="ember-power-select-status-icon"></span> | ||
</div> |
Oops, something went wrong.