ndr_ui 5.0.2 → 5.0.4

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: a2fe83273bc89d89c52221125280a72d2e21d8d1a6b5a08a60f705a822ee4892
4
- data.tar.gz: a7582a30f48f0b3b448f90f462adb12d66163ebf1fbefd5ca619c039130109b2
3
+ metadata.gz: 982b6adc24bd6884ed67941c3e94411312e5baba496f7ad014dfd5db3ba1c024
4
+ data.tar.gz: f49d8b4d896460c25b83ee1f43abf6623661a2bf807de96428e684c0022816fb
5
5
  SHA512:
6
- metadata.gz: 297e03b359f052b0945aefa379ebc60cf34aff58862c8623d2be1cd7c4888ce1a5b2d2964de0457e970c23d25956c8aa6349cc7207a9eb2ca1b34c30970400a4
7
- data.tar.gz: 459e1b57cc9573c494c72fef667e0c7efc5b02217fc6f4a4f605d56f3eaccc5a34d50393d3a19df10c6e86b6bfcf16fd96993748c816d437632224539495fae2
6
+ metadata.gz: f29ce36ed9d1dee95a421237e1a891b4a3f69a9c6e6495d098864497a88221b86aa58b5f9a5ec001457b5cac83f1d44c5a609a8879a9f52ce9164b8652275d50
7
+ data.tar.gz: 45869b7f4b59c04960cf654c0e314d0e7ead6c7ad96137b96748ec4cfef6302e3f7fc14e50982f4c6b1669d8143eb5b1a6e8c49bbe175b6c9c5e2cc80e9b13d0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ## [Unreleased]
2
2
  * no unreleased changes *
3
3
 
4
+ ## 5.0.4 / 2025-10-22
5
+ ### Fixed
6
+ * Support Ruby 3.4, Rails 8.0
7
+
8
+ ## 5.0.3 / 2025-03-07
9
+ ### Fixed
10
+ * fix input group UI style in form and readonly mode
11
+
4
12
  ## 5.0.2 / 2025-03-02
5
13
  ### Fixed
6
14
  * add row class to horizontal form row (.form-group)
@@ -9,7 +17,7 @@
9
17
  ## 5.0.1 / 2025-02-03
10
18
  ### Fixed
11
19
  * fix cancel modal button
12
- * re-introdce `btn-default` style
20
+ * re-introduce `btn-default` style
13
21
  * fix `bootstrap_tab_nav_tag` helper method with required classes
14
22
  * allow more padding at the end for `bootstrap_list_badge_and_link_to`
15
23
  * fix offset class name in line with Bootstrap 5 upgrade
@@ -40,6 +48,10 @@
40
48
  * Display line breaks for readonly textarea fields
41
49
  * Bump jQuery to v3.0.0
42
50
 
51
+ ## 3.3.2 / 2025-06-09
52
+ ### Fixed
53
+ * Support Ruby 3.2 and 3.3 and Rails 7.1 and 7.2 [backported from v4.1.1]
54
+
43
55
  ## 3.3.1 / 2022-12-01
44
56
  ### Fixed
45
57
  * Support Ruby 3.1 and Rails 7.0
data/Rakefile CHANGED
@@ -14,11 +14,11 @@ end
14
14
  # rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  # end
16
16
 
17
- load 'rails/tasks/statistics.rake'
18
-
19
- APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__)
17
+ APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
20
18
  load 'rails/tasks/engine.rake'
21
19
 
20
+ load 'rails/tasks/statistics.rake'
21
+
22
22
  Bundler::GemHelper.install_tasks
23
23
 
24
24
  require 'rake/testtask'
@@ -12,28 +12,46 @@ $bootstrap-icons-font-dir: ".";
12
12
  }
13
13
  }
14
14
 
15
- // for input fields with input-addons, remove background and border when the form is readonly.
16
- .input-group {
17
- .form-control-plaintext + .input-group-text {
18
- background: none;
19
- border:0;
20
- }
21
- }
22
-
23
- // UI fix for .input-group in readonly mode
15
+ // UI fix for form element in .input-group
24
16
  form .input-group {
25
- // for input-addons in readonly mode, remove background and border
26
- .form-control-plaintext + .input-group-text,
27
- .input-group-text:has(+ .form-control-plaintext) {
28
- background: none;
29
- border:0;
30
- }
31
-
32
17
  // for readonly fields following or followed by input-addons, set auto width to display content in one line
33
18
  .form-control-plaintext:has(+ .input-group-text),
34
19
  .input-group-text + .form-control-plaintext {
35
20
  width: auto;
36
21
  }
22
+
23
+ // for input-addons in readonly mode, reserve the border style for plain text and add more spacing on both sides
24
+ > .form-control-plaintext:has(+ .input-group-text),
25
+ > .input-group-text + .form-control-plaintext {
26
+ border: var(--bs-border-width) solid var(--bs-border-color);
27
+ padding-left: 8px;
28
+ padding-right: 8px;
29
+ }
30
+
31
+ // BS radius fix for elements in .input-group, as we added `.has-validation` class to .input-group by default
32
+ // remove right radius if an element is followed by another
33
+ // > .form-control in edit mode
34
+ .form-control:has(+ .input-group-text),
35
+ .input-group-text:has(+ .form-control) {
36
+ border-top-right-radius: 0;
37
+ border-bottom-right-radius: 0;
38
+ }
39
+ // > .form-control-plaintext in readonly mode
40
+ .form-control-plaintext:has(+ .input-group-text),
41
+ .input-group-text:has(+ .form-control-plaintext) {
42
+ border-top-right-radius: 0;
43
+ border-bottom-right-radius: 0;
44
+ }
45
+
46
+ // as a general global fix, ensure correct radius on first and last element
47
+ > :first-child {
48
+ border-top-left-radius: var(--bs-border-radius);
49
+ border-bottom-left-radius: var(--bs-border-radius);
50
+ }
51
+ > :last-child {
52
+ border-top-right-radius: var(--bs-border-radius);
53
+ border-bottom-right-radius: var(--bs-border-radius);
54
+ }
37
55
  }
38
56
 
39
57
  // Bootstrap don't have btn-default anymore
@@ -2,5 +2,5 @@
2
2
 
3
3
  # This stores the current version of the NdrUi gem. Use semantic versioning http://semver.org
4
4
  module NdrUi
5
- VERSION = '5.0.2'
5
+ VERSION = '5.0.4'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - NDR Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-02 00:00:00.000000000 Z
11
+ date: 2025-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap
@@ -61,7 +61,7 @@ dependencies:
61
61
  version: '6.1'
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
- version: '7.3'
64
+ version: '8.1'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
@@ -71,7 +71,7 @@ dependencies:
71
71
  version: '6.1'
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
- version: '7.3'
74
+ version: '8.1'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: sprockets
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -458,7 +458,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
458
458
  - !ruby/object:Gem::Version
459
459
  version: '0'
460
460
  requirements: []
461
- rubygems_version: 3.3.27
461
+ rubygems_version: 3.5.22
462
462
  signing_key:
463
463
  specification_version: 4
464
464
  summary: NDR UI Rails Engine