1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Introduce modular UI framework

1. Modals wrapped
2. Toolbar icon actions: click and link-to navigation
3. Moved components into sub-folders
4. Replaced Bootstrap Tooltip and Dropdown libs with Ember specific add-ons

And more.

Co-Authored-By: Saul S <sauls8t@users.noreply.github.com>
Co-Authored-By: McMatts <matt@documize.com>
This commit is contained in:
Harvey Kandola 2018-12-11 18:00:08 +00:00
parent f140e7ef77
commit 6eb68f84e0
48 changed files with 330 additions and 240 deletions

View file

@ -0,0 +1,4 @@
<div class="empty-state">
<i class="material-icons">{{glypth}}</i>
<p>{{message}}</p>
</div>

View file

@ -0,0 +1 @@
{{yield}}

View file

@ -0,0 +1,13 @@
<div id={{contentId}} class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog {{size}}" role="document">
<div class="modal-content">
<div class="modal-header">{{title}}</div>
<div class="modal-body">
{{yield}}
</div>
<div class="modal-footer">
{{outlet "buttons"}}
</div>
</div>
</div>
</div>

View file

@ -0,0 +1,12 @@
<select {{action "change" on="change"}} class="form-control {{cssClass}}" readonly={{readonly}}>
{{#if prompt}}
<option disabled selected={{is-not selection}}>
{{prompt}}
</option>
{{/if}}
{{#each content key="@identity" as |item|}}
<option value={{read-path item optionValuePath}} selected={{is-equal item selection}}>
{{read-path item optionLabelPath}}
</option>
{{/each}}
</select>

View file

@ -0,0 +1,3 @@
{{#if tooltip}}
{{#attach-tooltip showDelay=1000}}{{tooltip}}{{/attach-tooltip}}
{{/if}}

View file

@ -0,0 +1,3 @@
{{#if tooltip}}
{{#attach-tooltip showDelay=1000}}{{tooltip}}{{/attach-tooltip}}
{{/if}}