atlas_assets 0.6.10 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjdmNzIyNDAzN2U0ZjBlNjc0OGNmN2Q4NDU3ZjU0ZDlhMGNmYWMxMg==
4
+ ODhkNjA3OWZiZDE0YzlkMjQ5ZTE3Y2I5ODJmZTFkZWYxZDQ1MWU0OQ==
5
5
  data.tar.gz: !binary |-
6
- NTM0ZGNiYWI1MzQ4NDhhOTAyMGVlYWY5MzVkZDkwY2Q4YjlhYzJlNA==
6
+ M2ExMjZkM2Y2YWRjMGU5NjQzZjljMTk1MTg3OTE0ZDQyNmExZDUzNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDMwM2YwZTA1MWQxZjc2MmRhNmY4YmEwZDI2NGZlOTMzNzUxYjhiMGQwNjk3
10
- OTljNzgzY2UxZGY2NTIzMTE5YjE5ZjRiYjY4NzkwMjNmNDVjMDVhZThhYWM1
11
- Y2EzZmIxY2UzZWY1NTYxM2JlZjA2NTliYWFhYjNlOTkxYjFkYzU=
9
+ ZGUyMGZmNjQ5Y2Y4NGRhODQ3MjU0OTBkMjU5MThiNmZjM2Y5ODkyYTg4Y2Yw
10
+ ZWMxNmViODcyOWIxZDQ1NzY4YTk5NzhjMWQyODI1ZmViYmY5N2Q5MjYxOTkz
11
+ NmQ0ZmMzNjRjN2QwZmIwOGQwNDA4YTFhY2FmZTExODNmMTdkZGY=
12
12
  data.tar.gz: !binary |-
13
- ZjBmNTFlNTIyNTA5MWQ1NmY4MTFlM2IwMDE2ZjM5MTE0YjRhNjllMTY5N2Zh
14
- ODM0ZmE4Zjc1NjE2ZjgxMjhiMDk5MTBkNzAwYjI3OTc2MWZjZThkNmU3NWQw
15
- NjAyYmZlYTUyMTlmZWUyM2YxMmU3OTcyNGYxM2RjM2NhYjMyZTI=
13
+ YWNhMjY3YTA2OTZkZDVlYTRhMjVhMWU0ZWIwOGY0ZjRkYmRkMGU0OTVhNDky
14
+ ZmNhZjRmMzRhNzJkM2M2Nzk4NWM4M2QwZTE1NDE2ZjkwNTk0MzdkNWUxZGNm
15
+ NWJlNTAyNDAxYTliMzQ5NTgyZTdmZDY4ZmU1MTg2MGJjYzgzN2I=
data/Gemfile CHANGED
@@ -15,4 +15,4 @@ gem "pygmentize", "~> 0.0.3"
15
15
  gem "kramdown", "~> 1.0.2"
16
16
  gem "coderay", "~> 1.0.9"
17
17
  gem "puma", "~> 2.0.1"
18
- gem "eco", "~> 1.0.0"
18
+ gem "eco"
data/Gemfile.lock CHANGED
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- atlas_assets (0.6.9)
13
+ atlas_assets (0.6.6.1)
14
14
  handlebars_assets (~> 0.15)
15
15
 
16
16
  GEM
@@ -84,7 +84,7 @@ DEPENDENCIES
84
84
  atlas_assets!
85
85
  coderay (~> 1.0.9)
86
86
  coffee-script
87
- eco (~> 1.0.0)
87
+ eco
88
88
  jekyll (~> 1.0.2)
89
89
  jekyll-assets!
90
90
  kramdown (~> 1.0.2)
@@ -5,6 +5,7 @@
5
5
  <title>{{ page.title }}</title>
6
6
  {% stylesheet atlas_assets %}
7
7
  {% javascript atlas_assets %}
8
+ <script>JST = $.extend(true,JST,HandlebarsTemplates)</script>
8
9
  <style type="text/css">
