Skip to content

Commit

Permalink
OA-17069: [GEM] Update libphonenumber to v18.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
arthutox committed Jul 11, 2023
1 parent 419ab95 commit c6adb27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions app/assets/javascripts/intl-tel-input.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* International Telephone Input v18.1.7
* International Telephone Input v18.1.8
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
Expand Down Expand Up @@ -231,6 +231,8 @@
this.options.dropdownContainer = document.body;
}
}
// check if input has one parent with RTL
this.isRTL = !!this.telInput.closest("[dir=rtl]");
// these promises get resolved when their individual requests complete
// this way the dev can do something like iti.promise.then(...) to know when all requests are
// complete
Expand Down Expand Up @@ -1096,7 +1098,11 @@
// offsetWidth is zero if input is in a hidden container during initialisation
var selectedFlagWidth = this.selectedFlag.offsetWidth || this._getHiddenSelectedFlagWidth();
// add 6px of padding after the grey selected-dial-code box, as this is what we use in the css
this.telInput.style.paddingLeft = "".concat(selectedFlagWidth + 6, "px");
if (this.isRTL) {
this.telInput.style.paddingRight = "".concat(selectedFlagWidth + 6, "px");
} else {
this.telInput.style.paddingLeft = "".concat(selectedFlagWidth + 6, "px");
}
}
// and the input's placeholder
this._updatePlaceholder();
Expand Down Expand Up @@ -1531,7 +1537,7 @@
// default options
intlTelInputGlobals.defaults = defaults;
// version
intlTelInputGlobals.version = "18.1.7";
intlTelInputGlobals.version = "18.1.8";
var pluginName = "intlTelInput";
// A really lightweight plugin wrapper around the constructor,
// preventing against multiple instantiations
Expand Down
2 changes: 1 addition & 1 deletion intl-tel-input.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Gem::Specification.new do |s|
s.summary = "intl-tel-input packaged for the Rails asset pipeline"
s.description = "intl-tel-input's JavaScript, CSS, and image files packaged for the Rails asset pipeline"
s.homepage = 'https://github.com/jonathantribouharet/intl-tel-input-rails'
s.version = '18.1.6'
s.version = '18.1.7'
s.files = `git ls-files`.split("\n") - %w(Gemfile Rakefile intl-tel-input.gemspec)
s.require_paths = ['lib']
s.authors = "Jonathan Tribouharet"
Expand Down

0 comments on commit c6adb27

Please sign in to comment.