bullet_train-fields 1.0.8 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/fields.esm.js +2 -0
- data/app/assets/javascripts/fields.esm.js.map +1 -0
- data/app/assets/javascripts/fields.js +2 -0
- data/app/assets/javascripts/fields.js.map +1 -0
- data/app/assets/javascripts/fields.modern.js +2 -0
- data/app/assets/javascripts/fields.modern.js.map +1 -0
- data/app/assets/javascripts/fields.umd.js +2 -0
- data/app/assets/javascripts/fields.umd.js.map +1 -0
- data/app/assets/javascripts/intl-tel-input-utils.js +502 -0
- data/app/javascript/controllers/fields/password_controller.js +2 -2
- data/lib/bullet_train/fields/version.rb +1 -1
- metadata +11 -2
@@ -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");
|
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.
|
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-
|
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
|