9
10
  body {
10
11
  padding: 60px 0px;
@@ -3,7 +3,7 @@ layout: default
3
3
  title: "Dropdowns"
4
4
  ---
5
5
 
6
- Dropdowns _(deprecated)_
6
+ Dropdowns
7
7
  ======
8
8
 
9
9
 
@@ -0,0 +1,12 @@
1
+ {{#if helper}}
2
+ <span class="helper">{{helper}}</span>
3
+ <div class="dropdown-with-helper-container">
4
+ {{/if}}
5
+ <select class="dropdown-list" {{#if multiple}}multiple{{/if}} {{#if placeholder}}data-placeholder='{{placeholder}}'{{/if}}>
6
+ {{#each models}}
7
+ <option {{#if selected}}selected{{/if}} {{#if disabled}}disabled{{/if}}>{{label}}</option>
8
+ {{/each}}
9
+ </select>
10
+ {{#if helper}}
11
+ </div>
12
+ {{/if}}
@@ -2,7 +2,7 @@
2
2
  <span class="helper"><%= @helper %>:</span>
3
3
  <div class="dropdown-with-helper-container">
4
4
  <% end %>
5
- <select class="dropdown-list" <% if @multiple: %>multiple<% end %> <% if @placeholder?: %>data-placeholder='<%= @placeholder %>'<% end %>>
5
+ <select class="dropdown-list" <%= if @multiple: %>multiple<% end %> <%= if @placeholder?: %>data-placeholder='<%= @placeholder %>'<% end %>>
6
6
  <% for model in @models: %>
7
7
  <option <% if model.selected?: %>selected<% end %> <% if model.disabled: %>disabled<% end %>><%= model.get('label') %></option>
8
8
  <% end %>
@@ -7,7 +7,7 @@ classes.DropdownView = Backbone.View.extend
7
7
  if !@collection?
8
8
  @collection = new classes.DropdownCollection
9
9
  @opts = _.extend({width: "100%", disable_search_threshold: 4}, opts)
10
- @template = JST["templates/dropdown"];
10
+ @template = JST["dropdown"];
11
11
  @listenTo(@collection, 'add', @render)
12
12
  @collection.each (model) =>
13
13
  @set_default(model)
@@ -24,8 +24,7 @@ classes.DropdownView = Backbone.View.extend
24
24
 
25
25
  render: () ->
26
26
  @rendered = true;
27
- t = @
28
- @$el.html(t.template(_.extend(@opts, {models: @collection.toJSON()})))
27
+ @$el.html(this.template(_.extend(@opts, {models: @collection.toJSON()})))
29
28
 
30
29
  this.delegateEvents();
31
30
  @$('.dropdown-list').chosen({width: @opts.width, disable_search_threshold: @opts.disable_search_threshold}).change((e,selected) =>
@@ -27,7 +27,6 @@
27
27
  @import "atlas_assets/drop-theme-basic";
28
28
 
29
29
  @import "atlas_assets/select-theme-defaults";
30
- @import "atlas_assets/select";
31
30
 
32
31
  @import "atlas_assets/responsive-utilities";
33
32
  @import "atlas_assets/responsive-768-979";
@@ -1,5 +1,5 @@
1
1
  module Atlas
2
2
  module Assets
3
- VERSION = "0.6.10"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.10
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rune Skjoldborg Madsen
@@ -97,7 +97,7 @@ files:
97
97
  - lib/assets/javascripts/libraries/underscore.js
98
98
  - lib/assets/javascripts/models/dropdown.coffee
99
99
  - lib/assets/javascripts/tabs.js
100
- - lib/assets/javascripts/templates/dropdown.jst.eco
100
+ - lib/assets/javascripts/templates/dropdown.hbs
101
101
  - lib/assets/javascripts/templates/select.jst.eco
102
102
  - lib/assets/javascripts/views/dropdown_view.coffee
103
103
  - lib/assets/javascripts/views/select.coffee
@@ -125,7 +125,6 @@ files:
125
125
  - lib/assets/stylesheets/atlas_assets/_responsive-767.scss
126
126
  - lib/assets/stylesheets/atlas_assets/_responsive-768-979.scss
127
127
  - lib/assets/stylesheets/atlas_assets/_responsive-utilities.scss
128
- - lib/assets/stylesheets/atlas_assets/_select.scss
129
128
  - lib/assets/stylesheets/atlas_assets/_tabs.scss
130
129
  - lib/assets/stylesheets/atlas_assets/_utilities.scss
131
130
  - lib/assets/stylesheets/atlas_assets/_variables.scss
@@ -1,12 +0,0 @@
1
- <% if @helper?: %>
2
- <span class="helper"><%= @helper%></span>
3
- <div class="dropdown-with-helper-container">
4
- <% end %>
5
- <select class="dropdown-list" <% if @multiple: %>multiple<% end %> <% if @placeholder?: %>data-placeholder='<%= @placeholder %>'<% end %>>
6
- <% for model in @models: %>
7
- <option <% if model.selected?: %>selected<% end %> <% if model.disabled: %>disabled<% end %>><%= model.label %></option>
8
- <% end %>
9
- </select>
10
- <% if @helper?: %>
11
- </div>
12
- <% end %>
@@ -1,12 +0,0 @@
1
- .select-dropdown {
2
- display: inline-block;
3
- margin: 6px 0;
4
-
5
- .helper {
6
- padding-right: 4px;
7
- }
8
-
9
- .dropdown-with-helper-container {
10
- margin-right: 8px;
11
- }
12
- }