nice-elements 1.12.0 → 1.12.1
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 +5 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +4 -2
- package/dist/nice.min.js +1 -1
- package/dist/style.css +4 -0
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +1 -1
- package/package.json +1 -1
- package/src/components/nice-alert/nice-alert.html +1 -1
- package/src/components/nice-alert/nice-alert.js +2 -1
- package/src/components/nice-alert/nice-alert.scss +4 -0
- package/src/components/nice-toggle/nice-toggle.js +1 -0
- 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.12.
|
|
3
|
+
# Nice elements v1.12.1
|
|
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
|
@@ -20,7 +20,8 @@ angular.module('niceElements')
|
|
|
20
20
|
type: '@?',
|
|
21
21
|
niceTitle: '@?',
|
|
22
22
|
message: '@?',
|
|
23
|
-
fitContent: '=?'
|
|
23
|
+
fitContent: '=?',
|
|
24
|
+
iconCenter: '@?'
|
|
24
25
|
},
|
|
25
26
|
controller: function ($scope) {
|
|
26
27
|
if (!$scope.type) $scope.type = "error";
|
|
@@ -5647,6 +5648,7 @@ angular.module('niceElements')
|
|
|
5647
5648
|
if (!$scope.title) { $scope.title = ''; }
|
|
5648
5649
|
if (!$scope.fieldWidth) { $scope.fieldWidth = 'col-sm-8'; }
|
|
5649
5650
|
if (!$scope.labelWidth) { $scope.labelWidth = 'col-sm-4'; }
|
|
5651
|
+
if (!angular.isDefined($scope.model)) $scope.model = false;
|
|
5650
5652
|
|
|
5651
5653
|
// ------------------------- Switch -------------------------
|
|
5652
5654
|
$scope.toggle = function () {
|
|
@@ -6304,7 +6306,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6304
6306
|
'use strict';
|
|
6305
6307
|
|
|
6306
6308
|
$templateCache.put('src/components/nice-alert/nice-alert.html',
|
|
6307
|
-
"<div class=\"nice-alert\" ng-class=\"['nice-alert-' + type, { 'nice-alert-fit': fitContent }]\">\n" +
|
|
6309
|
+
"<div class=\"nice-alert\" ng-class=\"['nice-alert-' + type, { 'nice-alert-fit': fitContent, 'nice-icon-center': iconCenter }]\">\n" +
|
|
6308
6310
|
"<nice-icon class=\"nice-alert-icon\" icon=\"{{ icon }}\" ng-if=\"icon\"></nice-icon>\n" +
|
|
6309
6311
|
"<div class=\"nice-alert-body\">\n" +
|
|
6310
6312
|
"<div class=\"nice-alert-title\" ng-if=\"niceTitle\">{{ niceTitle }}</div>\n" +
|