activeadmin_addons 1.10.1 → 1.10.2

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: 4ce9aaa332970fcc70e6919da7ae647b9c04984d03962b381b7453c7e28db48d
4
- data.tar.gz: a4b590241dbd498457c52890d3a2626afed5b9d204a12aaafcd4dc586f06b245
3
+ metadata.gz: b6fc13e5fdaeb949d49a7ec0a3330885ef1ec2e0b6b35179ea696b016eb9d0c9
4
+ data.tar.gz: aeea860c39cd59ccb6a4c6c141a42a5b29d8bdc19e8679147175238ec2afa67e
5
5
  SHA512:
6
- metadata.gz: 9e1ddef237466638ce8e01315caa041c024ddf60c620076da537bf93f5b42e57a54bf51fd2d5ead8c8536dd28b64ea3e0f9c1a7855b600934671b413fbd51ce5
7
- data.tar.gz: e00a22b2e6ab958b5340cbf261e6e5a7d9c0373de5265b91eb6298f700c68692f6b274198702580a0820d576b36a956de8a0ee556c274b5f8c08ab7a80a0bf4c
6
+ metadata.gz: 2e336a0da29c1f1a2717a7a577d7c22c81afd02510e166a33d0dbaca003be506ce38d1d793916adfb4b1c56ba4d8353ca805e65fb32468fe2443f8fd789ee3da
7
+ data.tar.gz: 29314fd56a40f6f5353dbf90072128f580c0aa99a2d44519355c51a89d82aa216adfba999d583f3496d49ab8a6727f00e7fc680f5cec56c4992cdda24505a461
@@ -533,7 +533,11 @@
533
533
  m: "or"
534
534
  };
535
535
  fields.forEach(function(field) {
536
- textQuery[field + "_" + predicate] = params.term;
536
+ if (field === "id") {
537
+ textQuery[field + "_eq"] = params.term;
538
+ } else {
539
+ textQuery[field + "_" + predicate] = params.term;
540
+ }
537
541
  });
538
542
  var query = {
539
543
  order: order,
@@ -26,7 +26,6 @@ class SelectedListInput < ActiveAdminAddons::InputBase
26
26
 
27
27
  def render_control_wrapper
28
28
  template.content_tag(:div, class: "selected-list-container") do
29
- template.content_tag(label_html)
30
29
  template.concat(render_items_list)
31
30
  template.concat(builder.select(build_virtual_attr, [], {}, input_html_options))
32
31
  end
@@ -37,7 +37,11 @@ var initializer = function() {
37
37
  data: function(params) {
38
38
  var textQuery = { m: 'or' };
39
39
  fields.forEach(function(field) {
40
- textQuery[field + '_' + predicate] = params.term;
40
+ if (field === 'id') {
41
+ textQuery[field + '_eq'] = params.term;
42
+ } else {
43
+ textQuery[field + '_' + predicate] = params.term;
44
+ }
41
45
  });
42
46
 
43
47
  var query = {
@@ -1,3 +1,3 @@
1
1
  module ActiveadminAddons
2
- VERSION = "1.10.1"
2
+ VERSION = "1.10.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -11,22 +11,22 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-08-24 00:00:00.000000000 Z
14
+ date: 2024-12-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: active_material
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ">="
20
+ - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: '0'
22
+ version: '1.5'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: '1.5'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: railties
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -624,7 +624,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
624
624
  - !ruby/object:Gem::Version
625
625
  version: '0'
626
626
  requirements: []
627
- rubygems_version: 3.4.10
627
+ rubygems_version: 3.5.22
628
628
  signing_key:
629
629
  specification_version: 4
630
630
  summary: Set of addons to help with the activeadmin ui