cm-admin 3.0.11 → 3.0.13
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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/cm_admin/form_validation.js +2 -1
- data/app/assets/javascripts/cm_admin/shared_scaffolds.js +3 -4
- data/app/assets/stylesheets/cm_admin/base/form.scss +6 -3
- data/lib/cm_admin/version.rb +1 -1
- data/lib/cm_admin/view_helpers/form_helper.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b67f05a0ab6f311c51a18ff643b6de46aa3d9cf27582ee0edffc494f67db9d08
|
4
|
+
data.tar.gz: 05f13ddf138f740c0ccf1a822d0c135a25f2c73c281a7e5e62809c9dbc05a84c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 497a5ddaed220d3c4067dd446f9e4280d8501cad4a3db1ee69eacb55400ececbe4d7487c70a1d98de8878316aa13e54f5fd2b5f69c973cdec15041213e39eaa6
|
7
|
+
data.tar.gz: e3878f99744771632245b8fbbd91b46d08952f6e6887665410011422d9ce0669bb7e50374f1e34e442b5c22e126f7f5871c12cbcb88e07894cccd8c95115acc6
|
data/Gemfile.lock
CHANGED
@@ -47,8 +47,9 @@ $(document).on("click", '[data-behaviour="form_submit"]', function (e) {
|
|
47
47
|
});
|
48
48
|
if (submit.length === 0) {
|
49
49
|
$("." + form_class).submit();
|
50
|
+
if ($('.' + form_class).attr('data-is-drawer-form') === "true") return;
|
50
51
|
$('[data-behaviour="form_submit_spinner"]').removeClass("visually-hidden");
|
51
|
-
|
52
|
+
return $('[data-behaviour="form_submit"]').addClass("visually-hidden");
|
52
53
|
}
|
53
54
|
});
|
54
55
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// This file is shared between rails 6 and 7 version
|
2
|
-
|
2
|
+
import LocalTime from "./local-time";
|
3
3
|
$(document).on(
|
4
4
|
"keypress keyup blur",
|
5
5
|
"[data-behaviour='decimal-only'], [data-behaviour='filter'][data-filter-type='range']",
|
@@ -245,6 +245,5 @@ export function initializeComponents() {
|
|
245
245
|
var headerElemHeight = $(".page-top-bar").height() + 64;
|
246
246
|
var calculatedHeight = "calc(100vh - " + headerElemHeight + "px" + ")";
|
247
247
|
$(".table-wrapper").css("maxHeight", calculatedHeight);
|
248
|
-
|
249
|
-
|
250
|
-
}
|
248
|
+
LocalTime.start();
|
249
|
+
}
|
@@ -141,9 +141,12 @@
|
|
141
141
|
margin-left: 16px;
|
142
142
|
}
|
143
143
|
|
144
|
+
.dropdown-toggle {
|
145
|
+
align-items: center;
|
146
|
+
}
|
147
|
+
|
144
148
|
// Bulk Actions Dropdown
|
145
149
|
.bulk-action-item {
|
146
|
-
|
147
150
|
form {
|
148
151
|
width: 100%;
|
149
152
|
}
|
@@ -163,7 +166,6 @@
|
|
163
166
|
@extend .d-flex, .align-items-center, .gap-2;
|
164
167
|
|
165
168
|
&:hover {
|
166
|
-
color: inherit;
|
167
169
|
text-decoration: none;
|
168
170
|
}
|
169
171
|
}
|
@@ -171,5 +173,6 @@
|
|
171
173
|
a {
|
172
174
|
display: flex;
|
173
175
|
gap: 8px;
|
176
|
+
align-items: center;
|
174
177
|
}
|
175
|
-
}
|
178
|
+
}
|
data/lib/cm_admin/version.rb
CHANGED
@@ -188,10 +188,10 @@ module CmAdmin
|
|
188
188
|
|
189
189
|
concat split_form_into_section(resource, form_obj, entities)
|
190
190
|
concat(content_tag(:div, class: 'form-submit-button-container') do
|
191
|
-
concat form_obj.submit 'Save', class: 'btn-cta', data: { behaviour: 'form_submit', form_class: "cm_#{form_obj.object.class.name.downcase}_form"
|
191
|
+
concat form_obj.submit 'Save', class: 'btn-cta', data: { behaviour: 'form_submit', form_class: "cm_#{form_obj.object.class.name.downcase}_form"}
|
192
192
|
concat(button_tag(type: 'button', class: 'btn-loading visually-hidden', data: { behaviour: 'form_submit_spinner' }) do
|
193
193
|
concat content_tag(:span, '', class: 'spinner-border spinner-border-sm', role: 'status')
|
194
|
-
concat ' Submitting...'
|
194
|
+
concat ' Submitting...' unless @is_drawer_form
|
195
195
|
end)
|
196
196
|
concat button_tag 'Discard', class: 'btn-secondary discard-form', data: { behaviour: 'discard_form' } unless @is_drawer_form
|
197
197
|
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: 3.0.
|
4
|
+
version: 3.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: exe
|
16
16
|
cert_chain: []
|
17
|
-
date: 2024-
|
17
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: caxlsx_rails
|
@@ -523,7 +523,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
523
523
|
- !ruby/object:Gem::Version
|
524
524
|
version: '0'
|
525
525
|
requirements: []
|
526
|
-
rubygems_version: 3.5.
|
526
|
+
rubygems_version: 3.5.22
|
527
527
|
signing_key:
|
528
528
|
specification_version: 4
|
529
529
|
summary: CmAdmin is a robust gem designed to assist in creating admin panels for Rails
|