formatic 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -4
- data/lib/formatic/templates/search.rb +2 -2
- data/lib/formatic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c931ff6cca39b6a9700a6e5cdb156c5c1c5db3275bf418d60edef92bb332ad38
|
|
4
|
+
data.tar.gz: 17fa8c729f43d79b261cb1b65a80c89c08d36885a138e45e2dbbadcb5581e02a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87b166208544a11ecac31459ea34db003bc83f49668abb720fb98f365b7ef78b52e23f4f093353063962fddb93eecd233764412df61f81885a05c2b579bf5a48
|
|
7
|
+
data.tar.gz: 4bb2ef735910006e78166d8c65c61ef721b253cd55b94379c084dc8ad3adbd1b4b2a381d4c6f197f03d6848313d5431420e1fc20834ed4fbd687eb137e5a9146
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -44,10 +44,11 @@ and a selected search field. Its `as_json` and `to_json` methods return the wrap
|
|
|
44
44
|
`Formatic::Search` to render its selected markup, including the usual clear control:
|
|
45
45
|
the app supplies the rendered record fragments, and Formatic adds the search wrappers.
|
|
46
46
|
|
|
47
|
-
Styling hooks: the quick-pick
|
|
48
|
-
the async hits `formatic-search-hook__results`. Both
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
Styling hooks: the quick-pick list carries `formatic-search-hook__quickpicks`,
|
|
48
|
+
the async hits `formatic-search-hook__results`. Both sit on the grid element
|
|
49
|
+
itself, so layout overrides like `display` land where they take effect.
|
|
50
|
+
Both are stable across refactors. Each also carries a modifier with the
|
|
51
|
+
records route key, so one model can differ from the rest:
|
|
51
52
|
|
|
52
53
|
```css
|
|
53
54
|
.formatic-search-hook__quickpicks--animals {
|
|
@@ -38,7 +38,7 @@ module Formatic
|
|
|
38
38
|
class: 'js-formatic-search__query-input' %>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
|
-
<div class="c-formatic-search__quickpicks js-formatic-search__quickpicks
|
|
41
|
+
<div class="c-formatic-search__quickpicks js-formatic-search__quickpicks<%= ' is-hidden' if picks_initially_hidden? %>">
|
|
42
42
|
<% if pick_groups.size > 1 %>
|
|
43
43
|
<div class="c-formatic-search__quickpicks-tabs js-formatic-search__quickpicks-tablist" role="tablist">
|
|
44
44
|
<% pick_groups.each_with_index do |group, group_index| %>
|
|
@@ -51,7 +51,7 @@ module Formatic
|
|
|
51
51
|
</div>
|
|
52
52
|
<% end %>
|
|
53
53
|
<% pick_groups.each_with_index do |group, group_index| %>
|
|
54
|
-
<fieldset class="c-formatic-search__quickpicks-group js-formatic-search__quickpicks-panel<%= ' is-hidden' if pick_groups.size > 1 && group_index != active_group_index %>"
|
|
54
|
+
<fieldset class="c-formatic-search__quickpicks-group js-formatic-search__quickpicks-panel formatic-search-hook__quickpicks<%= ' formatic-search-hook__quickpicks--' + hook_modifier if hook_modifier %><%= ' is-hidden' if pick_groups.size > 1 && group_index != active_group_index %>"
|
|
55
55
|
<% if pick_groups.size > 1 %>role="tabpanel" aria-labelledby="<%= query_input_id %>_tab_<%= group_index %>"<% else %>aria-label="<%= group[:legend] %>"<% end %>>
|
|
56
56
|
<% group[:picks].each do |pick| %>
|
|
57
57
|
<label class="c-formatic-search__pick js-formatic-search__pick-label" for="<%= pick[:dom_id] %>">
|
data/lib/formatic/version.rb
CHANGED