effective_bootstrap 1.16.0 → 1.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfe065669ae756a8e58b9ea357bd5e448ed4cf6e0033b5282134fff7413bb538
4
- data.tar.gz: b9506944db75b76c35c38b9b6c65d9140c66cb3e0c4fe64c1a859cc98fd504c8
3
+ metadata.gz: 87aa66bc159b634a8f2488be80d1e5ef7a394bd0290f4d1ea32c28e7d6a495ab
4
+ data.tar.gz: 2499601a659f1ef507e8df40d90a2d674e402d0844765bb2a638882ccf4f1d29
5
5
  SHA512:
6
- metadata.gz: 676f003a0a66e2550a2e78bcf5f14f5146b14cba6d1d8d543c986f692880da073d1e5236d1f2b6a583fb7007ea412b631e754379a9f15668fccf5c30936bc9a2
7
- data.tar.gz: cd94f9fe97ca0449deeaebf1d8bedc01d31d4cefe7da7aeaf301f84b5a912f7b97e2ade5c019b376168501d2f22b854043fdb3ad518b0893eb3f76c62666f993
6
+ metadata.gz: 4dac5d328b339bd78a72a98ea369d30e608b324ba3b82319e6141b6d7439c1506f3c97c2ea3f6588f3155e21a8db02d8bbf19073333b4b78b52a2cc1873fd39f
7
+ data.tar.gz: ff575ae33601920379638cc879d893c1c6c3f07cd220b1ad054a56f2580078951ad00bcc36fffa5b03e6cb4689c1bc0cb1d3f6ca556cff5add02e502299b0dbc
@@ -29,3 +29,7 @@
29
29
  .effective_date_time_picker_input_group {
30
30
  cursor: pointer;
31
31
  }
32
+
33
+ .effective_date_time_picker_input_group:has(input:disabled) {
34
+ color: red;
35
+ }
@@ -485,13 +485,13 @@ module EffectiveBootstrapHelper
485
485
  # Pagination Tags
486
486
  prev_tag = content_tag(:li, class: ['page-item', ('disabled' if page <= 1)].compact.join(' ')) do
487
487
  link_to(content_tag(:span, 'Previous'.html_safe), (page <= 1 ? '#' : url + params.merge('page' => page - 1).to_query),
488
- class: 'page-link', 'aria-label': 'Previous', title: 'Previous', 'aria-disabled': ('true' if page <= 1), 'tabindex': ('-1' if page <= 1)
488
+ class: 'page-link', 'aria-label': 'Previous', title: 'Previous', 'aria-disabled': ('true' if page <= 1), 'tabindex': ('-1' if page <= 1), 'rel': ('prev' unless page <= 1)
489
489
  )
490
490
  end
491
491
 
492
492
  next_tag = content_tag(:li, class: ['page-item', ('disabled' if page >= last)].compact.join(' ')) do
493
493
  link_to(content_tag(:span, 'Next'.html_safe), (page >= last ? '#' : url + params.merge('page' => page + 1).to_query),
494
- class: 'page-link', 'aria-label': 'Next', title: 'Next', 'aria-disabled': ('true' if page >= last), 'tabindex': ('-1' if page >= last)
494
+ class: 'page-link', 'aria-label': 'Next', title: 'Next', 'aria-disabled': ('true' if page >= last), 'tabindex': ('-1' if page >= last), 'rel': ('next' unless page >= last)
495
495
  )
496
496
  end
497
497
 
@@ -17,7 +17,10 @@ module Effective
17
17
  end
18
18
 
19
19
  def input_group_options
20
- { input_group: { class: 'input-group effective_date_time_picker_input_group' }, prepend: content_tag(:span, icon('calendar'), class: 'input-group-text') }
20
+ {
21
+ input_group: { class: 'input-group effective_date_time_picker_input_group' },
22
+ prepend: (content_tag(:span, icon('calendar'), class: 'input-group-text') unless disabled?)
23
+ }
21
24
  end
22
25
 
23
26
  def datetime_to_s # ruby
@@ -161,7 +161,7 @@ module Effective
161
161
  end
162
162
 
163
163
  def build_purge
164
- return ''.html_safe unless purge?
164
+ return ''.html_safe unless purge? && !disabled?
165
165
 
166
166
  label = (multiple? ? 'Delete existing files on save' : 'Delete existing file on save')
167
167
  @builder.check_box('_purge', multiple: true, label: label, id: "#{tag_id}_purge", checked_value: name)
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.16.0'.freeze
2
+ VERSION = '1.16.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-03 00:00:00.000000000 Z
11
+ date: 2023-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails