nice-elements 1.9.11 → 1.9.13

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +1 -1
  3. package/bower.json +1 -1
  4. package/dist/nice.js +129 -128
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +5225 -376
  7. package/dist/style.css.map +1 -1
  8. package/dist/style.min.css +2 -2
  9. package/package.json +1 -1
  10. package/src/components/nice-calendar/nice-calendar.html +3 -3
  11. package/src/components/nice-checkbox/nice-checkbox.html +4 -4
  12. package/src/components/nice-checkbox/nice-checkbox.js +1 -0
  13. package/src/components/nice-checkbox/nice-checkbox.scss +25 -19
  14. package/src/components/nice-choice/nice-choice.html +1 -1
  15. package/src/components/nice-date/nice-date.html +5 -5
  16. package/src/components/nice-date-input/nice-date-input.html +2 -2
  17. package/src/components/nice-datetime-picker/nice-datetime-picker.html +1 -1
  18. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +1 -1
  19. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +1 -1
  20. package/src/components/nice-dropdown/nice-dropdown.html +7 -7
  21. package/src/components/nice-dropdown-old/nice-dropdown-old.html +1 -1
  22. package/src/components/nice-input/nice-input.html +2 -2
  23. package/src/components/nice-number/nice-number.html +2 -2
  24. package/src/components/nice-quantity/nice-quantity.html +2 -2
  25. package/src/components/nice-search/nice-search.html +2 -2
  26. package/src/components/nice-search2/nice-search2.html +1 -1
  27. package/src/components/nice-time-picker/nice-time-picker.html +1 -1
  28. package/src/components/nice-toggle/nice-toggle.html +1 -1
  29. package/src/components/nice-wrapper/nice-wrapper.html +1 -1
  30. package/src/components/nice-yesno/nice-yesno.html +3 -3
  31. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.html +2 -2
  32. package/src/services/nice-service.js +1 -1
  33. package/src/styles/_nice-spacing.scss +216 -22
package/dist/nice.js CHANGED
@@ -18,7 +18,7 @@ angular.module('niceElements')
18
18
  label: '@'
19
19
  },
20
20
  link: function postLink(scope, element, attrs) {
21
- if (angular.isDefined(scope.model)) {
21
+ if (angular.isDefined(scope.model)){
22
22
  scope.model = false;
23
23
  }
24
24
  }
@@ -418,6 +418,7 @@ angular.module('niceElements')
418
418
  scope: {
419
419
  model: '=',
420
420
  title: '@',
421
+ titleOnLeft: '=',
421
422
  noMargin: '@',
422
423
  clickDisabled: '@',
423
424
  onChange: '&?',
@@ -655,14 +656,14 @@ angular.module('niceElements')
655
656
  * # clickOutside
656
657
  */
657
658
  angular.module('niceElements')
658
- .directive('clickOutside', function ($document, $parse, $timeout) {
659
+ .directive('clickOutside', function($document, $parse, $timeout){
659
660
  return {
660
661
  restrict: 'A',
661
662
  link: function ($scope, elem, attr) {
662
663
  $scope.isOpen = false;
663
664
 
664
665
  // watch for is open
665
- attr.$observe('isOpen', function (value) {
666
+ attr.$observe('isOpen', function(value){
666
667
  $scope.isOpen = value == 'true';
667
668
  });
668
669
 
@@ -717,7 +718,7 @@ angular.module('niceElements')
717
718
  // if we have got this far, then we are good to go with processing the command passed in via the click-outside attribute
718
719
  $timeout(function () {
719
720
  fn = $parse(attr['clickOutside']);
720
- fn($scope, { event: e });
721
+ fn($scope, {event: e});
721
722
  });
722
723
  }
723
724
  }
@@ -751,7 +752,7 @@ angular.module('niceElements')
751
752
  });
752
753
  }
753
754
  };
754
- });
755
+ });
755
756
  'use strict';
756
757
 
757
758
  /**
@@ -942,7 +943,7 @@ angular.module('niceElements')
942
943
  */
943
944
  angular.module('niceElements')
944
945
 
945
- .directive('niceDateRange', function () {
946
+ .directive('niceDateRange', function() {
946
947
  return {
947
948
  restrict: 'E',
948
949
  transclude: true,
@@ -962,16 +963,16 @@ angular.module('niceElements')
962
963
  onChange: '&?'
963
964
  },
964
965
 
965
- link: function (scope, attrs) {
966
+ link: function(scope, attrs){
966
967
  if (!attrs.title) { attrs.title = ''; }
967
968
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
968
969
  if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
969
970
  if (!attrs.format) { attrs.format = 'dd.MM.yyyy'; }
970
971
  attrs.noMargin = angular.isDefined(attrs.noMargin);
971
972
 
972
- if (!angular.isDefined(scope.model)) {
973
+ if(!angular.isDefined(scope.model)) {
973
974
  var model = null;
974
- if (!angular.isDefined(scope.startOfTheYear)) {
975
+ if(!angular.isDefined(scope.startOfTheYear)){
975
976
  model = {
976
977
  startDate: moment().format(),
977
978
  endDate: moment().format()
@@ -987,7 +988,7 @@ angular.module('niceElements')
987
988
  }
988
989
  },
989
990
 
990
- controller: function ($scope) {
991
+ controller: function($scope) {
991
992
  $scope.opts = {
992
993
  locale: {
993
994
  applyClass: 'btn-green',
@@ -1003,7 +1004,7 @@ angular.module('niceElements')
1003
1004
  $scope.opts.ranges[gettextCatalog.getString("Last 30 days", null, "Nice")] = [moment().subtract(30, 'days'), moment()];
1004
1005
  $scope.opts.ranges[gettextCatalog.getString("This month", null, "Nice")] = [moment().startOf('month'), moment().endOf('month')];
1005
1006
 
1006
- if (angular.isDefined($scope.format)) $scope.opts.format = format;
1007
+ if(angular.isDefined($scope.format)) $scope.opts.format = format;
1007
1008
  }
1008
1009
 
1009
1010
  };
@@ -3683,25 +3684,25 @@ angular.module('niceElements')
3683
3684
  };
3684
3685
  });
3685
3686
 
3686
- 'use strict';
3687
-
3688
- /**
3689
- * @ngdoc directive
3690
- * @name niceElements.directive:niceIcon
3691
- * @description
3692
- * # niceIcon
3693
- */
3694
- angular.module('niceElements')
3695
- .directive('niceIcon', function () {
3696
- return {
3697
- templateUrl: 'src/components/nice-icon/nice-icon.html',
3698
- restrict: 'E',
3699
- replace: true,
3700
- scope: {
3701
- icon: '@',
3702
- size: '=',
3703
- },
3704
- };
3687
+ 'use strict';
3688
+
3689
+ /**
3690
+ * @ngdoc directive
3691
+ * @name niceElements.directive:niceIcon
3692
+ * @description
3693
+ * # niceIcon
3694
+ */
3695
+ angular.module('niceElements')
3696
+ .directive('niceIcon', function () {
3697
+ return {
3698
+ templateUrl: 'src/components/nice-icon/nice-icon.html',
3699
+ restrict: 'E',
3700
+ replace: true,
3701
+ scope: {
3702
+ icon: '@',
3703
+ size: '=',
3704
+ },
3705
+ };
3705
3706
  });
3706
3707
  angular.module('niceElements')
3707
3708
  .directive('niceInput', function () {
@@ -4007,42 +4008,42 @@ angular.module('niceElements')
4007
4008
 
4008
4009
  var messageElements = [];
4009
4010
 
4010
- var notify = function (args, t) {
4011
+ var notify = function(args, t){
4011
4012
 
4012
- if (typeof args !== 'object') {
4013
- args = { message: args };
4013
+ if (typeof args !== 'object'){
4014
+ args = {message:args};
4014
4015
  }
4015
4016
 
4016
4017
  args.template = args.template ? args.template : 'src/components/nice-notification/nice-notification.html';
4017
4018
  args.delay = !angular.isUndefined(args.delay) ? args.delay : delay;
4018
4019
  args.type = t ? t : '';
4019
4020
 
4020
- $http.get(args.template, { cache: $templateCache }).success(function (template) {
4021
+ $http.get(args.template,{cache: $templateCache}).success(function(template) {
4021
4022
 
4022
4023
  var scope = $rootScope.$new();
4023
4024
  scope.message = $sce.trustAsHtml(args.message);
4024
4025
  scope.title = $sce.trustAsHtml(args.title);
4025
- scope.t = args.type.substr(0, 1);
4026
+ scope.t = args.type.substr(0,1);
4026
4027
  scope.delay = args.delay;
4027
4028
 
4028
- if (typeof args.scope === 'object') {
4029
- for (var key in args.scope) {
4029
+ if (typeof args.scope === 'object'){
4030
+ for (var key in args.scope){
4030
4031
  scope[key] = args.scope[key];
4031
4032
  }
4032
4033
  }
4033
4034
 
4034
- var reposite = function () {
4035
+ var reposite = function() {
4035
4036
  var j = 0;
4036
4037
  var k = 0;
4037
4038
  var lastTop = startTop;
4038
4039
  var lastRight = startRight;
4039
- for (var i = messageElements.length - 1; i >= 0; i--) {
4040
+ for(var i = messageElements.length - 1; i >= 0; i --) {
4040
4041
  var element = messageElements[i];
4041
4042
  var elHeight = parseInt(element[0].offsetHeight);
4042
4043
  var elWidth = parseInt(element[0].offsetWidth);
4043
4044
  if ((top + elHeight) > window.innerHeight) {
4044
4045
  lastTop = startTop;
4045
- k++;
4046
+ k ++;
4046
4047
  j = 0;
4047
4048
  }
4048
4049
  var top = lastTop + (j === 0 ? 0 : verticalSpacing);
@@ -4052,22 +4053,22 @@ angular.module('niceElements')
4052
4053
  element.css('right', right + 'px');
4053
4054
 
4054
4055
  lastTop = top + elHeight;
4055
- j++;
4056
+ j ++;
4056
4057
  }
4057
4058
  };
4058
4059
 
4059
4060
  var templateElement = $compile(template)(scope);
4060
4061
  templateElement.addClass(args.type);
4061
- templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function (e) {
4062
+ templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function(e){
4062
4063
  e = e.originalEvent || e;
4063
- if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)) {
4064
+ if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)){
4064
4065
  templateElement.remove();
4065
4066
  messageElements.splice(messageElements.indexOf(templateElement), 1);
4066
4067
  reposite();
4067
4068
  }
4068
4069
  });
4069
4070
 
4070
- $timeout(function () {
4071
+ $timeout(function() {
4071
4072
  templateElement.addClass('killed');
4072
4073
  templateElement.remove();
4073
4074
  messageElements.splice(messageElements.indexOf(templateElement), 1);
@@ -4079,34 +4080,34 @@ angular.module('niceElements')
4079
4080
 
4080
4081
  $timeout(reposite);
4081
4082
 
4082
- }).error(function (data) {
4083
- throw new Error('Template (' + args.template + ') could not be loaded. ' + data);
4083
+ }).error(function(data){
4084
+ throw new Error('Template ('+args.template+') could not be loaded. ' + data);
4084
4085
  });
4085
4086
 
4086
4087
  };
4087
4088
 
4088
- notify.config = function (args) {
4089
- startTop = args.top ? args.top : startTop;
4090
- verticalSpacing = args.verticalSpacing ? args.verticalSpacing : verticalSpacing;
4089
+ notify.config = function(args){
4090
+ startTop = args.top ? args.top : startTop;
4091
+ verticalSpacing = args.verticalSpacing ? args.verticalSpacing : verticalSpacing;
4091
4092
  };
4092
4093
 
4093
- notify.primary = function () {
4094
+ notify.primary = function() {
4094
4095
  this(args, '');
4095
4096
  };
4096
4097
 
4097
- notify.error = function (args) {
4098
+ notify.error = function(args) {
4098
4099
  this(args, 'error');
4099
4100
  };
4100
4101
 
4101
- notify.success = function (args) {
4102
+ notify.success = function(args) {
4102
4103
  this(args, 'success');
4103
4104
  };
4104
4105
 
4105
- notify.info = function (args) {
4106
+ notify.info = function(args) {
4106
4107
  this(args, 'info');
4107
4108
  };
4108
4109
 
4109
- notify.warning = function (args) {
4110
+ notify.warning = function(args) {
4110
4111
  this(args, 'warning');
4111
4112
  };
4112
4113
 
@@ -4537,7 +4538,7 @@ angular.module('niceElements')
4537
4538
  * # niceProgressBar
4538
4539
  */
4539
4540
  angular.module('niceElements')
4540
- .directive('niceProgressBar', function () {
4541
+ .directive('niceProgressBar', function() {
4541
4542
  return {
4542
4543
  restrict: 'E',
4543
4544
  replace: true,
@@ -4552,29 +4553,29 @@ angular.module('niceElements')
4552
4553
  help: '@'
4553
4554
  },
4554
4555
 
4555
- controller: function ($scope, $element, $timeout) {
4556
+ controller: function($scope, $element, $timeout) {
4556
4557
  $scope.width = 0;
4557
- $scope.resize = function () {
4558
- $timeout(function () {
4558
+ $scope.resize = function(){
4559
+ $timeout(function() {
4559
4560
  $scope.width = $element[0].getElementsByClassName("progress")[0].offsetWidth;
4560
- }, 100);
4561
+ },100);
4561
4562
  };
4562
- window.onresize = function () {
4563
+ window.onresize = function() {
4563
4564
  $scope.resize();
4564
4565
  };
4565
4566
  $scope.resize();
4566
4567
 
4568
+
4567
4569
 
4568
-
4569
- $scope.$watch("value", function (valueNew, valueOld) {
4570
+ $scope.$watch("value", function(valueNew, valueOld){
4570
4571
  $scope.calculate();
4571
4572
  });
4572
4573
 
4573
- $scope.$watch("max", function (valueNew, valueOld) {
4574
+ $scope.$watch("max", function(valueNew, valueOld){
4574
4575
  $scope.calculate();
4575
4576
  });
4576
4577
 
4577
- $scope.calculate = function () {
4578
+ $scope.calculate = function(){
4578
4579
  $scope.percentage = ($scope.value / $scope.max) * 100;
4579
4580
  };
4580
4581
 
@@ -5705,24 +5706,24 @@ angular.module('niceElements')
5705
5706
  isInline: '=',
5706
5707
  help: '@'
5707
5708
  },
5708
- controller: function ($scope, gettextCatalog) {
5709
+ controller: function($scope, gettextCatalog) {
5709
5710
  if (!$scope.yes) { $scope.yes = gettextCatalog.getString('Yes', null, "Nice"); }
5710
5711
  if (!$scope.no) { $scope.no = gettextCatalog.getString('No', null, "Nice"); }
5711
5712
  if (!$scope.title) { $scope.title = ''; }
5712
5713
  if (!$scope.fieldWidth) { $scope.fieldWidth = 'col-sm-8'; }
5713
5714
  if (!$scope.labelWidth) { $scope.labelWidth = 'col-sm-4'; }
5714
- if (!angular.isDefined($scope.model) && !angular.isDefined($scope.options)) $scope.model = !angular.isDefined($scope.defaultFalse);
5715
- if (!angular.isDefined($scope.modelValue) && angular.isDefined($scope.options)) $scope.modelValue = $scope.options[0];
5715
+ if(!angular.isDefined($scope.model) && !angular.isDefined($scope.options)) $scope.model = !angular.isDefined($scope.defaultFalse);
5716
+ if(!angular.isDefined($scope.modelValue) && angular.isDefined($scope.options)) $scope.modelValue = $scope.options[0];
5716
5717
 
5717
5718
  $scope.defaultFalse = angular.isDefined($scope.defaultFalse);
5718
5719
  $scope.noMargin = angular.isDefined($scope.noMargin);
5719
5720
 
5720
5721
  $scope.buttonClass = "";
5721
-
5722
+
5722
5723
 
5723
5724
  // ------------------------- Set overlay button position based on passed state in $scope.model -------------------------
5724
- $scope.setButtonPosition = function (state) {
5725
- if (state) {
5725
+ $scope.setButtonPosition = function(state) {
5726
+ if(state) {
5726
5727
  $scope.buttonClass = "yesno-button-yes";
5727
5728
  } else {
5728
5729
  $scope.buttonClass = "yesno-button-no";
@@ -5730,48 +5731,48 @@ angular.module('niceElements')
5730
5731
  };
5731
5732
 
5732
5733
  // ------------------------- Watch for changes from outside -------------------------
5733
- $scope.$watch('model', function (value_new, value_old) {
5734
- if (angular.isDefined($scope.model)) {
5734
+ $scope.$watch('model', function(value_new, value_old){
5735
+ if(angular.isDefined($scope.model)){
5735
5736
  $scope.setButtonLabel($scope.model);
5736
5737
  $scope.setButtonPosition($scope.model);
5737
5738
  }
5738
5739
  });
5739
5740
 
5740
5741
  // ------------------------- Watch for model value -------------------------
5741
- $scope.$watch('modelValue', function (value_new, value_old) {
5742
- if ($scope.options) {
5742
+ $scope.$watch('modelValue', function(value_new, value_old){
5743
+ if($scope.options){
5743
5744
  $scope.model = $scope.modelValue == $scope.options[0];
5744
5745
  }
5745
5746
  });
5746
5747
 
5747
5748
  // ------------------------- Set button label -------------------------
5748
- $scope.setButtonLabel = function (state) {
5749
+ $scope.setButtonLabel = function(state){
5749
5750
  if (state) {
5750
5751
  $scope.state = $scope.yes;
5751
5752
  } else {
5752
5753
  $scope.state = $scope.no;
5753
5754
  }
5754
5755
  };
5755
-
5756
+
5756
5757
  // ------------------------- Set width -------------------------
5757
- $scope.setWidth = function (width, el) {
5758
+ $scope.setWidth = function(width, el){
5758
5759
  el.style.width = width;
5759
5760
  };
5760
-
5761
+
5761
5762
 
5762
5763
  // ------------------------- Switch -------------------------
5763
- $scope.switch = function () {
5764
- if (!$scope.isDisabled) {
5764
+ $scope.switch = function(){
5765
+ if(!$scope.isDisabled){
5765
5766
  $scope.model = !$scope.model;
5766
-
5767
- if ($scope.options) {
5768
- if ($scope.model) {
5767
+
5768
+ if($scope.options){
5769
+ if($scope.model){
5769
5770
  $scope.modelValue = $scope.options[0];
5770
5771
  } else {
5771
5772
  $scope.modelValue = $scope.options[1];
5772
5773
  }
5773
5774
  }
5774
-
5775
+
5775
5776
  if ($scope.onChange) $scope.onChange({ model: $scope.model });
5776
5777
  $scope.formYesno.$setDirty();
5777
5778
  }
@@ -5833,7 +5834,7 @@ angular.module('niceElements')
5833
5834
  .service('NiceService', function () {
5834
5835
  var service = {
5835
5836
  name: "Nice elements",
5836
- version: "1.9.11",
5837
+ version: "1.9.13",
5837
5838
  getHeader: function () {
5838
5839
  return {};
5839
5840
  }
@@ -5909,7 +5910,7 @@ angular.module('niceElements')
5909
5910
  };
5910
5911
  });
5911
5912
 
5912
- angular.module('niceElements').run(['$templateCache', function ($templateCache) {
5913
+ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5913
5914
  'use strict';
5914
5915
 
5915
5916
  $templateCache.put('src/components/nice-button-toggle/nice-button-toggle.html',
@@ -5943,9 +5944,9 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
5943
5944
  "<div class=\"nice-calendar-wrapper\">\n" +
5944
5945
  "<div class=\"nice-calendar-weeks\">\n" +
5945
5946
  "<div class=\"header\">\n" +
5946
- "<button class=\"btn\" type=\"button\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5947
+ "<button type=\"button\" class=\"btn\" type=\"button\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5947
5948
  "<span title=\"{{ month.format('M.YYYY' )}}\">{{ month.format(\"MMMM, YYYY\" )}}</span>\n" +
5948
- "<button class=\"btn\" type=\"button\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5949
+ "<button type=\"button\" class=\"btn\" type=\"button\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5949
5950
  "</div>\n" +
5950
5951
  "<div class=\"week names\">\n" +
5951
5952
  "<span class=\"day\" translate translate-context=\"Nice\">Mon</span>\n" +
@@ -5957,7 +5958,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
5957
5958
  "<span class=\"day weekend\" translate translate-context=\"Nice\">Sun</span>\n" +
5958
5959
  "</div>\n" +
5959
5960
  "<div class=\"week\" ng-repeat=\"week in weeks\">\n" +
5960
- "<button class=\"day\" type=\"button\" title=\"{{ day.date.format('D.M.YYYY') }}\" ng-class=\"{\n" +
5961
+ "<button type=\"button\" class=\"day\" type=\"button\" title=\"{{ day.date.format('D.M.YYYY') }}\" ng-class=\"{\n" +
5961
5962
  " today: day.isToday,\n" +
5962
5963
  " 'different-month': !day.isCurrentMonth,\n" +
5963
5964
  " 'start-selected': isSameDay(day.date, startDate),\n" +
@@ -6016,11 +6017,11 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6016
6017
 
6017
6018
 
6018
6019
  $templateCache.put('src/components/nice-checkbox/nice-checkbox.html',
6019
- "<div class=\"nice-component nice-checkbox\" ng-class=\"{ 'checked': model, 'margin-bottom-0' : noMargin, 'nice-checkbox-disabled': isDisabled }\" ng-click=\"toggle()\">\n" +
6020
- "<button class=\"btn checkbox\" type=\"button\" ng-disabled=\"isDisabled\">\n" +
6021
- "<nice-icon class=\"check\" icon=\"icon-check\"></nice-icon>\n" +
6020
+ "<div class=\"nice-component nice-checkbox\" ng-class=\"{ 'nice-checkbox-checked': model, 'margin-bottom-0' : noMargin, 'nice-checkbox-disabled': isDisabled, 'nice-checkbox-left': titleOnLeft }\" ng-click=\"toggle()\">\n" +
6021
+ "<button type=\"button\" class=\"btn nice-checkbox-checkbox\" ng-disabled=\"isDisabled\">\n" +
6022
+ "<nice-icon class=\"nice-checkbox-check\" icon=\"icon-check\"></nice-icon>\n" +
6022
6023
  "</button>\n" +
6023
- "<div ng-if=\"title\" class=\"message\" ng-class=\"{ 'nice-disabled': isDisabled }\">{{ title }}</div>\n" +
6024
+ "<div ng-if=\"title\" class=\"nice-checkbox-message\" ng-class=\"{ 'nice-disabled': isDisabled }\">{{ title }}</div>\n" +
6024
6025
  "</div>"
6025
6026
  );
6026
6027
 
@@ -6032,7 +6033,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6032
6033
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6033
6034
  "<ul class=\"list-unstyled\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
6034
6035
  "<li ng-repeat=\"item in internalList\" ng-class=\"{ 'selected' : isItemSelected(item) }\" ng-click=\"toggle(item)\">\n" +
6035
- "<button class=\"choice-checkbox\" type=\"button\" ng-class=\"{'circle' : !multiple }\" ng-mouseenter=\"itemHover($event, item)\" ng-disabled=\"isDisabled\">\n" +
6036
+ "<button type=\"button\" class=\"choice-checkbox\" type=\"button\" ng-class=\"{'circle' : !multiple }\" ng-mouseenter=\"itemHover($event, item)\" ng-disabled=\"isDisabled\">\n" +
6036
6037
  "<nice-icon ng-if=\"multiple\" icon=\"icon-check\"></nice-icon>\n" +
6037
6038
  "<div ng-if=\"!multiple\" class=\"multiple-circle\"></div>\n" +
6038
6039
  "</button>\n" +
@@ -6067,7 +6068,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6067
6068
  "<nice-popup placement=\"bottom\">\n" +
6068
6069
  "<nice-popup-target>\n" +
6069
6070
  "<span class=\"input-group-btn\">\n" +
6070
- "<button class=\"btn btn-default btn-right\" type=\"button\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
6071
+ "<button type=\"button\" class=\"btn btn-default btn-right\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
6071
6072
  "<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
6072
6073
  "</button>\n" +
6073
6074
  "</span>\n" +
@@ -6082,7 +6083,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6082
6083
  "<nice-popup placement=\"bottom\">\n" +
6083
6084
  "<nice-popup-target>\n" +
6084
6085
  "<span class=\"input-group-btn\">\n" +
6085
- "<button class=\"btn btn-default btn-right\" type=\"button\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
6086
+ "<button type=\"button\" class=\"btn btn-default btn-right\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
6086
6087
  "<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
6087
6088
  "</button>\n" +
6088
6089
  "</span>\n" +
@@ -6125,7 +6126,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6125
6126
  "<div class=\"nice-date-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-show=\"!inline\" ng-click=\"toggleOpen()\">\n" +
6126
6127
  "<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
6127
6128
  "<span class=\"input-group-btn\">\n" +
6128
- "<button class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
6129
+ "<button type=\"button\" class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
6129
6130
  "<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
6130
6131
  "</button>\n" +
6131
6132
  "</span>\n" +
@@ -6140,15 +6141,15 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6140
6141
  "<select class=\"month-picker\" ng-model=\"innerDate.month\" ng-change=\"handleDateChange()\" ng-options=\"month.value as month.name for month in months\" ng-disabled=\"isDisabled\">\n" +
6141
6142
  "</select>\n" +
6142
6143
  "</span>\n" +
6143
- "<button class=\"btn btn-default-naked\" type=\"button\" ng-disabled=\"isDisabled\" ng-click=\"previous()\"><i class=\"fa fa-angle-left\"></i></button>\n" +
6144
- "<button class=\"btn btn-default-naked\" type=\"button\" ng-disabled=\"isDisabled\" ng-click=\"today()\"><i class=\"fa fa-circle\"></i></button>\n" +
6145
- "<button class=\"btn btn-default-naked\" type=\"button\" ng-disabled=\"isDisabled\" ng-click=\"next()\"><i class=\"fa fa-angle-right\"></i></button>\n" +
6144
+ "<button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"previous()\"><i class=\"fa fa-angle-left\"></i></button>\n" +
6145
+ "<button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"today()\"><i class=\"fa fa-circle\"></i></button>\n" +
6146
+ "<button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"next()\"><i class=\"fa fa-angle-right\"></i></button>\n" +
6146
6147
  "</div>\n" +
6147
6148
  "<div class=\"nice-date-week names\">\n" +
6148
6149
  "<span class=\"nice-date-day\" ng-class=\"{ 'weekend': $index == 6 || $index == 5 }\" ng-repeat=\"day in weekdays\">{{ day }}</span>\n" +
6149
6150
  "</div>\n" +
6150
6151
  "<div class=\"nice-date-week\" role=\"row\" ng-repeat=\"week in weeks\">\n" +
6151
- "<button class=\"nice-date-day\" type=\"button\" role=\"gridcell\" title=\"{{ day.value }}\" ng-class=\"{\n" +
6152
+ "<button type=\"button\" class=\"nice-date-day\" role=\"gridcell\" title=\"{{ day.value }}\" ng-class=\"{\n" +
6152
6153
  " 'today': day.isToday,\n" +
6153
6154
  " 'different-month': !day.isCurrentMonth,\n" +
6154
6155
  " 'selected': isSameDay(model, day.date),\n" +
@@ -6188,7 +6189,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6188
6189
  "<div class=\"input-group\" id=\"dropdown{{randNum}}\">\n" +
6189
6190
  "<input type=\"text\" class=\"form-control\" value=\"{{ value }}\" ng-click=\"openDtp()\" ng-disabled=\"isDisabled\">\n" +
6190
6191
  "<span class=\"input-group-btn\">\n" +
6191
- "<button class=\"btn btn-default\" ng-click=\"openDtp()\">\n" +
6192
+ "<button type=\"button\" class=\"btn btn-default\" ng-click=\"openDtp()\">\n" +
6192
6193
  "<nice-icon ng-if=\"date == 'true'\" icon=\"icon-calendar\"></nice-icon>\n" +
6193
6194
  "<nice-icon ng-if=\"date != 'true'\" icon=\"icon-clock\"></nice-icon>\n" +
6194
6195
  "</button>\n" +
@@ -6211,7 +6212,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6211
6212
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6212
6213
  "<div class=\"nice-daterange-picker-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-click=\"open()\">\n" +
6213
6214
  "<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
6214
- "<button class=\"btn input-group-addon\" ng-disabled=\"isDisabled\">\n" +
6215
+ "<button type=\"button\" class=\"btn input-group-addon\" ng-disabled=\"isDisabled\">\n" +
6215
6216
  "<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
6216
6217
  "</button>\n" +
6217
6218
  "</div>\n" +
@@ -6255,7 +6256,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6255
6256
  "<div class=\"input-group\">\n" +
6256
6257
  "<input type=\"text\" class=\"form-control\" value=\"{{value}}\" ng-disabled=\"isDisabled\" ng-click=\"openDtpRange()\">\n" +
6257
6258
  "<span class=\"input-group-btn\">\n" +
6258
- "<button class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
6259
+ "<button type=\"button\" class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
6259
6260
  "<nice-icon ng-if=\"date != 'false'\" icon=\"icon-calendar\"></nice-icon>\n" +
6260
6261
  "<nice-icon ng-if=\"date == 'false'\" icon=\"icon-clock\"></nice-icon>\n" +
6261
6262
  "</button>\n" +
@@ -6345,7 +6346,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6345
6346
  "</ul>\n" +
6346
6347
  "</div>\n" +
6347
6348
  "<span class=\"input-group-btn\" ng-if=\"addButtonEnable && !isDisabled\">\n" +
6348
- "<button class=\"btn btn-primary\" ng-click=\"addButtonFunction()\" type=\"button\">+</button>\n" +
6349
+ "<button type=\"button\" class=\"btn btn-primary\" ng-click=\"addButtonFunction()\">+</button>\n" +
6349
6350
  "</span>\n" +
6350
6351
  "</div>\n" +
6351
6352
  "</div>\n" +
@@ -6361,7 +6362,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6361
6362
  "<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6362
6363
  "<div class=\"nice-field col-xs-12\" ng-class=\"[ fieldWidth ? fieldWidth : 'col-sm-8', { 'open': isOpen, 'nice-disabled': isDisabled || emptyList } ]\" click-outside=\"close()\" is-open=\"{{ isOpen }}\">\n" +
6363
6364
  "<div class=\"nice-field-wrapper\">\n" +
6364
- "<button class=\"btn btn-dropdown\" type=\"button\" ng-ref=\"dropdown-button\" ng-click=\"toggle()\" ng-disabled=\"isDisabled || emptyList\" aria-expanded=\"{{ isOpen }}\" aria-haspopup=\"true\" aria-controls=\"menu\" id=\"nice-dropdown-{{ id }}\">\n" +
6365
+ "<button type=\"button\" class=\"btn btn-dropdown\" type=\"button\" ng-ref=\"dropdown-button\" ng-click=\"toggle()\" ng-disabled=\"isDisabled || emptyList\" aria-expanded=\"{{ isOpen }}\" aria-haspopup=\"true\" aria-controls=\"menu\" id=\"nice-dropdown-{{ id }}\">\n" +
6365
6366
  "<div class=\"btn-dropdown-inside\" ng-transclude=\"button\" ng-if=\"selected != null\">\n" +
6366
6367
  "<span ng-if=\"!multiple\">{{ selected[objValue] }}</span>\n" +
6367
6368
  "<span ng-if=\"multiple\">\n" +
@@ -6383,22 +6384,22 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6383
6384
  "<nice-icon ng-if=\"internal.search\" class=\"icon\" icon=\"icon-x\" ng-click=\"clearSearch()\"></nice-icon>\n" +
6384
6385
  "</div>\n" +
6385
6386
  "<div class=\"nice-dropdown-actions\" ng-if=\"multiple\">\n" +
6386
- "<button class=\"btn btn-default btn-sm\" ng-click=\"selectAll()\" translate translate-context=\"Nice\">All</button>\n" +
6387
- "<button class=\"btn btn-default btn-sm\" ng-click=\"selectNone()\">{{ nullableText }}</button>\n" +
6387
+ "<button type=\"button\" class=\"btn btn-default btn-sm\" ng-click=\"selectAll()\" translate translate-context=\"Nice\">All</button>\n" +
6388
+ "<button type=\"button\" class=\"btn btn-default btn-sm\" ng-click=\"selectNone()\">{{ nullableText }}</button>\n" +
6388
6389
  "</div>\n" +
6389
6390
  "<div class=\"nice-dropdown-items\" aria-labelledby=\"nice-dropdown-{{ id }}\" role=\"listbox\">\n" +
6390
- "<div role=\"none\" class=\"nice-no-data\" ng-if=\"internalList && internalList.length == 0\">{{ noDataText }}</div>\n" +
6391
- "<button role=\"option\" class=\"nice-dropdown-item null-item\" ng-if=\"!multiple && nullable && internalList.length != 0\" ng-click=\"handleSelected(null, -1)\" ng-disabled=\"isDisabled\">\n" +
6391
+ "<div role=\"none\" type=\"button\" class=\"nice-no-data\" ng-if=\"internalList && internalList.length == 0\">{{ noDataText }}</div>\n" +
6392
+ "<button type=\"button\" role=\"option\" class=\"nice-dropdown-item null-item\" ng-if=\"!multiple && nullable && internalList.length != 0\" ng-click=\"handleSelected(null, -1)\" ng-disabled=\"isDisabled\">\n" +
6392
6393
  "{{ nullableText }}\n" +
6393
6394
  "</button>\n" +
6394
- "<button role=\"option\" class=\"nice-dropdown-item\" ng-repeat=\"item in internalList\" ng-click=\"handleSelected(item, $index)\" ng-class=\"{ 'selected': item._selected }\" ng-disabled=\"isDisabled\">\n" +
6395
+ "<button type=\"button\" role=\"option\" class=\"nice-dropdown-item\" ng-repeat=\"item in internalList\" ng-click=\"handleSelected(item, $index)\" ng-class=\"{ 'selected': item._selected }\" ng-disabled=\"isDisabled\">\n" +
6395
6396
  "<div class=\"choice-checkbox\" ng-if=\"multiple\" role=\"menuitemcheckbox\"><i class=\"fa fa-check\"></i></div>\n" +
6396
6397
  "<div class=\"choice-option\" ng-transclude=\"option\" ng-class=\"{ 'multiple-item': multiple }\">{{ item[objValue] }}</div>\n" +
6397
6398
  "</button>\n" +
6398
6399
  "</div>\n" +
6399
6400
  "</div>\n" +
6400
6401
  "</div>\n" +
6401
- "<button class=\"btn btn-primary btn-icon add-btn\" type=\"button\" ng-if=\"addButtonFunction && !isDisabled\" ng-click=\"addButtonFunction()\" ng-disabled=\"isDisabled\">\n" +
6402
+ "<button type=\"button\" class=\"btn btn-primary btn-icon add-btn\" ng-if=\"addButtonFunction && !isDisabled\" ng-click=\"addButtonFunction()\" ng-disabled=\"isDisabled\">\n" +
6402
6403
  "<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
6403
6404
  "</button>\n" +
6404
6405
  "</div>\n" +
@@ -6530,11 +6531,11 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6530
6531
  "<textarea ng-if=\"textArea\" class=\"form-control\" ng-model=\"$parent.model\" id=\"{{ id }}\" tabindex=\"{{ tabIndex }}\" placeholder=\"{{ placeholder }}\" rows=\"{{textAreaLines}}\" max=\"{{ max }}\" min=\"{{ min }}\" ng-minlength=\"minlength\" ng-maxlength=\"maxlength\" ng-required=\"required\" ng-pattern=\"regexexp\" ng-disabled=\"isDisabled\"></textarea>\n" +
6531
6532
  "<input ng-if=\"!textArea\" class=\"form-control\" type=\"{{ internalType }}\" inputmode=\"{{ inputMode }}\" ng-model=\"$parent.model\" name=\"{{ name }}\" id=\"{{ id }}\" tabindex=\"{{ tabIndex }}\" placeholder=\"{{ placeholder }}\" max=\"{{ max }}\" min=\"{{ min }}\" ng-minlength=\"minlength\" ng-maxlength=\"maxlength\" ng-required=\"required\" ng-keypress=\"keypress($event)\" ng-pattern=\"regexexp\" ng-disabled=\"isDisabled\">\n" +
6532
6533
  "<div class=\"input-group-addon\" ng-if=\"symbol\">{{ symbol }}</div>\n" +
6533
- "<button class=\"input-group-btn\" ng-if=\"multilanguageField\" ng-click=\"openMultilanguage()\">\n" +
6534
+ "<button type=\"button\" class=\"input-group-btn\" ng-if=\"multilanguageField\" ng-click=\"openMultilanguage()\">\n" +
6534
6535
  "<nice-icon icon=\"icon-translate\"></nice-icon>\n" +
6535
6536
  "<div class=\"nice-input-addon-bubble\" ng-if=\"numberOfLanguages > 0\">{{ numberOfLanguages }}</div>\n" +
6536
6537
  "</button>\n" +
6537
- "<button class=\"input-group-btn\" ng-if=\"onClear\" ng-click=\"onClear()\">\n" +
6538
+ "<button type=\"button\" class=\"input-group-btn\" ng-if=\"onClear\" ng-click=\"onClear()\">\n" +
6538
6539
  "<nice-icon icon=\"icon-x\"></nice-icon>\n" +
6539
6540
  "</button>\n" +
6540
6541
  "</div>\n" +
@@ -6595,13 +6596,13 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6595
6596
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6596
6597
  "<div class=\"input-group\" ng-class=\"{'has-warning': !isDisabled && niceNumberForm.$invalid && niceNumberForm.$dirty}\">\n" +
6597
6598
  "<span class=\"input-group-btn\">\n" +
6598
- "<button class=\"btn btn-default btn-left\" type=\"button\" ng-disabled=\"!canSubstract || isDisabled\" ng-click=\"subtract()\" tabindex=\"-1\">\n" +
6599
+ "<button type=\"button\" class=\"btn btn-default btn-left\" ng-disabled=\"!canSubstract || isDisabled\" ng-click=\"subtract()\" tabindex=\"-1\">\n" +
6599
6600
  "<nice-icon icon=\"icon-minus\"></nice-icon>\n" +
6600
6601
  "</button>\n" +
6601
6602
  "</span>\n" +
6602
6603
  "<input type=\"number\" step=\"{{ step }}\" ng-change=\"inputChanged()\" class=\"form-control\" max=\"{{ max }}\" min=\"{{ min }}\" ng-disabled=\"isDisabled\" ng-model=\"model\">\n" +
6603
6604
  "<span class=\"input-group-btn\">\n" +
6604
- "<button class=\"btn btn-default btn-right\" type=\"button\" ng-disabled=\"!canAdd || isDisabled\" ng-click=\"add()\" tabindex=\"-1\">\n" +
6605
+ "<button type=\"button\" class=\"btn btn-default btn-right\" ng-disabled=\"!canAdd || isDisabled\" ng-click=\"add()\" tabindex=\"-1\">\n" +
6605
6606
  "<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
6606
6607
  "</button>\n" +
6607
6608
  "</span>\n" +
@@ -6693,13 +6694,13 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6693
6694
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6694
6695
  "<div class=\"input-group\">\n" +
6695
6696
  "<span class=\"input-group-btn\">\n" +
6696
- "<button class=\"btn btn-default btn-left\" ng-click=\"sub()\" type=\"button\" ng-disabled=\"(model <= min) || isDisabled\" tabindex=\"-1\">\n" +
6697
+ "<button type=\"button\" class=\"btn btn-default btn-left\" ng-click=\"sub()\" ng-disabled=\"(model <= min) || isDisabled\" tabindex=\"-1\">\n" +
6697
6698
  "<nice-icon icon=\"icon-minus\"></nice-icon>\n" +
6698
6699
  "</button>\n" +
6699
6700
  "</span>\n" +
6700
6701
  "<input class=\"value form-control\" ng-model=\"model\" type=\"number\" min=\"{{ min }}\" max=\"{{ max }}\" ng-change=\"handleChange()\" ng-disabled=\"isDisabled\">\n" +
6701
6702
  "<span class=\"input-group-btn\">\n" +
6702
- "<button class=\"btn btn-default btn-right\" ng-click=\"add()\" type=\"button\" ng-disabled=\"(model >= max) || isDisabled\" tabindex=\"-1\">\n" +
6703
+ "<button type=\"button\" class=\"btn btn-default btn-right\" ng-click=\"add()\" ng-disabled=\"(model >= max) || isDisabled\" tabindex=\"-1\">\n" +
6703
6704
  "<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
6704
6705
  "</button>\n" +
6705
6706
  "</span>\n" +
@@ -6717,11 +6718,11 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6717
6718
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6718
6719
  "<div class=\"input-group\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
6719
6720
  "<input class=\"form-control\" type=\"text\" id=\"{{ id }}\" ng-model=\"modelString\" ng-keypress=\"keypress($event)\" placeholder=\"{{ placeholder }}\" ng-disabled=\"isDisabled\" ng-change=\"updateSearch()\" ng-required=\"required\" tabindex=\"{{ tabIndex }}\">\n" +
6720
- "<button class=\"btn input-group-addon\" ng-click=\"search()\" ng-if=\"!model\" ng-disabled=\"isDisabled\">\n" +
6721
+ "<button type=\"button\" class=\"btn input-group-addon\" ng-click=\"search()\" ng-if=\"!model\" ng-disabled=\"isDisabled\">\n" +
6721
6722
  "<nice-icon ng-show=\"!loading\" icon=\"icon-search\"></nice-icon>\n" +
6722
6723
  "<nice-loader ng-if=\"loading\"></nice-loader>\n" +
6723
6724
  "</button>\n" +
6724
- "<button class=\"btn input-group-addon\" ng-click=\"remove()\" ng-if=\"model\" ng-disabled=\"isDisabled\">\n" +
6725
+ "<button type=\"button\" class=\"btn input-group-addon\" ng-click=\"remove()\" ng-if=\"model\" ng-disabled=\"isDisabled\">\n" +
6725
6726
  "<nice-icon ng-show=\"!loading\" icon=\"icon-x\"></nice-icon>\n" +
6726
6727
  "</button>\n" +
6727
6728
  "</div>\n" +
@@ -6751,7 +6752,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
6751
6752
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
6752
6753
  "<div class=\"nice-search-button input-group\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
6753
6754
  "<input class=\"form-control\" type=\"text\" id=\"{{ id }}\" ng-model=\"model\" placeholder=\"{{ placeholder }}\" ng-disabled=\"isDisabled\" ng-change=\"updateSearch()\" ng-focus=\"onFocus()\" tabindex=\"{{ tabIndex }}\">\n" +
6754
- "<button class=\"btn input-group-addon\" ng-disabled=\"isDisabled\" ng-click=\"buttonClicked()\">\n" +
6755
+ "<button type=\"button\" class=\"btn input-group-addon\" ng-disabled=\"isDisabled\" ng-click=\"buttonClicked()\">\n" +
6755
6756
  "<nice-icon ng-show=\"!loading && model != ''\" icon=\"icon-x\"></nice-icon>\n" +
6756
6757
  "<nice-icon ng-show=\"!loading && model == ''\" icon=\"icon-search\"></nice-icon>\n" +
6757
6758
  "<nice-loader ng-if=\"loading\"></nice-loader>\n" +
@@ -7771,7 +7772,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
7771
7772
  " }\">\n" +
7772
7773
  "<input type=\"text\" class=\"form-control\" ng-model=\"modelString\" ng-keyup=\"$event.keyCode == 13 && validateDate()\" ng-blur=\"validateDate()\">\n" +
7773
7774
  "<span class=\"input-group-btn\">\n" +
7774
- "<button class=\"btn btn-default btn-right\" ng-click=\"open = !open\">\n" +
7775
+ "<button type=\"button\" class=\"btn btn-default btn-right\" ng-click=\"open = !open\">\n" +
7775
7776
  "<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
7776
7777
  "</button>\n" +
7777
7778
  "</span>\n" +
@@ -7823,7 +7824,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
7823
7824
  "<div class=\"row\">\n" +
7824
7825
  "<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7825
7826
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
7826
- "<button class=\"nice-toggle-field\" ng-click=\"switch()\" ng-disabled=\"isDisabled\" type=\"button\">\n" +
7827
+ "<button type=\"button\" class=\"nice-toggle-field\" ng-click=\"switch()\" ng-disabled=\"isDisabled\">\n" +
7827
7828
  "<div class=\"nice-toggle-field-handle\" ng-class=\"{ 'active': model }\">{{ state }}</div>\n" +
7828
7829
  "</button>\n" +
7829
7830
  "</div>\n" +
@@ -7863,7 +7864,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
7863
7864
  "<div class=\"nice-wrapper-title\" ng-transclude=\"title\">{{ title }}</div>\n" +
7864
7865
  "<div class=\"nice-wrapper-subtitle\" ng-transclude=\"subtitle\">{{ subtitle }}</div>\n" +
7865
7866
  "</div>\n" +
7866
- "<button class=\"nice-wrapper-toggle btn btn-icon btn-default-naked\" ng-if=\"collapsable\" ng-class=\"{ 'is-open': isOpen }\">\n" +
7867
+ "<button type=\"button\" class=\"nice-wrapper-toggle btn btn-icon btn-default-naked\" ng-if=\"collapsable\" ng-class=\"{ 'is-open': isOpen }\">\n" +
7867
7868
  "<nice-icon icon=\"icon-chevron-down\"></nice-icon>\n" +
7868
7869
  "</button>\n" +
7869
7870
  "</div>\n" +
@@ -7879,9 +7880,9 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
7879
7880
  "<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7880
7881
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
7881
7882
  "<div class=\"yesno-wrapper noselect\">\n" +
7882
- "<button class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\" ng-disabled=\"isDisabled\">{{ yes }}</button>\n" +
7883
- "<button class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\" ng-disabled=\"isDisabled\">{{ no }}</button>\n" +
7884
- "<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\" ng-disabled=\"isDisabled\" type=\"button\">{{ state }}</button>\n" +
7883
+ "<button type=\"button\" class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\" ng-disabled=\"isDisabled\">{{ yes }}</button>\n" +
7884
+ "<button type=\"button\" class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\" ng-disabled=\"isDisabled\">{{ no }}</button>\n" +
7885
+ "<button type=\"button\" class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\" ng-disabled=\"isDisabled\">{{ state }}</button>\n" +
7885
7886
  "</div>\n" +
7886
7887
  "</div>\n" +
7887
7888
  "</div>\n" +
@@ -7909,7 +7910,7 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
7909
7910
  "<div class=\"dialog-footer\">\n" +
7910
7911
  "<div class=\"view-actions\">\n" +
7911
7912
  "<button type=\"button\" class=\"btn btn-danger btn-navigation\" ng-click=\"close()\" translate-context=\"Nice\" translate>Cancel</button>\n" +
7912
- "<button class=\"btn btn-success btn-navigation\" ng-click=\"save()\" translate-context=\"Nice\" translate>Save</button>\n" +
7913
+ "<button type=\"button\" class=\"btn btn-success btn-navigation\" ng-click=\"save()\" translate-context=\"Nice\" translate>Save</button>\n" +
7913
7914
  "</div>\n" +
7914
7915
  "</div>\n" +
7915
7916
  "</div>"