cm-admin 1.5.30 → 1.5.31

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: e7b3d959b5e4c28d831b165dc391c42953beb42f87a9c078c97bb42f3dec2a64
4
- data.tar.gz: a08df5bdd7d91feee259f8f18e1a198fdb3022192c4684e121cfccd2f36b1a6e
3
+ metadata.gz: a4806b02b5845c202b735ad26a6eb4a9945a56eaf37e62855a6d0d28e2339ee0
4
+ data.tar.gz: cb909df59fd57a8e8bafff319b96b3e6cba4f2d2db019f52254b937eae9f506c
5
5
  SHA512:
6
- metadata.gz: 98265ae7f832c8d132853a45f0c7263398530a43b485151695d6a7b8350da8221f0e584938dfd154367f815dad55071b922cdb826649be140f79aa14169765e8
7
- data.tar.gz: e9ef61ff233874c87a88a2d3a8ea677d9c7ace389e9375dc2beb688cdc95db3ba9acfce27c24350bcabd8aa5f10474e8fb62c68c51d125ba914919baa683874b
6
+ metadata.gz: 05c69f27797b1e09765bb97190d00649f9b74c5ea6a670bf0102ab9337bd3a48961658e35f078ee39dfd146096451008c8f261e73aada5175b9afc3101200842
7
+ data.tar.gz: 61a8089e3ee80cbc90e35bc43ef10c0acfb034c5b553975eef34c2ac2b85e7478c40194533ef71213a1575563ea1bf5462da4dec8409722d5bdfadb4b3475c84
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (1.5.30)
4
+ cm-admin (1.5.31)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -8,7 +8,8 @@
8
8
 
9
9
  display: block;
10
10
  width: 100%;
11
- padding: $form-select-padding-y $form-select-indicator-padding $form-select-padding-y $form-select-padding-x;
11
+ padding: $form-select-padding-y $form-select-indicator-padding
12
+ $form-select-padding-y $form-select-padding-x;
12
13
  font-family: $form-select-font-family;
13
14
  @include font-size($form-select-font-size);
14
15
  font-weight: $form-select-font-weight;
@@ -16,7 +17,8 @@
16
17
  color: $form-select-color;
17
18
  appearance: none;
18
19
  background-color: $form-select-bg;
19
- background-image: var(--#{$prefix}form-select-bg-img), var(--#{$prefix}form-select-bg-icon, none);
20
+ background-image: var(--#{$prefix}form-select-bg-img),
21
+ var(--#{$prefix}form-select-bg-icon, none);
20
22
  background-repeat: no-repeat;
21
23
  background-position: $form-select-bg-position;
22
24
  background-size: $form-select-bg-size;
@@ -29,7 +31,10 @@
29
31
  border-color: $form-select-focus-border-color;
30
32
  outline: 0;
31
33
  @if $enable-shadows {
32
- @include box-shadow($form-select-box-shadow, $form-select-focus-box-shadow);
34
+ @include box-shadow(
35
+ $form-select-box-shadow,
36
+ $form-select-focus-box-shadow
37
+ );
33
38
  } @else {
34
39
  // Avoid using mixin so we can pass custom focus shadow properly
35
40
  box-shadow: $form-select-focus-box-shadow;
@@ -78,3 +83,24 @@
78
83
  }
79
84
  }
80
85
  }
86
+
87
+ select[readonly].select2-hidden-accessible + .select2-container {
88
+ pointer-events: none;
89
+ touch-action: none;
90
+ }
91
+
92
+ select[readonly].select2-hidden-accessible
93
+ + .select2-container
94
+ .select2-selection {
95
+ background: #eee;
96
+ box-shadow: none;
97
+ }
98
+
99
+ select[readonly].select2-hidden-accessible
100
+ + .select2-container
101
+ .select2-selection__arrow,
102
+ select[readonly].select2-hidden-accessible
103
+ + .select2-container
104
+ .select2-selection__clear {
105
+ display: none;
106
+ }
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '1.5.30'
2
+ VERSION = '1.5.31'
3
3
  end
@@ -101,9 +101,9 @@ module CmAdmin
101
101
  end
102
102
 
103
103
  def set_form_field(resource, form_obj, field)
104
- content_tag(:div, class: field.col_size ? "col-#{field.col_size}" : 'col') do
105
- next unless field.display_if.call(form_obj.object)
104
+ return unless field.display_if.call(form_obj.object)
106
105
 
106
+ content_tag(:div, class: field.col_size ? "col-#{field.col_size}" : 'col') do
107
107
  if field.input_type.eql?(:hidden)
108
108
  concat input_field_for_column(form_obj, field)
109
109
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.30
4
+ version: 1.5.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - sajinmp
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-06-25 00:00:00.000000000 Z
13
+ date: 2024-07-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: caxlsx_rails