effective_bootstrap 1.21.15 → 1.21.17

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: 95a3dba00833994fde0897928947a96faad8d6b3bfdb9b7773e7503c022c121b
4
- data.tar.gz: 7e4200159f102f070db03a2f805cf9e13a0cc126ffda9ce6b08f07f77e0d489d
3
+ metadata.gz: c0b85aea115174dcaa8d0342de871bd516710b3932bd46b5bbd412c9057b3de9
4
+ data.tar.gz: 80936360e37c157099281570968d754e3e58cbe26b24838b67ed3c1aba6b18a6
5
5
  SHA512:
6
- metadata.gz: 66779bea03451d8727cfe031b41778a526ecbcb78449c16e0d96cb52b6241c93de28f833e4a4e6b0f2ea51cb4643e46876ebfb818131dc5bc04aa9f65d4dec94
7
- data.tar.gz: 2dc02509256ea559fb7738df975ac72011d754af15f3094a2bb80f792dfadfbd23ab7cbd884a0d5ad50788aacc4a6bea9b8ece148fc0597f16ca7260466c21b0
6
+ metadata.gz: 6cbe5119b0a7bf7b8032903fb52b2623420cc00891b9ff99780555185018c6e86848bf4b93325943f2305fe33ba24184fa11cd842b85b4c135c3f26fe92482d5
7
+ data.tar.gz: '096a6368dda722dfad49873a13dba886e7c315b26b45c4bcfc3bb78480ce001f0c2f239a5eaed49202eb149f523427b2ebf7e94f831da09ba292770d3b7d9943'
@@ -50,6 +50,11 @@ uploadActiveStorage = (editor, data) ->
50
50
  .after(attachment)
51
51
  .addClass(classes)
52
52
 
53
+ doc
54
+ .find("img[data-hover-src^='#{rails_url}']:not(.effective-article-editor-hover-attachment)")
55
+ .after(attachment)
56
+ .addClass('effective-article-editor-hover-attachment')
57
+
53
58
  doc
54
59
  .find("a[data-file][data-name='#{file.name}']:not(.action-text-attachment)")
55
60
  .after(attachment)
@@ -1,5 +1,14 @@
1
1
  elementSelector = 'input,textarea,select,button,div.form-has-many'
2
2
 
3
+ # When multiple show_if blocks contain radio buttons with the same name, the browser only keeps the last one checked.
4
+ # If that radio is in a # hidden/disabled block, the visible block's radio won't be checked.
5
+ # This syncs the checked state from disabled radios to their enabled counterparts.
6
+ syncDisabledRadioButtons = ($container) ->
7
+ $container.find('input[type="radio"]:checked:disabled').each ->
8
+ name = $(this).attr('name')
9
+ value = $(this).val()
10
+ $container.find("input[type='radio'][name='#{name}'][value='#{value}']:enabled").prop('checked', true)
11
+
3
12
  (this.EffectiveBootstrap || {}).effective_hide_if = ($element, options) ->
4
13
  if options.nested
5
14
  $container = $element.parent('div.effective-form-logic') || $element.closest('form,div.effective-datatables-filters')
@@ -31,6 +40,7 @@ elementSelector = 'input,textarea,select,button,div.form-has-many'
31
40
  # Maybe disable it now
32
41
  if options.needDisable
33
42
  $element.find(elementSelector).prop('disabled', true)
43
+ syncDisabledRadioButtons($container)
34
44
 
35
45
  (this.EffectiveBootstrap || {}).effective_show_if = ($element, options) ->
36
46
  if options.nested
@@ -63,6 +73,7 @@ elementSelector = 'input,textarea,select,button,div.form-has-many'
63
73
  # Maybe disable it now
64
74
  if options.needDisable
65
75
  $element.find(elementSelector).prop('disabled', true)
76
+ syncDisabledRadioButtons($container)
66
77
 
67
78
  (this.EffectiveBootstrap || {}).effective_show_if_any = ($element, options) ->
68
79
  if options.nested
@@ -99,3 +110,4 @@ elementSelector = 'input,textarea,select,button,div.form-has-many'
99
110
  # Maybe disable it now
100
111
  if options.needDisable
101
112
  $element.find(elementSelector).prop('disabled', true)
113
+ syncDisabledRadioButtons($container)
@@ -101,7 +101,7 @@ module Effective
101
101
  }
102
102
  },
103
103
  outset: false, # tricky to design around
104
- plugins: ['blockcode', 'carousel', 'cellcolor', 'collapse', 'filelink', 'imageposition', 'imageresize', 'inlineformat', 'listitem', 'makebutton', 'removeformat', 'reorder', 'style'],
104
+ plugins: ['blockcode', 'carousel', 'cellcolor', 'collapse', 'filelink', 'imagehover', 'imageposition', 'imageresize', 'inlineformat', 'listitem', 'makebutton', 'removeformat', 'reorder', 'style'],
105
105
 
106
106
  quote: {
107
107
  template: '<blockquote class="blockquote text-center"><p class="mb-0"><strong>A well-known quote, contained in a blockquote element.</strong></p></blockquote>'
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.21.15'.freeze
2
+ VERSION = '1.21.17'.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.21.15
4
+ version: 1.21.17
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: 2026-02-04 00:00:00.000000000 Z
11
+ date: 2026-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails