cm-admin 1.5.8 → 1.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e49275db41af1ddf4329377297145c4d728982d58af3ea702def169013f82da
4
- data.tar.gz: 4a893b0b951b845e3ebd6dd2d329d04666bf5e49453aa32a360155cd2e1ac47b
3
+ metadata.gz: 94f9ea02b086e8af0391fd20f7022e27ac569120264a1c3a35933df453ee1116
4
+ data.tar.gz: eecd4a2bfdbfd0c5a8638749fdcb6b3fdd196fed10469703caead69daee4febd
5
5
  SHA512:
6
- metadata.gz: 4871a8f88d35b886cd398dbb313de28c8633660d13a9da80964ef23c1dc6efb4b49d32f612709312f50a67a29015ce59d5e7316e191ef06a2f04b23ded4795c3
7
- data.tar.gz: 0a31493b6dc0914e864f0344906362dc5595db536b839afe6a51fa94b0ba9847820f56a1f6456678e11dbf2ae851fc712ff72492f555081f7567531d27b7a086
6
+ metadata.gz: c624e3c088c6bf3d19e10a45708a376baffb539911f8a0a7f984f2fae763f3e4a746e9d2a7f70f68944d24423d6969a7c50f08d3300fc45ac3c520608f403542
7
+ data.tar.gz: 953765a6b3bf55d8b8dbd85a105469007f107238773562543f8ffc7c97104a6b6529dcbb4580addda3c997ce2036d056887ba72ec103f24a95d0cfb7061a86fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (1.5.7)
4
+ cm-admin (1.5.9)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -245,7 +245,7 @@ GEM
245
245
  websocket-driver (0.7.6)
246
246
  websocket-extensions (>= 0.1.0)
247
247
  websocket-extensions (0.1.5)
248
- zeitwerk (2.6.14)
248
+ zeitwerk (2.6.15)
249
249
 
250
250
  PLATFORMS
251
251
  arm64-darwin-20
@@ -28,12 +28,6 @@ $(document).on(
28
28
 
29
29
  $(document).on("click", ".row-action-cell", function (e) {
30
30
  e.stopPropagation();
31
- if ($(this).hasClass("opacity-1")) {
32
- $(".row-action-cell").removeClass("opacity-1");
33
- } else {
34
- $(".row-action-cell").removeClass("opacity-1");
35
- $(this).addClass("opacity-1");
36
- }
37
31
  if ($(this).find(".table-export-popup").hasClass("hidden")) {
38
32
  return $(this).find(".table-export-popup").removeClass("hidden");
39
33
  } else {
@@ -16,15 +16,15 @@
16
16
  border-radius: $radius-4;
17
17
  z-index: 1;
18
18
  &.table-export-popup {
19
- top: 40px;
20
- right: 30px;
19
+ top: 36px;
20
+ right: 40px;
21
21
  width: 156px;
22
22
  padding: 8px 0;
23
23
  .popup-option {
24
24
  padding: 8px 16px;
25
25
  @include font($size: $t4-text, $color: $primary-text-clr);
26
26
  line-height: 22px;
27
- transition: all .2s linear;
27
+ transition: all 0.2s linear;
28
28
  cursor: pointer;
29
29
  &:hover {
30
30
  background-color: $grey-lighter-clr;
@@ -67,15 +67,21 @@
67
67
  }
68
68
  }
69
69
 
70
+ [data-field-type="action-cell-th"] {
71
+ min-width: 60px;
72
+ max-width: 60px;
73
+ }
74
+
70
75
  tbody {
71
76
  tr {
72
77
  border-bottom: 1px solid var(--bs-border-color);
73
78
  &:hover {
74
- .row-action-cell {
79
+ .row-action-tool {
75
80
  visibility: visible;
76
81
  }
77
82
  }
78
83
  }
84
+
79
85
  td {
80
86
  font-size: $t4-text;
81
87
  min-width: 120px;
@@ -101,10 +107,11 @@
101
107
  max-width: inherit;
102
108
  min-width: inherit;
103
109
  padding: 4px;
104
- background: $gradient-one;
105
- visibility: hidden;
106
110
  z-index: 3 !important;
111
+ background: transparent;
107
112
  .row-action-tool {
113
+ visibility: hidden;
114
+ position: relative;
108
115
  .popup-card {
109
116
  .popup-option {
110
117
  a {
@@ -39,6 +39,7 @@ module CmAdmin
39
39
  else
40
40
  format.html { render '/cm_admin/main/' + action_name }
41
41
  end
42
+ format.json { render json: @ar_object }
42
43
  end
43
44
  end
44
45
 
@@ -34,7 +34,7 @@
34
34
  - @model.available_fields[:index].each do |column|
35
35
  - if column.display_if.call(Current.user) && column.viewable
36
36
  th data-field-type="#{column.field_type}" = column.header
37
- th
37
+ th data-field-type='action-cell-th'
38
38
  tbody
39
39
  - @ar_object.data.each do |ar_object|
40
40
  tr.body-row
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '1.5.8'
2
+ VERSION = '1.5.9'
3
3
  end
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.8
4
+ version: 1.5.9
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-05-30 00:00:00.000000000 Z
13
+ date: 2024-06-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: caxlsx_rails
@@ -498,7 +498,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
498
  - !ruby/object:Gem::Version
499
499
  version: '0'
500
500
  requirements: []
501
- rubygems_version: 3.3.7
501
+ rubygems_version: 3.2.3
502
502
  signing_key:
503
503
  specification_version: 4
504
504
  summary: CmAdmin is a robust gem designed to assist in creating admin panels for Rails