polaris_view_components 2.2.2 → 2.2.3

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: 10a87c4fe4cbbfe6e134c8d7ccc9ba0747713b633399a47f7677f830941c4b9b
4
- data.tar.gz: 6782c0c52aa3df512a0a55efbf563321a0cb753ee987bd6b18089663574c5633
3
+ metadata.gz: bfcd865ea7f96c18d71b124a475636fb29687710604cb19f13a33c79b3f1a0b5
4
+ data.tar.gz: 6fcc6cec21ba32a429c27a3329e08ec606b5022b2b7f87880277b8ad18880260
5
5
  SHA512:
6
- metadata.gz: 2c2bae435fce1e3e1d9ee88c2fedd06cbf02b2db2f913f87e5cd39c47e07974aec009e17461049d53f137c63df92f2927b37bfceb8adac9ac8b52393ba379aa0
7
- data.tar.gz: f57b0604f88283b4661f011dc76ab856ba7b498a7f784f93472f687f3bde14b3d07b94b38ea666f4298d0b286aa32d890a25d4ce4e2ee2378271b81709281fa6
6
+ metadata.gz: 9d50945aec4b984c2706e1725b1b59908e6829872d736fbc0712434dbceff186cf8ea6a9855921f3af45f49e8c286178c53b54e83f5288cb928d01835b584f21
7
+ data.tar.gz: b88e835ccc820407627a67a31ad0a78dd79d3e467549865d054ac7431f03e3ccdef5119de05f2ee3b67b451a6371d17d90d266853a525cc7027b14c1ee7d6907
@@ -4,6 +4,8 @@
4
4
  <%= text_field %>
5
5
  <% if @form.present? && @attribute.present? %>
6
6
  <%= @form.hidden_field @attribute, data: {polaris_autocomplete_target: "hiddenInput"} %>
7
+ <% elsif !@multiple %>
8
+ <%= hidden_field_tag @name, @selected, data: {polaris_autocomplete_target: "hiddenInput"} %>
7
9
  <% else %>
8
10
  <%= hidden_field_tag @name, nil, data: {polaris_autocomplete_target: "hiddenInput"} %>
9
11
  <% end %>
@@ -4,7 +4,7 @@ module Polaris
4
4
  form: nil,
5
5
  attribute: nil,
6
6
  name: nil,
7
- checked: false,
7
+ checked: nil,
8
8
  disabled: false,
9
9
  value: nil,
10
10
  **system_arguments
@@ -22,9 +22,17 @@ module Polaris
22
22
  @system_arguments.tap do |opts|
23
23
  opts[:disabled] = true if @disabled
24
24
  opts[:aria] ||= {}
25
- opts[:aria][:checked] = @checked
26
- opts[:checked] = @checked
27
25
  opts[:class] = opts.delete(:classes)
26
+
27
+ if @form.present? && @attribute.present?
28
+ unless @checked.nil?
29
+ opts[:aria][:checked] = !!@checked
30
+ opts[:checked] = !!@checked
31
+ end
32
+ else
33
+ opts[:aria][:checked] = !!@checked
34
+ opts[:checked] = !!@checked
35
+ end
28
36
  end
29
37
  end
30
38
 
@@ -8,7 +8,7 @@ module Polaris
8
8
  name: nil,
9
9
  label: nil,
10
10
  label_hidden: false,
11
- checked: false,
11
+ checked: nil,
12
12
  disabled: false,
13
13
  help_text: nil,
14
14
  value: nil,
data/config/deploy.yml CHANGED
@@ -1,37 +1,19 @@
1
+ <% require "dotenv"; Dotenv.load(".env") %>
2
+
1
3
  service: polaris_view_components
2
4
  image: kirillplatonov/polaris_view_components
3
-
5
+ servers:
6
+ - 195.201.128.126
7
+ proxy:
8
+ app_port: 3000
9
+ ssl: true
10
+ host: polarisviewcomponents.org
4
11
  registry:
5
12
  username: kirillplatonov
6
13
  password:
7
14
  - KAMAL_REGISTRY_PASSWORD
8
-
15
+ builder:
16
+ arch: amd64
9
17
  env:
10
18
  secret:
11
19
  - RAILS_MASTER_KEY
12
-
13
- servers:
14
- web:
15
- hosts:
16
- - 195.201.128.126
17
- labels:
18
- traefik.http.routers.polaris_view_components.entrypoints: websecure
19
- traefik.http.routers.polaris_view_components.rule: "Host(`polarisviewcomponents.org`) || Host(`www.polarisviewcomponents.org`)"
20
- traefik.http.routers.polaris_view_components.tls.certresolver: letsencrypt
21
-
22
- traefik:
23
- options:
24
- publish:
25
- - "443:443"
26
- volume:
27
- - "/letsencrypt/acme.json:/letsencrypt/acme.json"
28
- args:
29
- entryPoints.web.address: ":80"
30
- entryPoints.websecure.address: ":443"
31
- entryPoints.web.http.redirections.entryPoint.to: websecure # We want to force https
32
- entryPoints.web.http.redirections.entryPoint.scheme: https
33
- entryPoints.web.http.redirections.entrypoint.permanent: true
34
- certificatesResolvers.letsencrypt.acme.email: "admin@polarisviewcomponents.org"
35
- certificatesResolvers.letsencrypt.acme.storage: "/letsencrypt/acme.json" # Must match the path in `volume`
36
- certificatesResolvers.letsencrypt.acme.httpchallenge: true
37
- certificatesResolvers.letsencrypt.acme.httpchallenge.entrypoint: web
@@ -30,7 +30,7 @@ if IMPORTMAP_BINSTUB.exist?
30
30
 
31
31
  unless importmaps.include?("@rails/request.js")
32
32
  say "Pin @rails/request.js dependency"
33
- run "bin/importmap pin @rails/request.js --download"
33
+ run "bin/importmap pin @rails/request.js"
34
34
  end
35
35
 
36
36
  say "Pin polaris_view_components"
@@ -1,5 +1,5 @@
1
1
  module Polaris
2
2
  module ViewComponents
3
- VERSION = "2.2.2"
3
+ VERSION = "2.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polaris_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Gamble
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-08-26 00:00:00.000000000 Z
12
+ date: 2024-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -117,6 +117,20 @@ dependencies:
117
117
  version: '0'
118
118
  - !ruby/object:Gem::Dependency
119
119
  name: kamal
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.0.0
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.0.0
132
+ - !ruby/object:Gem::Dependency
133
+ name: dotenv
120
134
  requirement: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - ">="