turbo_material 0.2.8 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff8fbd8cf8e2dc34d46f3c242d880bc66c9c4672487fbeabb0069f48c7e8f81f
|
4
|
+
data.tar.gz: dddf1361d8d928b5cded6b72ffad5f06308f1d4098b0a0bf6e5900893a1a5ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7305c55dc875b2c42e95f2e33265941f661dfa619d087a150b1f05b9510fc681f39898858d7bf7d2f08661f08547bf66567fee31604b273c270c88bbc69e4734
|
7
|
+
data.tar.gz: 590229af610ddb2bb0945f1ea673701bf60a4240d13d6eecf67b50fd134d702e45407de50677b8ad521ddbf7d385ae501ef1895a9232d5925fa3ab8cc515a767
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<%= form.hidden_field key, value: params[key] %>
|
44
44
|
<%- end -%>
|
45
45
|
<%= material_select name: 'per_page', form: form, id: 'per-page', options: per_page_options,
|
46
|
-
value: pagy.items, outlined: true, additional_classes: 'mdc-data-table__pagination-rows-per-page-select mdc-data-table__pagination-rows-per-page-select--outlined' %>
|
46
|
+
value: pagy.respond_to?(:items) ? pagy.items : pagy.limit , outlined: true, additional_classes: 'mdc-data-table__pagination-rows-per-page-select mdc-data-table__pagination-rows-per-page-select--outlined' %>
|
47
47
|
<%- end -%>
|
48
48
|
|
49
49
|
<div class="mdc-data-table__pagination-navigation">
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<%# locals: (form:, custom_controller: nil, custom_css: nil, disabled: false, required: false, name:, label: nil, id:, checked: false, frame: nil, provide_hidden: false, value: nil, type: 'text', data: {}, min: nil, max: nil, helper: nil, parent: nil, style: 'filled') %>
|
2
|
-
<label class="mdc-text-field rounded-none <%= style == 'filled' ? 'mdc-text-field--filled' : 'mdc-text-field--outlined' %> <%= value || form&.object&.[](name.to_sym) ? 'mdc-text-field--label-floating' : '' %> w-full <%= custom_css %>"
|
1
|
+
<%# locals: (form:, custom_controller: nil, custom_css: nil, disabled: false, required: false, name:, label: nil, id:, checked: false, frame: nil, provide_hidden: false, value: nil, type: 'text', data: {}, min: nil, max: nil, helper: nil, parent: nil, style: 'filled', leading_icon: nil, trailing_icon: nil, leading_icon_data: {}, trailing_icon_data: {}) %>
|
2
|
+
<label class="mdc-text-field rounded-none <%= style == 'filled' ? 'mdc-text-field--filled' : 'mdc-text-field--outlined' %> <%= value || form&.object&.[](name.to_sym) ? 'mdc-text-field--label-floating' : '' %> w-full <%= leading_icon ? 'mdc-text-field--with-leading-icon' : '' %> <%= trailing_icon ? 'mdc-text-field--with-trailing-icon' : '' %> <%= custom_css %>"
|
3
3
|
data-controller="<%= custom_controller || 'material-input' %>" <% if frame %>data-frame="<%= frame %>"<% end %>>
|
4
4
|
<%- if style == 'filled' -%>
|
5
5
|
<span class="mdc-text-field__ripple"></span>
|
@@ -17,6 +17,9 @@
|
|
17
17
|
<span class="mdc-notched-outline__trailing"></span>
|
18
18
|
</span>
|
19
19
|
<% end %>
|
20
|
+
<%- if leading_icon -%>
|
21
|
+
<i class="material-icons mdc-text-field__icon mdc-text-field__icon--leading" <%= tag.attributes((trailing_icon ? {} : {tabindex: '0', role: 'button'}).merge(data: leading_icon_data)) %>><%= leading_icon %></i>
|
22
|
+
<%- end -%>
|
20
23
|
<%= form.text_field provide_hidden ? "#{name}_".to_sym : name.to_sym,
|
21
24
|
class: 'mdc-text-field__input', value: value || form&.object&.[](name.to_sym),
|
22
25
|
id: id, 'aria-labelledby' => id + '-label',
|
@@ -24,6 +27,9 @@
|
|
24
27
|
type: type, autocomplete: "new-password", data: { frame: frame, **(data) }.compact,
|
25
28
|
min: min, max: max
|
26
29
|
%>
|
30
|
+
<%- if trailing_icon -%>
|
31
|
+
<i class="material-icons mdc-text-field__icon mdc-text-field__icon--trailing" <%= tag.attributes(tabindex: '0', role: 'button', data: trailing_icon_data) %>><%= trailing_icon %></i>
|
32
|
+
<%- end -%>
|
27
33
|
<%- if style == 'filled' -%><span class="mdc-line-ripple"></span><%- end -%>
|
28
34
|
<%- if provide_hidden -%><%= form.hidden_field name.to_sym, value: value, data: { frame: frame }.compact %><%- end -%>
|
29
35
|
</label>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo_material
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Moiseev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|