tybo 0.3.18 → 0.3.20

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: b972cd10f71791fe9ac32b98940427d5c23bc2e81a15c4935669f7b7e44db2fc
4
- data.tar.gz: 9db91ffa905d15fb3bc7e8a233c1c921b255e9de36d4a1504e54982376e1be01
3
+ metadata.gz: 85ed3bbf8ec48128263b509e2d994dc5db8bb9c9e46ce1ad811a3d87d7ee3bfd
4
+ data.tar.gz: db1e30bc88f1c93ac90da0fd29d35012d1fe044f70205eed62db83a1c53fcf68
5
5
  SHA512:
6
- metadata.gz: e138631ed14a61b8fae4bb34d97a58ef50922f300038e7e501599f89cdf01cf35f67a5d482fcac108444a028535dc6d85cbd8a42adab69180cc368a37bf58be9
7
- data.tar.gz: 7c0d4e848a2fa9e562b64e6e541bba268bbed3726e465f757e1f87f2f60b696c63d011203b65fb21ac09b2a41624a53103fb28e7913d81c6d32ee899487e67c5
6
+ metadata.gz: 9a1693fc7f40b108b5eb4fb78964276efa90b12f04c23bc3fe9745a82290f44736c0522e0535e51399dc56400a2ec2459e0674c3227d4b78aa73fcfc9d6f545f
7
+ data.tar.gz: a2f35bfbd8de7944c44cd5fffef5f3da6f16174baadc6ce063ae2a9bf3816b9fd4ed215a3c11efd12a4e934b28d014fefc5580282f2b18bb8c13cde14380c4db
@@ -1,3 +1,3 @@
1
1
  <th class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900 hover:cursor-pointer">
2
- <%= sort_link(@q, @column_name, @label, default_order: :asc) %>
2
+ <%= sort_link(@q, @column_name, {label: @label, default_order: :asc}) %>
3
3
  </th>
@@ -1,3 +1,3 @@
1
- <th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">
1
+ <th class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">
2
2
  <%= content %>
3
3
  </th>
@@ -10,4 +10,16 @@ Ransack.configure do |config|
10
10
  formatter: proc { |v| v.end_of_day },
11
11
  validator: proc { |v| v.present? },
12
12
  type: :date
13
+
14
+ config.custom_arrows = {
15
+ default_arrow: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="inline-block w-4 h-4 align-middle">
16
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" />
17
+ </svg>',
18
+ up_arrow: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="inline-block w-4 h-4 align-middle">
19
+ <path stroke-linecap="round" stroke-linejoin="round" d="m4.5 15.75 7.5-7.5 7.5 7.5" />
20
+ </svg>',
21
+ down_arrow: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="inline-block w-4 h-4 align-middle">
22
+ <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
23
+ </svg>'
24
+ }
13
25
  end
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.3.18'
2
+ VERSION = '0.3.20'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
8
8
  - Julien Camblan
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-26 00:00:00.000000000 Z
12
+ date: 2024-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -283,7 +283,7 @@ licenses:
283
283
  - MIT
284
284
  metadata:
285
285
  homepage_uri: https://rubygems.org/gems/tybo
286
- post_install_message:
286
+ post_install_message:
287
287
  rdoc_options: []
288
288
  require_paths:
289
289
  - lib
@@ -298,8 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  - !ruby/object:Gem::Version
299
299
  version: '0'
300
300
  requirements: []
301
- rubygems_version: 3.5.4
302
- signing_key:
301
+ rubygems_version: 3.0.3.1
302
+ signing_key:
303
303
  specification_version: 4
304
304
  summary: A tailwind custom admin engine for Ruby on Rails
305
305
  test_files: []