cm-admin 1.3.8 → 1.3.9

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: daef9070df3c1b70c91fb2c0457c5564eb6de2c182156e6d73f5366a090f0787
4
- data.tar.gz: 803d75ad103de15770a1f9d7d97db77948ca0bc34260e139378a0484f502282b
3
+ metadata.gz: 562260419c63a8ecbe47434934436fcbcfcc0bba45d5fdb1ec79b409dab1eae8
4
+ data.tar.gz: 44254130972962094d599673a89bbc4b1961ef4ef8eedc1087c5313f18c7b683
5
5
  SHA512:
6
- metadata.gz: dfce493cbe0f87ed3290ab08799b3d286445fd260fe0faaa4e65383d09a3627e1d4df4627570847e3a6a03236ed3b7511fb1f47dee75b16c7c4a446ead34cfcd
7
- data.tar.gz: 6d991b7f5ce9596ec6cdbfb91b49f62b66d638201fe8ba3a931d89e99495ec514fa251e67411aa9315ebc372d0bb0233590fc7522ca363846a3ccb1cf6b14e26
6
+ metadata.gz: 763022ed87852040e0dfe161df4d9044ce802f8b3555bac98eafd765dde5d6f396eb5f3c4c46ede87cffae6e5b6ba09ac6f9f60001690091f803d9f1b292568c
7
+ data.tar.gz: b1495b2af0cffaf34e0aedba3a7ead53c13e8ab7ad9dc883d403ec6594e4301cca7c208193daa80ea48fd95f8657045fb31af88de4d87234c2f9bd22fa1b69de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (1.3.8)
4
+ cm-admin (1.3.9)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -115,7 +115,7 @@
115
115
  padding: 4px;
116
116
  background: $gradient-one;
117
117
  visibility: hidden;
118
- z-index: 3;
118
+ z-index: 3 !important;
119
119
  .row-action-tool {
120
120
  .popup-card {
121
121
  .popup-option {
@@ -2,7 +2,7 @@
2
2
  - destroy_action = available_actions(cm_model, ar_object, 'destroy')
3
3
  - custom_actions = available_actions(cm_model, ar_object, 'custom_actions')
4
4
  - current_model = @associated_model || @model
5
- - if custom_actions.any? || edit_action.present? || destroy_action.present?
5
+ - if custom_actions.map { |custom_action| custom_action.display_if.call(ar_object) }.any? || edit_action.present? || destroy_action.present?
6
6
  td.row-action-cell
7
7
  .row-action-tool
8
8
  button.btn-ghost.dropdown-toggle
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '1.3.8'
2
+ VERSION = '1.3.9'
3
3
  end
@@ -91,6 +91,7 @@ module CmAdmin
91
91
  form_obj.text_field cm_field.field_name,
92
92
  class: "field-control #{required_class}",
93
93
  disabled: cm_field.disabled.call(form_obj.object),
94
+ value: value&.strftime('%d-%m-%Y'),
94
95
  placeholder: cm_field.placeholder,
95
96
  data: { behaviour: 'date-only' }
96
97
  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.3.8
4
+ version: 1.3.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: 2023-11-17 00:00:00.000000000 Z
13
+ date: 2023-12-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails