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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.12.1 (20.3.2025)
4
+
5
+ - fixed nice toggle if model is undefined set it to false,
6
+ - added iconCenter prop to nice alert
7
+
3
8
  ## v1.12.0 (10.3.2025)
4
9
 
5
10
  - created nice-alert component,
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Nice elements](https://github.com/Klemen1337/angularjs-nice-elements/raw/master/demo/assets/logo.png)
2
2
 
3
- # Nice elements v1.12.0
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "authors": [
5
5
  "Klemen Kastelic <klemen@olaii.com>"
6
6
  ],
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" +