turbo_material 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b18b412f6d3496a0cc3f86210263f8eb652410700440f3f4bfdb84bdf5c51e96
4
- data.tar.gz: b16107b1d6e7d29da0c48a2d8dd50f278f033501ae1a4f6e96c1edd9dde10ab2
3
+ metadata.gz: 6e7bbed44ed9064ad71ffcbf477fd9cd7f1f3280b3cf299826424165bce6d2a6
4
+ data.tar.gz: 2abd0a679e2bb51f2e233ce1867344acc9a066daa8ffa8b9b273d8b0005b65c4
5
5
  SHA512:
6
- metadata.gz: 0d6c254ef6df549a984102cec441584d3da0c2c5877f59b7e61d64207c7d85bf774b6e090b663a254574b7e95ad044858a74e44f52a1a94c7848b55d16eac9dc
7
- data.tar.gz: 4c3673d5a4c00313995b8e03fe877b9e26d8a4f25fc055299e307b989d3546073e8dd49aad7127777ebd6b29267201166ccf32af44e4097cf9c1b7eb8b27e209
6
+ metadata.gz: 864e6a811042ebc6f5e5d623a9ecdca174562b28c87abf627c613e3d26569225185ebae5cb477dce980070235dc2d44d589d78e42c18dd480d1c18f3020abad5
7
+ data.tar.gz: cb5c7c8bd7b6ceccbae90c674f65e5aad0e644ecad2410cdecd6667cc99b6b52b6c8ebb5681c94b0ae8625bdfc5a72359c46e8ff2c0a6a727d8bf2ab6d870158
@@ -1,4 +1,4 @@
1
- <%# locals: (name:, table_body:, url:, table_params:, records:, pagy:, table_headers_partial:, table_contents_partial:) %>
1
+ <%# locals: (name:, table_body:, url:, table_params:, records:, selected_records:, pagy:, table_headers_partial:, table_contents_partial:) %>
2
2
  <div class="mdc-data-table w-full" data-controller="material-data-table"
3
3
  data-material-data-table-body-value="<%= table_body %>"
4
4
  data-material-data-table-url-value="<%= url %>"
@@ -23,7 +23,7 @@
23
23
  </tr>
24
24
  </thead>
25
25
  <tbody class="mdc-data-table__content">
26
- <%= render partial: table_contents_partial, locals: { records: records } %>
26
+ <%= render partial: table_contents_partial, locals: { records: records, selected_records: selected_records } %>
27
27
  </tbody>
28
28
  </table>
29
29
  </div>
@@ -1,7 +1,7 @@
1
- <%# locals: (id:) %>
1
+ <%# locals: (id:, checked:) %>
2
2
  <td class="mdc-data-table__cell mdc-data-table__cell--checkbox">
3
3
  <div class="mdc-checkbox mdc-data-table__row-checkbox">
4
- <input type="checkbox" class="mdc-checkbox__native-control" aria-labelledby="<%= id %>"/>
4
+ <input type="checkbox" class="mdc-checkbox__native-control" aria-labelledby="<%= id %>" <%= checked ? 'checked' : '' %>/>
5
5
  <div class="mdc-checkbox__background">
6
6
  <svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
7
7
  <path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
@@ -1,3 +1,3 @@
1
1
  module TurboMaterial
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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.5
4
+ version: 0.2.6
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-04-12 00:00:00.000000000 Z
11
+ date: 2024-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails