nice-elements 1.10.2 → 1.10.3
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 +6 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +7 -7
- package/dist/nice.min.js +1 -1
- package/dist/style.css +107 -2
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +1 -1
- package/package.json +1 -1
- package/src/components/nice-button/nice-button.html +1 -1
- package/src/components/nice-button/nice-button.js +2 -2
- package/src/services/nice-service.js +1 -1
- package/src/styles/_nice-buttons.scss +211 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.10.
|
|
3
|
+
# Nice elements v1.10.3
|
|
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
|
@@ -46,11 +46,11 @@ angular.module('niceElements')
|
|
|
46
46
|
niceClick: '&',
|
|
47
47
|
niceDisabled: '=',
|
|
48
48
|
addClass: '@',
|
|
49
|
-
|
|
49
|
+
niceType: '@?'
|
|
50
50
|
},
|
|
51
51
|
controller: function ($q, $scope, $transclude) {
|
|
52
52
|
if ($scope.addClass != undefined) console.warn("[NICE ELEMENTS] Nice button: add-class attribute is deprecated")
|
|
53
|
-
if (!$scope.
|
|
53
|
+
if (!$scope.niceType) $scope.niceType = "button";
|
|
54
54
|
$scope.showSlot = $transclude().length > 0;
|
|
55
55
|
$scope.loading = false;
|
|
56
56
|
|
|
@@ -5903,7 +5903,7 @@ angular.module('niceElements')
|
|
|
5903
5903
|
.service('NiceService', function () {
|
|
5904
5904
|
var service = {
|
|
5905
5905
|
name: "Nice elements",
|
|
5906
|
-
version: "1.10.
|
|
5906
|
+
version: "1.10.3",
|
|
5907
5907
|
getHeader: function () {
|
|
5908
5908
|
return {};
|
|
5909
5909
|
}
|
|
@@ -5979,7 +5979,7 @@ angular.module('niceElements')
|
|
|
5979
5979
|
};
|
|
5980
5980
|
});
|
|
5981
5981
|
|
|
5982
|
-
angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
5982
|
+
angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
5983
5983
|
'use strict';
|
|
5984
5984
|
|
|
5985
5985
|
$templateCache.put('src/components/nice-button-toggle/nice-button-toggle.html',
|
|
@@ -5996,7 +5996,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5996
5996
|
|
|
5997
5997
|
|
|
5998
5998
|
$templateCache.put('src/components/nice-button/nice-button.html',
|
|
5999
|
-
"<button type=\"{{
|
|
5999
|
+
"<button type=\"{{ niceType }}\" class=\"nice-component nice-button btn btn-primary\" ng-class=\"{ 'margin-bottom-0' : noMargin }\" ng-click=\"click()\" ng-disabled=\"niceDisabled == true\">\n" +
|
|
6000
6000
|
"<nice-icon icon=\"{{ icon }}\" ng-if=\"icon\" ng-class=\"{ 'opacity-0': loading }\"></nice-icon>\n" +
|
|
6001
6001
|
"<span ng-if=\"showSlot\" ng-transclude ng-class=\"{ 'opacity-0': loading }\"></span>\n" +
|
|
6002
6002
|
"<nice-loader ng-if=\"loading\" fulldiv=\"true\" class=\"nice-button-loader\"></nice-loader>\n" +
|
|
@@ -8068,5 +8068,5 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
8068
8068
|
"</div>\n" +
|
|
8069
8069
|
"</div>"
|
|
8070
8070
|
);
|
|
8071
|
-
|
|
8072
|
-
}]);
|
|
8071
|
+
|
|
8072
|
+
}]);
|