bullet_train-fields 1.0.8 → 1.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.
@@ -7,8 +7,8 @@ export default class extends Controller {
7
7
  estimateStrength(e) {
8
8
  const result = zxcvbn(e.target.value);
9
9
 
10
- if (result.feedback) {
11
- this.strengthIndicatorTarget.innerText = result.feedback.warning;
10
+ if (result.feedback && result.feedback.length > 0) {
11
+ this.strengthIndicatorTarget.innerText = `${result.feedback.warning}.`;
12
12
  this.strengthIndicatorTarget.classList.remove("hidden");
13
13
  } else {
14
14
  this.strengthIndicatorTarget.classList.add("hidden");
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Fields
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -77,6 +77,15 @@ files:
77
77
  - README.md
78
78
  - Rakefile
79
79
  - app/assets/config/bullet_train_fields_manifest.js
80
+ - app/assets/javascripts/fields.esm.js
81
+ - app/assets/javascripts/fields.esm.js.map
82
+ - app/assets/javascripts/fields.js
83
+ - app/assets/javascripts/fields.js.map
84
+ - app/assets/javascripts/fields.modern.js
85
+ - app/assets/javascripts/fields.modern.js.map
86
+ - app/assets/javascripts/fields.umd.js
87
+ - app/assets/javascripts/fields.umd.js.map
88
+ - app/assets/javascripts/intl-tel-input-utils.js
80
89
  - app/controllers/account/cloudinary/upload_signatures_controller.rb
81
90
  - app/controllers/concerns/fields/boolean_support.rb
82
91
  - app/controllers/concerns/fields/controller_support.rb