nice-elements 1.13.4 → 1.13.5
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.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +8 -3
- package/dist/nice.min.js +1 -1
- package/package.json +1 -1
- package/src/components/nice-input/nice-input.html +44 -4
- package/src/components/nice-input/nice-input.js +5 -1
- package/src/services/nice-service.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.13.
|
|
3
|
+
# Nice elements v1.13.5
|
|
4
4
|
|
|
5
5
|
Nice elements is an AngularJS v1.5.8 module that contains nice form elements like inputs, choice fields, search, toggle, dropdown, etc.
|
|
6
6
|
|
package/bower.json
CHANGED
package/dist/nice.js
CHANGED
|
@@ -4035,7 +4035,8 @@ angular.module('niceElements')
|
|
|
4035
4035
|
multilanguage: '=?', // Multiple languages object
|
|
4036
4036
|
multilanguageField: '@?', // Multiple languages field name
|
|
4037
4037
|
multilanguageDisabled: '=', // Multiple languages field disabled
|
|
4038
|
-
autocomplete: "@?"
|
|
4038
|
+
autocomplete: "@?",
|
|
4039
|
+
disableTrim: "@?"
|
|
4039
4040
|
},
|
|
4040
4041
|
controller: function ($scope, $attrs, $rootScope, $element, ngDialog) {
|
|
4041
4042
|
if (!$attrs.type) { $attrs.type = 'text'; }
|
|
@@ -4050,6 +4051,7 @@ angular.module('niceElements')
|
|
|
4050
4051
|
if (!$attrs.symbol) { $attrs.symbol = ''; }
|
|
4051
4052
|
if (!$attrs.help) { $attrs.help = ''; }
|
|
4052
4053
|
if (!$attrs.name) { $attrs.name = ''; }
|
|
4054
|
+
if (!$attrs.disableTrim) { $attrs.disableTrim = false; }
|
|
4053
4055
|
if (!$attrs.minDecimalsCutZeros) { $attrs.minDecimalsCutZeros = 0; }
|
|
4054
4056
|
$attrs.hideValid = $attrs.hideValid === 'true' || $attrs.hideValid === true;
|
|
4055
4057
|
$attrs.showValid = $attrs.showValid === 'true' || $attrs.showValid === true;
|
|
@@ -4096,6 +4098,8 @@ angular.module('niceElements')
|
|
|
4096
4098
|
$scope.inputMode = "email";
|
|
4097
4099
|
// TODO: get rid of the errors
|
|
4098
4100
|
$scope.regexexp = new RegExp('^[_a-zA-Z0-9]+(.[_a-zA-Z0-9]+)*@[a-zA-Z0-9]+(.[a-zA-Z0-9]+)+(.[a-zA-Z]{2,4})');
|
|
4101
|
+
} else {
|
|
4102
|
+
$scope.internalType = "text";
|
|
4099
4103
|
}
|
|
4100
4104
|
|
|
4101
4105
|
if (angular.isDefined($scope.valid)) {
|
|
@@ -6675,7 +6679,7 @@ angular.module('niceElements')
|
|
|
6675
6679
|
.service('NiceService', function ($rootScope) {
|
|
6676
6680
|
const service = {
|
|
6677
6681
|
name: "Nice elements",
|
|
6678
|
-
version: "1.13.
|
|
6682
|
+
version: "1.13.5",
|
|
6679
6683
|
getHeader: function () {
|
|
6680
6684
|
return {};
|
|
6681
6685
|
},
|
|
@@ -7561,7 +7565,8 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7561
7565
|
" 'nice-disabled': isDisabled\n" +
|
|
7562
7566
|
" }\">\n" +
|
|
7563
7567
|
" <textarea ng-if=\"textArea\" class=\"form-control\" ng-model=\"$parent.internalModel\" id=\"{{ id }}\" tabindex=\"{{ tabIndex }}\" placeholder=\"{{ placeholder }}\" rows=\"{{ textAreaLines }}\" max=\"{{ max }}\" min=\"{{ min }}\" autocomplete=\"{{ autocomplete }}\" ng-minlength=\"minlength\" ng-maxlength=\"maxlength\" ng-required=\"required\" ng-pattern=\"regexexp\" ng-disabled=\"isDisabled\"></textarea>\n" +
|
|
7564
|
-
"
|
|
7568
|
+
"\n" +
|
|
7569
|
+
" <input ng-if=\"!textArea\" class=\"form-control\" type=\"{{ internalType }}\" inputmode=\"{{ inputMode }}\" ng-model=\"$parent.internalModel\" name=\"{{ name }}\" id=\"{{ id }}\" tabindex=\"{{ tabIndex }}\" placeholder=\"{{ placeholder }}\" max=\"{{ max }}\" min=\"{{ min }}\" autocomplete=\"{{ autocomplete }}\" ng-minlength=\"minlength\" ng-maxlength=\"maxlength\" ng-required=\"required\" ng-keypress=\"keypress($event)\" ng-pattern=\"regexexp\" ng-disabled=\"isDisabled\" ng-trim=\"{{ !disableTrim }}\">\n" +
|
|
7565
7570
|
"\n" +
|
|
7566
7571
|
" <div class=\"input-group-addon\" ng-if=\"symbol\">{{ symbol }}</div>\n" +
|
|
7567
7572
|
" <button type=\"button\" class=\"input-group-btn\" ng-if=\"!multilanguageDisabled && multilanguageField\" ng-click=\"openMultilanguage()\">\n" +
|