active_scaffold 4.0.3 → 4.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c08117896f07d156bf39c05d52f76211e1294354e710d62eb7d43d8ff191515
|
4
|
+
data.tar.gz: 988856fbbbb7f4f4e052d33784646e0c371a4df89ab422205ae570879e5163fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce177560652338e80e6135c6bc878a13800568115281e61f5a9d378cd1dd5542529e30230c8586c6a7e0d096be8ddb91e85f916d8d7e1b12643180f66a84cd66
|
7
|
+
data.tar.gz: 3abe0164c95eefaded8c9c9c715cb84d98762477a57a78084a7129817cc9d0740c86addacabe900ac810723e9058d8b9198ba8697d4a855a6de763254268a988
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
= 4.0.5
|
2
|
+
- Fix if ActiveScaffold::Actions::Nested::ChildMethods is included manually after AS config block
|
3
|
+
|
4
|
+
= 4.0.4.2
|
5
|
+
- Support show key in helpers for search date/datetime, to change default condition to render it hidden
|
6
|
+
|
1
7
|
= 4.0.3
|
2
8
|
- Fix for jQuery 3
|
3
9
|
- Fix position popup for collection action links
|
@@ -304,12 +304,6 @@
|
|
304
304
|
return true;
|
305
305
|
});
|
306
306
|
|
307
|
-
jQuery(document).on('change', 'select.as_update_date_operator', function(event) {
|
308
|
-
ActiveScaffold[jQuery(this).val() == 'REPLACE' ? 'show' : 'hide'](jQuery(this).next());
|
309
|
-
ActiveScaffold[jQuery(this).val() == 'REPLACE' ? 'hide' : 'show'](jQuery(this).next().next());
|
310
|
-
return true;
|
311
|
-
});
|
312
|
-
|
313
307
|
jQuery(document).on('click', '.active-scaffold .sub-form a.destroy', function(event) {
|
314
308
|
event.preventDefault();
|
315
309
|
ActiveScaffold.delete_subform_record($(this).data('delete-id'));
|
@@ -129,7 +129,7 @@ module ActiveScaffold::Actions::Nested
|
|
129
129
|
module ChildMethods
|
130
130
|
def self.included(base)
|
131
131
|
super
|
132
|
-
include_habtm_actions base.active_scaffold_config
|
132
|
+
include_habtm_actions base.active_scaffold_config unless base.active_scaffold_config.frozen?
|
133
133
|
end
|
134
134
|
|
135
135
|
def self.include_habtm_actions(config)
|
@@ -323,9 +323,10 @@ module ActiveScaffold
|
|
323
323
|
safe_join([' - ', send(helper, column, options, current_search, 'to', ui_options: ui_options)])
|
324
324
|
end
|
325
325
|
]
|
326
|
+
show = current_search.key?(:show) ? current_search[:show] : ActiveScaffold::Finder::NUMERIC_COMPARATORS.include?(current_search['opt'])
|
326
327
|
content_tag('span', safe_join(numeric_controls),
|
327
328
|
id: "#{options[:id]}_numeric", class: 'search-date-numeric',
|
328
|
-
style:
|
329
|
+
style: ('display: none' unless show))
|
329
330
|
end
|
330
331
|
|
331
332
|
def active_scaffold_search_datetime_trend_tag(column, options, current_search)
|
@@ -335,9 +336,10 @@ module ActiveScaffold
|
|
335
336
|
options_for_select(active_scaffold_search_datetime_trend_units(column), current_search['unit']),
|
336
337
|
class: 'text-input')
|
337
338
|
]
|
339
|
+
show = current_search.key?(:show) ? current_search[:show] : current_search['opt'] == 'PAST' || current_search['opt'] == 'FUTURE'
|
338
340
|
content_tag('span', safe_join(trend_controls, ' '),
|
339
341
|
id: "#{options[:id]}_trend", class: 'search-date-trend',
|
340
|
-
style: ('display: none' unless
|
342
|
+
style: ('display: none' unless show))
|
341
343
|
end
|
342
344
|
|
343
345
|
def active_scaffold_search_datetime_trend_units(column)
|
@@ -351,9 +353,10 @@ module ActiveScaffold
|
|
351
353
|
range_controls = select_tag("#{options[:name]}[range]",
|
352
354
|
options_for_select(values, current_search['range']),
|
353
355
|
class: 'text-input', id: nil)
|
356
|
+
show = current_search.key?(:show) ? current_search[:show] : current_search['opt'] == 'RANGE'
|
354
357
|
content_tag('span', range_controls,
|
355
358
|
id: "#{options[:id]}_range", class: 'search-date-range',
|
356
|
-
style: ('display: none' unless
|
359
|
+
style: ('display: none' unless show))
|
357
360
|
end
|
358
361
|
|
359
362
|
def column_datetime?(column)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Many, see README
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|