effective_bootstrap 1.16.1 → 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: ccf7a54e3db3db623fce49bd558b72f39938d3c01bef4b5c06e0250e0b581946
4
- data.tar.gz: 06aadcb37db501af97921a20a558e29a3693d8de08162cc2b621b305a015b36c
3
+ metadata.gz: 87aa66bc159b634a8f2488be80d1e5ef7a394bd0290f4d1ea32c28e7d6a495ab
4
+ data.tar.gz: 2499601a659f1ef507e8df40d90a2d674e402d0844765bb2a638882ccf4f1d29
5
5
  SHA512:
6
- metadata.gz: e378b4f94cb4bc226b8ce80a18703e8348f84d023ed61d6d9aecd03191ae7cbeb6ab71b7374553ec91dfa7d623f7a5ecff88a3e114fc302648da1aeec0431864
7
- data.tar.gz: 3ca5c93e2c8207d8460f138036564d228baff8383fc14827df107f1f12e5f7c781ff7624a53338bd16e9978e1f4309a0dbbdb5629970d575ef1c032bbac49929
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
+ }
@@ -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.1'.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.1
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