polaris_view_components 2.2.2 → 2.2.4

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: 0fd2fd11147a8e4f4c0c39f8e567b484dfdac837660640c9697a3d300ffed822
4
+ data.tar.gz: 6f11dfdf4faac0d1c0b569491158fdc70d1adc8e5511f85f1d34affc8faa4a25
5
5
  SHA512:
6
- metadata.gz: 2c2bae435fce1e3e1d9ee88c2fedd06cbf02b2db2f913f87e5cd39c47e07974aec009e17461049d53f137c63df92f2927b37bfceb8adac9ac8b52393ba379aa0
7
- data.tar.gz: f57b0604f88283b4661f011dc76ab856ba7b498a7f784f93472f687f3bde14b3d07b94b38ea666f4298d0b286aa32d890a25d4ce4e2ee2378271b81709281fa6
6
+ metadata.gz: 0c2ed4c3876d591180a38a3fc7c8f37d5b1cb5c64d285ddcec8aeb49bd605e393e97ace40bd837318dd3f475bc0c2494ec21059614f7a956b91a965c46154304
7
+ data.tar.gz: 4bb24a5bad104edf4b32b646d95152e4661684ad5a7fad33f28aaf2328eceb89f00354c4f740fe303bdb743a72cff9e7fbab941be5f7113e5fa7286ec1dd7016
@@ -293,3 +293,10 @@ html[class~="Polaris-Summer-Editions-2023"] {
293
293
  width: 100%;
294
294
  }
295
295
  }
296
+
297
+ /* Select */
298
+
299
+ /* Fix for Safari bug: https://github.com/baoagency/polaris_view_components/issues/454 */
300
+ select.Polaris-Select__Input {
301
+ font-weight: 400;
302
+ }
@@ -535,7 +535,9 @@
535
535
  white-space: nowrap !important;
536
536
  }/* Frame - TopBar */.Polaris-Frame__TopBar .Polaris-TopBar-SearchField > div {
537
537
  width: 100%;
538
- }html[class~="Polaris-Summer-Editions-2023"] .Polaris-DataTable .Polaris-DataTable__Cell:not(.Polaris-DataTable__Cell--flush):first-child,
538
+ }/* Select *//* Fix for Safari bug: https://github.com/baoagency/polaris_view_components/issues/454 */select.Polaris-Select__Input {
539
+ font-weight: 400;
540
+ }html[class~="Polaris-Summer-Editions-2023"] .Polaris-DataTable .Polaris-DataTable__Cell:not(.Polaris-DataTable__Cell--flush):first-child,
539
541
  html[class~="Polaris-Summer-Editions-2023"] .Polaris-DataTable .Polaris-DataTable__Heading:not(.Polaris-DataTable__Heading--flush):first-child {
540
542
  padding-left: var(--p-space-400);
541
543
  }html[class~="Polaris-Summer-Editions-2023"] .Polaris-DataTable .Polaris-DataTable__Cell:not(.Polaris-DataTable__Cell--flush):last-child,
@@ -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.4"
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.4
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-23 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
  - - ">="