nice-elements 1.7.4 → 1.7.6
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 +8 -0
- package/README.md +2 -2
- package/bower.json +1 -1
- package/dist/nice.js +6 -3
- package/dist/nice.min.js +1 -1
- package/package.json +1 -1
- package/src/components/nice-dropdown/nice-dropdown.js +5 -1
- package/src/components/nice-icon/nice-icon.js +0 -1
- package/src/components/nice-title/nice-title.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-

|
|
1
|
+

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.7.
|
|
3
|
+
# Nice elements v1.7.6
|
|
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
|
@@ -2354,7 +2354,6 @@ angular.module('niceElements')
|
|
|
2354
2354
|
$scope.noMargin = $scope.noMargin === 'true' || $scope.noMargin === true;
|
|
2355
2355
|
$scope.multiple = $scope.multiple === 'true' || $scope.multiple === true;
|
|
2356
2356
|
$scope.clearOnSelect = $scope.clearOnSelect === 'true' || $scope.clearOnSelect === true;
|
|
2357
|
-
$scope.valid = $scope.formDropdown;
|
|
2358
2357
|
$scope.isOpen = false;
|
|
2359
2358
|
$scope.selected = null;
|
|
2360
2359
|
$scope.selectedIndex = 0;
|
|
@@ -2624,6 +2623,11 @@ angular.module('niceElements')
|
|
|
2624
2623
|
}
|
|
2625
2624
|
}
|
|
2626
2625
|
});
|
|
2626
|
+
|
|
2627
|
+
// Handle required
|
|
2628
|
+
$timeout(function () {
|
|
2629
|
+
$scope.formDropdown.$setValidity('required', !(!$scope.selected && $scope.required));
|
|
2630
|
+
});
|
|
2627
2631
|
}
|
|
2628
2632
|
|
|
2629
2633
|
// ----------------------------------- Watch for keydown and keypress -----------------------------------
|
|
@@ -3582,7 +3586,6 @@ angular.module('niceElements')
|
|
|
3582
3586
|
return {
|
|
3583
3587
|
templateUrl: 'src/components/nice-icon/nice-icon.html',
|
|
3584
3588
|
restrict: 'E',
|
|
3585
|
-
replace: true,
|
|
3586
3589
|
scope: {
|
|
3587
3590
|
icon: '@'
|
|
3588
3591
|
},
|
|
@@ -5059,7 +5062,7 @@ angular.module('niceElements')
|
|
|
5059
5062
|
.directive('niceTitle', function () {
|
|
5060
5063
|
return {
|
|
5061
5064
|
templateUrl: 'src/components/nice-title/nice-title.html',
|
|
5062
|
-
|
|
5065
|
+
restrict: 'E',
|
|
5063
5066
|
scope: {
|
|
5064
5067
|
labelWidth: '=?',
|
|
5065
5068
|
title: '=?',
|