effective_bootstrap 1.19.0 → 1.19.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: 844038db1d595831ec16f1cd49a7f3c89bb8b7b877261d36babc5560da5f7a72
4
- data.tar.gz: ac61d9e612506dd44cd17b475f2fd2b462ad2aec596867d64c6c1227a927a7cb
3
+ metadata.gz: 30ed0755d71e2507d659e3b3c0a4fe94f5aa87cdd28b18b98e00ac355d18b317
4
+ data.tar.gz: '0423308054e7ac0369dc1d980c02d108ad938990dc9e02fc0b036f2df1fa91bb'
5
5
  SHA512:
6
- metadata.gz: 00da333a9a954cc0d2726fd04c8609f07028f310aa8e74c75ca8a095879665013d9343948466d4a1520d210a28a912dca4bb7a1b6085a73334b45e47b48f74c2
7
- data.tar.gz: 2bf1ae4caaa18d4ce889319408a45f3f6e65e18bfd2682fbe03b700ed98fdd6800e994b195ad7434165be72a7cae61e80ce376e4e77605c33c5d3134975b3e09
6
+ metadata.gz: 4cd32bb7192b96ac9349d0451749bff769ff93b48772b2f0d1ba508091410bd276eccce7b884f5855fb5d8b5ecdc2c1b79c349433bdeb5a62a487f8c772549b2
7
+ data.tar.gz: 1d0ec5d073cc37811ac8ee38e524bdf4311eacd1a745c3719db38453f16526757d865fb704a564fcf51e4660e337cd4ccc2c1c91eae487a88d4428b2f9df8062
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EffectiveIframeHelper
4
+
5
+ def iframe_srcdoc_tag(srcdoc)
6
+ content_tag(
7
+ :iframe,
8
+ '',
9
+ srcdoc: srcdoc,
10
+ style: 'frameborder: 0; border: 0; width: 100%; height: 100%;',
11
+ onload: "this.style.height=(this.contentDocument.body.scrollHeight + 30) + 'px';",
12
+ scrolling: 'no'
13
+ )
14
+ end
15
+
16
+ end
@@ -367,7 +367,7 @@ module Effective
367
367
  if readonly?
368
368
  options[:input][:readonly] = 'readonly'
369
369
 
370
- unless options[:input][:class].to_s.include?('form-control-plaintext')
370
+ if options[:input][:class].to_s.include?('form-control-plaintext') == false && options[:input][:plaintext] != false
371
371
  options[:input][:class] = (options[:input][:class] || '').sub('form-control', 'form-control-plaintext')
372
372
  end
373
373
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.19.0'.freeze
2
+ VERSION = '1.19.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.19.0
4
+ version: 1.19.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: 2024-06-24 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -661,6 +661,7 @@ files:
661
661
  - app/helpers/effective_editor_helper.rb
662
662
  - app/helpers/effective_form_builder_helper.rb
663
663
  - app/helpers/effective_icons_helper.rb
664
+ - app/helpers/effective_iframe_helper.rb
664
665
  - app/helpers/effective_table_builder_helper.rb
665
666
  - app/models/effective/form_builder.rb
666
667
  - app/models/effective/form_input.rb