nice-elements 1.7.3 → 1.7.5

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 (139) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +6 -5
  3. package/bower.json +1 -1
  4. package/dist/nice.js +217 -256
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +26 -11
  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 +9 -12
  11. package/src/components/nice-choice/nice-choice.html +3 -6
  12. package/src/components/nice-comment/nice-comment.html +5 -15
  13. package/src/components/nice-comment/nice-comment.js +7 -6
  14. package/src/components/nice-comment/nice-comment.scss +13 -9
  15. package/src/components/nice-date/nice-date.html +11 -14
  16. package/src/components/nice-date-input/nice-date-input.html +2 -5
  17. package/src/components/nice-date-range/nice-date-range.html +2 -5
  18. package/src/components/nice-datetime-picker/nice-datetime-picker.html +2 -5
  19. package/src/components/nice-datetime-picker/nice-datetime-picker.js +42 -41
  20. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +3 -8
  21. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +19 -18
  22. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +3 -6
  23. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +1 -1
  24. package/src/components/nice-dropdown/nice-dropdown.html +2 -6
  25. package/src/components/nice-dropdown/nice-dropdown.js +1 -2
  26. package/src/components/nice-dropdown/nice-dropdown.scss +3 -2
  27. package/src/components/nice-dropdown-date/nice-dropdown-date.html +7 -33
  28. package/src/components/nice-dropdown-date/nice-dropdown-date.scss +15 -15
  29. package/src/components/nice-dropdown-old/nice-dropdown-old.html +3 -13
  30. package/src/components/nice-dropdown-old/nice-dropdown-old.js +1 -1
  31. package/src/components/nice-help/nice-help.html +0 -1
  32. package/src/components/nice-help/nice-help.js +1 -0
  33. package/src/components/nice-icon/nice-icon.html +1 -1
  34. package/src/components/nice-input/nice-input.html +2 -5
  35. package/src/components/nice-label/nice-label.html +3 -6
  36. package/src/components/nice-number/nice-number.html +7 -10
  37. package/src/components/nice-number/nice-number.js +11 -11
  38. package/src/components/nice-percent/nice-percent.html +5 -22
  39. package/src/components/nice-percent/nice-percent.js +12 -12
  40. package/src/components/nice-progress-bar/nice-progress-bar.html +2 -5
  41. package/src/components/nice-quantity/nice-quantity.html +2 -5
  42. package/src/components/nice-search/nice-search.html +2 -5
  43. package/src/components/nice-search/nice-search.js +32 -32
  44. package/src/components/nice-search2/nice-search2.html +2 -5
  45. package/src/components/nice-slot/nice-slot.html +3 -6
  46. package/src/components/nice-slot/nice-slot.js +1 -1
  47. package/src/components/nice-time-picker/nice-time-picker.html +2 -5
  48. package/src/components/nice-title/nice-title.html +4 -0
  49. package/src/components/nice-title/nice-title.js +21 -0
  50. package/src/components/nice-upload/nice-upload.html +2 -5
  51. package/src/components/nice-yesno/nice-yesno.html +5 -8
  52. package/src/styles/_nice-common.scss +12 -1
  53. package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/_nice-time-picker.scssc +0 -0
  54. package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/nice-time-picker.scssc +0 -0
  55. package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/_nice-comment.scssc +0 -0
  56. package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/nice-comment.scssc +0 -0
  57. package/.sass-cache/1fa02acb98a7cebbbaaccd8ef62dedeb80075746/nice-quantity.scssc +0 -0
  58. package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/_nice-date-range.scssc +0 -0
  59. package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/nice-date-range.scssc +0 -0
  60. package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/_nice-button.scssc +0 -0
  61. package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/nice-button.scssc +0 -0
  62. package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/_nice-steps.scssc +0 -0
  63. package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/nice-steps.scssc +0 -0
  64. package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/_nice-input.scssc +0 -0
  65. package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/nice-input.scssc +0 -0
  66. package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/_nice-calendar.scssc +0 -0
  67. package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/nice-calendar.scssc +0 -0
  68. package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/_nice-notification.scssc +0 -0
  69. package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/nice-notification.scssc +0 -0
  70. package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/_nice-datetimerange-picker.scssc +0 -0
  71. package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/nice-datetimerange-picker.scssc +0 -0
  72. package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/_nice-yesno.scssc +0 -0
  73. package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/nice-yesno.scssc +0 -0
  74. package/.sass-cache/52335f6e13d042b07835d519f4267df952f94036/nice-dropdown-old.scssc +0 -0
  75. package/.sass-cache/52f492b94dd9f4468e58d8aa11ba26ac9cdcbbcf/nice-progress-bar.scssc +0 -0
  76. package/.sass-cache/6629f6f7b13f350c585c990e5699145891af0805/nice-help.scssc +0 -0
  77. package/.sass-cache/6dfd23eda68e4cff55e32e19d3bc5f0e6095bda9/nice-search2.scssc +0 -0
  78. package/.sass-cache/7870950c279970f0acdfb180a33c0d63a93fc5b0/nice-upload.scssc +0 -0
  79. package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/_nice-button-toggle.scssc +0 -0
  80. package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/nice-button-toggle.scssc +0 -0
  81. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_bootstrap-variables.scssc +0 -0
  82. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice-common.scssc +0 -0
  83. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice.scssc +0 -0
  84. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_variables.scssc +0 -0
  85. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/main.scssc +0 -0
  86. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/mian.scssc +0 -0
  87. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/style.scssc +0 -0
  88. package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/_nice-date.scssc +0 -0
  89. package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/nice-date.scssc +0 -0
  90. package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/_nice-number.scssc +0 -0
  91. package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/nice-number.scssc +0 -0
  92. package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/_nice-checkbox.scssc +0 -0
  93. package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/nice-checkbox.scssc +0 -0
  94. package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/_nice-dropdown-date.scssc +0 -0
  95. package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/nice-dropdown-date.scssc +0 -0
  96. package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/_nice-choice.scssc +0 -0
  97. package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/nice-choice.scssc +0 -0
  98. package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/_nice-datetimerange-picker-2.scssc +0 -0
  99. package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/nice-datetimerange-picker-2.scssc +0 -0
  100. package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_mixins.scssc +0 -0
  101. package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_variables.scssc +0 -0
  102. package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/_nice-loader.scssc +0 -0
  103. package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/nice-loader.scssc +0 -0
  104. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_alerts.scssc +0 -0
  105. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_background-variant.scssc +0 -0
  106. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_border-radius.scssc +0 -0
  107. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_buttons.scssc +0 -0
  108. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_center-block.scssc +0 -0
  109. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_clearfix.scssc +0 -0
  110. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_forms.scssc +0 -0
  111. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_gradients.scssc +0 -0
  112. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid-framework.scssc +0 -0
  113. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid.scssc +0 -0
  114. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_hide-text.scssc +0 -0
  115. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_image.scssc +0 -0
  116. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_labels.scssc +0 -0
  117. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_list-group.scssc +0 -0
  118. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-divider.scssc +0 -0
  119. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-vertical-align.scssc +0 -0
  120. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_opacity.scssc +0 -0
  121. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_pagination.scssc +0 -0
  122. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_panels.scssc +0 -0
  123. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_progress-bar.scssc +0 -0
  124. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-filter.scssc +0 -0
  125. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-text.scssc +0 -0
  126. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_resize.scssc +0 -0
  127. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_responsive-visibility.scssc +0 -0
  128. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_size.scssc +0 -0
  129. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_tab-focus.scssc +0 -0
  130. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_table-row.scssc +0 -0
  131. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-emphasis.scssc +0 -0
  132. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-overflow.scssc +0 -0
  133. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_vendor-prefixes.scssc +0 -0
  134. package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/_nice-datetime-picker.scssc +0 -0
  135. package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/nice-datetime-picker.scssc +0 -0
  136. package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/_nice-search.scssc +0 -0
  137. package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/nice-search.scssc +0 -0
  138. package/.sass-cache/fd9f4f9e07e96510c3ea7c8543d71e342ea61d29/_nice-dropdown.scssc +0 -0
  139. package/.sass-cache/fd9f4f9e07e96510c3ea7c8543d71e342ea61d29/nice-dropdown.scssc +0 -0
package/dist/nice.js CHANGED
@@ -759,6 +759,7 @@ angular.module('niceElements')
759
759
  scope: {
760
760
  model: '=',
761
761
  title: '@?',
762
+ isDisabled: '=',
762
763
  placeholder: '@',
763
764
  noTextLabel: '@',
764
765
  noMargin: '@',
@@ -769,7 +770,7 @@ angular.module('niceElements')
769
770
  rows: '@'
770
771
  },
771
772
  link: function postLink(scope, element, attrs) {
772
- if (scope.model == null) { scope.model = ''; }
773
+ if (scope.model == null) { scope.model = ''; }
773
774
  if (!attrs.placeholder) { attrs.placeholder = ''; }
774
775
  if (!attrs.noTextLabel) { angular.isDefined(attrs.noTextLabel); }
775
776
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
@@ -779,9 +780,9 @@ angular.module('niceElements')
779
780
 
780
781
  var textareas = element.find('textarea');
781
782
 
782
- scope.edit = function(){
783
- scope.editing=true;
784
- $timeout(function(){
783
+ scope.edit = function () {
784
+ scope.editing = true;
785
+ $timeout(function () {
785
786
  textareas[0].focus();
786
787
  });
787
788
  };
@@ -802,10 +803,10 @@ angular.module('niceElements')
802
803
  });
803
804
  }
804
805
  },
805
- controller: function($scope){
806
+ controller: function ($scope) {
806
807
  $scope.editing = false;
807
808
 
808
- $scope.save = function(){
809
+ $scope.save = function () {
809
810
  $scope.editing = false;
810
811
  };
811
812
  }
@@ -1365,55 +1366,56 @@ angular.module('niceElements').directive('niceDatetimePicker', function () {
1365
1366
  onChange: '&?'
1366
1367
  },
1367
1368
  controller: function ($scope, gettextCatalog) {
1368
- $scope.date = $scope.date == 'true' || $scope.date == true;
1369
- $scope.time = $scope.time == 'true' || $scope.time == true;
1370
- $scope.noMargin === 'true' || $scope.noMargin === true;
1371
- $scope.enableOkButtons === 'true' || $scope.enableOkButtons === true;
1372
- $scope.lang = $scope.lang || 'en';
1373
- $scope.okText = $scope.okText || gettextCatalog.getString('OK', null, 'Nice');
1374
- $scope.cancelText = $scope.cancelText || gettextCatalog.getString('Cancel', null, 'Nice');
1375
- $scope.weekStart = parseInt($scope.weekStart) || 1;
1376
- $scope.width = parseInt($scope.width) || 300;
1377
- $scope.isOpen = false;
1378
- $scope.internalDate = moment($scope.model) || moment();
1379
-
1380
- if (!$scope.format) {
1381
- if ($scope.date && !$scope.time) {
1382
- $scope.format = 'D.M.YYYY';
1383
- } else if (!$scope.date && $scope.time) {
1384
- $scope.format = 'HH:mm';
1385
- } else {
1386
- $scope.format = 'D.M.YYYY • H:mm';
1387
- }
1369
+ console.warn("[NICE ELEMENTS] nice-datetime-picker component is deprecated!");
1370
+ $scope.date = $scope.date == 'true' || $scope.date == true;
1371
+ $scope.time = $scope.time == 'true' || $scope.time == true;
1372
+ $scope.noMargin === 'true' || $scope.noMargin === true;
1373
+ $scope.enableOkButtons === 'true' || $scope.enableOkButtons === true;
1374
+ $scope.lang = $scope.lang || 'en';
1375
+ $scope.okText = $scope.okText || gettextCatalog.getString('OK', null, 'Nice');
1376
+ $scope.cancelText = $scope.cancelText || gettextCatalog.getString('Cancel', null, 'Nice');
1377
+ $scope.weekStart = parseInt($scope.weekStart) || 1;
1378
+ $scope.width = parseInt($scope.width) || 300;
1379
+ $scope.isOpen = false;
1380
+ $scope.internalDate = moment($scope.model) || moment();
1381
+
1382
+ if (!$scope.format) {
1383
+ if ($scope.date && !$scope.time) {
1384
+ $scope.format = 'D.M.YYYY';
1385
+ } else if (!$scope.date && $scope.time) {
1386
+ $scope.format = 'HH:mm';
1387
+ } else {
1388
+ $scope.format = 'D.M.YYYY • H:mm';
1388
1389
  }
1390
+ }
1389
1391
 
1390
- $scope.openDtp = function () {
1391
- if (!$scope.isDisabled) {
1392
- $scope.isOpen = true;
1393
- $scope.$broadcast('dtp-open-click');
1394
- }
1395
- };
1392
+ $scope.openDtp = function () {
1393
+ if (!$scope.isDisabled) {
1394
+ $scope.isOpen = true;
1395
+ $scope.$broadcast('dtp-open-click');
1396
+ }
1397
+ };
1396
1398
 
1397
- $scope.closeDtp = function (response) {
1398
- $scope.isOpen = false;
1399
- $scope.$broadcast('dtp-close-click');
1400
- };
1399
+ $scope.closeDtp = function (response) {
1400
+ $scope.isOpen = false;
1401
+ $scope.$broadcast('dtp-close-click');
1402
+ };
1401
1403
 
1402
- $scope.$on('dateSelected', function () {
1403
- $scope.formDatetimePicker.$setDirty();
1404
- });
1404
+ $scope.$on('dateSelected', function () {
1405
+ $scope.formDatetimePicker.$setDirty();
1406
+ });
1405
1407
 
1406
- $scope.$watch('internalDate', function (newDate) {
1407
- $scope.model = moment(newDate);
1408
- $scope.value = moment(newDate).format($scope.format);
1409
- if ($scope.onChange) $scope.onChange({ model: $scope.model });
1410
- });
1408
+ $scope.$watch('internalDate', function (newDate) {
1409
+ $scope.model = moment(newDate);
1410
+ $scope.value = moment(newDate).format($scope.format);
1411
+ if ($scope.onChange) $scope.onChange({ model: $scope.model });
1412
+ });
1411
1413
 
1412
- $scope.$watch('model', function (newModel, oldModel) {
1413
- $scope.value = moment(newModel).format($scope.format);
1414
- });
1415
- }
1414
+ $scope.$watch('model', function (newModel, oldModel) {
1415
+ $scope.value = moment(newModel).format($scope.format);
1416
+ });
1416
1417
  }
1418
+ }
1417
1419
  });
1418
1420
  'use strict';
1419
1421
 
@@ -1431,7 +1433,7 @@ angular.module('niceElements')
1431
1433
  endDate: '=', // binding model
1432
1434
  formatString: '@', // default: 'D.M.YYYY • H:mm', format for input label string
1433
1435
  modelFormat: '@',
1434
- time: '=', // default: false, is time picker enabled?
1436
+ time: '=?', // default: false, is time picker enabled?
1435
1437
  minDate: '@', // default: undefined
1436
1438
  maxDate: '@', // default: undefined
1437
1439
  title: '@', // default: ''
@@ -1597,7 +1599,7 @@ angular.module('niceElements')
1597
1599
  * # niceDatetimerangePicker
1598
1600
  */
1599
1601
  angular.module('niceElements')
1600
- .directive('niceDatetimerangePicker', function(gettextCatalog) {
1602
+ .directive('niceDatetimerangePicker', function (gettextCatalog) {
1601
1603
  return {
1602
1604
  scope: {
1603
1605
  modelStart: '=', // binding model
@@ -1627,7 +1629,8 @@ angular.module('niceElements')
1627
1629
  },
1628
1630
  templateUrl: 'src/components/nice-datetimerange-picker/nice-datetimerange-picker.html',
1629
1631
  link: {
1630
- pre: function($scope) {
1632
+ pre: function ($scope) {
1633
+ console.warn("[NICE ELEMENTS] nice-datetimerange-picker component is deprecated!");
1631
1634
  // Default parameters
1632
1635
  var params = {
1633
1636
  title: '',
@@ -1649,18 +1652,18 @@ angular.module('niceElements')
1649
1652
  enableOkButtons: false
1650
1653
  };
1651
1654
 
1652
- if($scope.formatOutput === undefined) $scope.formatOutput = false;
1655
+ if ($scope.formatOutput === undefined) $scope.formatOutput = false;
1653
1656
 
1654
- var setLabelValue = function(){
1657
+ var setLabelValue = function () {
1655
1658
  var _from = moment($scope.internalStart).format(params.format);
1656
1659
  var _to = moment($scope.internalEnd).format(params.format);
1657
1660
  $scope.value = _from + ' - ' + _to;
1658
1661
  };
1659
1662
 
1660
1663
  var initCurrentDates = function () {
1661
- if (typeof($scope.modelStart) === 'undefined' || $scope.modelStart === null) {
1664
+ if (typeof ($scope.modelStart) === 'undefined' || $scope.modelStart === null) {
1662
1665
  var _start = moment().subtract(1, 'days');
1663
- if($scope.formatOutput) _start = _start.format(params.modelFormat);
1666
+ if ($scope.formatOutput) _start = _start.format(params.modelFormat);
1664
1667
  $scope.modelStart = _start;
1665
1668
 
1666
1669
  } else {
@@ -1687,9 +1690,9 @@ angular.module('niceElements')
1687
1690
  }
1688
1691
 
1689
1692
  // initialize dateEnd
1690
- if (typeof($scope.modelEnd) === 'undefined' || $scope.modelEnd === null) {
1693
+ if (typeof ($scope.modelEnd) === 'undefined' || $scope.modelEnd === null) {
1691
1694
  var _end = moment();
1692
- if($scope.formatOutput) _end = _end.format(params.modelFormat);
1695
+ if ($scope.formatOutput) _end = _end.format(params.modelFormat);
1693
1696
  $scope.modelEnd = _end;
1694
1697
 
1695
1698
  } else {
@@ -1758,14 +1761,14 @@ angular.module('niceElements')
1758
1761
  }
1759
1762
  };
1760
1763
 
1761
- $scope.okClick = function(){
1764
+ $scope.okClick = function () {
1762
1765
  setLabelValue();
1763
1766
  var _start = moment($scope.internalStart, params.modelFormat);
1764
- if($scope.formatOutput) _start = _start.format(params.modelFormat);
1767
+ if ($scope.formatOutput) _start = _start.format(params.modelFormat);
1765
1768
  $scope.modelStart = _start;
1766
1769
 
1767
1770
  var _end = moment($scope.internalEnd, params.modelFormat);
1768
- if($scope.formatOutput) _end = _end.format(params.modelFormat);
1771
+ if ($scope.formatOutput) _end = _end.format(params.modelFormat);
1769
1772
  $scope.modelEnd = _end;
1770
1773
 
1771
1774
  //$scope.modelStart = angular.copy($scope.internalStart);
@@ -1775,21 +1778,21 @@ angular.module('niceElements')
1775
1778
  if ($scope.onChange) $scope.onChange({ modelStart: $scope.modelStart, modelEnd: $scope.modelEnd });
1776
1779
  };
1777
1780
 
1778
- $scope.cancelClick = function(){
1781
+ $scope.cancelClick = function () {
1779
1782
  $scope.showDtpRange = false;
1780
1783
  //$scope.internalStart = angular.copy($scope.modelStart);
1781
1784
  //$scope.internalEnd = angular.copy($scope.modelEnd);
1782
1785
  var _start = moment($scope.modelStart);
1783
- if($scope.formatOutput) _start = _start.format(params.modelFormat);
1786
+ if ($scope.formatOutput) _start = _start.format(params.modelFormat);
1784
1787
  var _end = moment($scope.modelEnd);
1785
- if($scope.formatOutput) _end = _end.format(params.modelFormat);
1788
+ if ($scope.formatOutput) _end = _end.format(params.modelFormat);
1786
1789
 
1787
1790
  $scope.internalStart = _start;
1788
1791
  $scope.internalEnd = _end;
1789
1792
  setLabelValue();
1790
1793
  };
1791
1794
 
1792
- $scope.selectLastNDays = function(days){
1795
+ $scope.selectLastNDays = function (days) {
1793
1796
  $scope.dateStart = moment().subtract(days, 'days');
1794
1797
  $scope.dateEnd = moment();
1795
1798
  $scope.internalStart = $scope.dateStart;
@@ -1797,7 +1800,7 @@ angular.module('niceElements')
1797
1800
  setLabelValue();
1798
1801
  };
1799
1802
 
1800
- $scope.selectLastMonth = function(){
1803
+ $scope.selectLastMonth = function () {
1801
1804
  $scope.dateStart = moment().subtract(1, 'months');
1802
1805
  $scope.dateEnd = moment();
1803
1806
  $scope.internalStart = $scope.dateStart;
@@ -1805,7 +1808,7 @@ angular.module('niceElements')
1805
1808
  setLabelValue();
1806
1809
  };
1807
1810
 
1808
- $scope.selectThisMonth = function(){
1811
+ $scope.selectThisMonth = function () {
1809
1812
  $scope.dateStart = moment().date(1).hours(0).minutes(0).seconds(0).milliseconds(0);
1810
1813
  $scope.dateEnd = moment().endOf('month');
1811
1814
  $scope.internalStart = $scope.dateStart;
@@ -1825,7 +1828,7 @@ angular.module('niceElements')
1825
1828
  setLabelValue();
1826
1829
  });
1827
1830
 
1828
- $scope.$watchGroup(['modelStart', 'modelEnd'], function(){
1831
+ $scope.$watchGroup(['modelStart', 'modelEnd'], function () {
1829
1832
  initCurrentDates();
1830
1833
  });
1831
1834
 
@@ -1986,7 +1989,7 @@ angular.module('niceElements')
1986
1989
  objKey: '@?', // Optional - default is 'id'. Used only when returnOnlyKey=true
1987
1990
  selectedIsObj: '@', // Optional parameter.
1988
1991
  nullable: '@', // No selection is possible
1989
- required: '@', // Model cannot be NULL
1992
+ required: '=', // Model cannot be NULL
1990
1993
  showTax: '@', // Shows tax rate
1991
1994
  noMargin: '@', // margin-bottom: 0px
1992
1995
  multiple: '@', // Can select multiple items
@@ -2321,7 +2324,7 @@ angular.module('niceElements')
2321
2324
  objKey: '@?', // Optional - default is 'id'. Used only when returnOnlyKey=true.
2322
2325
  selectedIsKey: '@?',
2323
2326
  nullable: '@', // No selection is possible
2324
- required: '@', // Model cannot be NULL
2327
+ required: '=', // Model cannot be NULL
2325
2328
  noMargin: '@', // margin-bottom: 0px
2326
2329
  multiple: '@', // Can select multiple items
2327
2330
  help: '@',
@@ -2348,7 +2351,6 @@ angular.module('niceElements')
2348
2351
  if (!$scope.selectedText) { $scope.selectedText = gettextCatalog.getString("selected", null, "Nice"); }
2349
2352
  if (!$scope.addButtonFunction) { $scope.addButtonFunction = null; }
2350
2353
  $scope.nullable = $scope.nullable === 'true' || $scope.nullable === true;
2351
- $scope.required = $scope.required === 'true' || $scope.required === true;
2352
2354
  $scope.noMargin = $scope.noMargin === 'true' || $scope.noMargin === true;
2353
2355
  $scope.multiple = $scope.multiple === 'true' || $scope.multiple === true;
2354
2356
  $scope.clearOnSelect = $scope.clearOnSelect === 'true' || $scope.clearOnSelect === true;
@@ -3524,6 +3526,7 @@ angular.module('niceElements')
3524
3526
  return {
3525
3527
  templateUrl: 'src/components/nice-help/nice-help.html',
3526
3528
  restrict: 'E',
3529
+ replace: true,
3527
3530
  scope: {
3528
3531
  text: '@'
3529
3532
  },
@@ -3938,12 +3941,12 @@ angular.module('niceElements')
3938
3941
  scope: {
3939
3942
  model: '=',
3940
3943
  valid: '=',
3941
- disabled: '=',
3944
+ isDisabled: '=',
3942
3945
  title: '@?',
3943
3946
  min: '@',
3944
3947
  max: '@',
3945
3948
  defaultValue: '@',
3946
- required: '@',
3949
+ required: '=',
3947
3950
  fieldWidth: '@',
3948
3951
  labelWidth: '@',
3949
3952
  hideError: '@',
@@ -3958,7 +3961,7 @@ angular.module('niceElements')
3958
3961
  onChange: '&?'
3959
3962
  },
3960
3963
 
3961
- controller: function($scope, $timeout) {
3964
+ controller: function ($scope, $timeout) {
3962
3965
  $scope.canAdd = true;
3963
3966
  $scope.canSubstract = true;
3964
3967
  $scope.preventZero = $scope.preventZero == "true";
@@ -3999,7 +4002,7 @@ angular.module('niceElements')
3999
4002
  if (!$scope.model) {
4000
4003
  $scope.model = $scope.defaultValue;
4001
4004
  } else {
4002
- if(parseFloat($scope.model)) {
4005
+ if (parseFloat($scope.model)) {
4003
4006
  $scope.model = parseFloat($scope.model);
4004
4007
  } else {
4005
4008
  $scope.model = $scope.defaultValue;
@@ -4007,7 +4010,7 @@ angular.module('niceElements')
4007
4010
  }
4008
4011
 
4009
4012
  // Check canAdd or canSubtract
4010
- $scope.check = function() {
4013
+ $scope.check = function () {
4011
4014
  if ($scope.required && ($scope.model == undefined || $scope.model == null)) {
4012
4015
  $scope.niceNumberForm.$setValidity("no-value", false);
4013
4016
  } else {
@@ -4039,25 +4042,25 @@ angular.module('niceElements')
4039
4042
 
4040
4043
 
4041
4044
  // Check when load
4042
- $timeout(function() {
4045
+ $timeout(function () {
4043
4046
  $scope.check();
4044
4047
  });
4045
4048
 
4046
4049
 
4047
4050
  // On input change
4048
- $scope.inputChanged = function() {
4051
+ $scope.inputChanged = function () {
4049
4052
  $scope.check();
4050
4053
  };
4051
-
4054
+
4052
4055
 
4053
4056
  // Watch for model change
4054
- $scope.$watch("model", function() {
4057
+ $scope.$watch("model", function () {
4055
4058
  $scope.check();
4056
4059
  });
4057
4060
 
4058
4061
 
4059
4062
  // Add to the value
4060
- $scope.add = function() {
4063
+ $scope.add = function () {
4061
4064
  var result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).plus($scope.step).toNumber(); //.toFixed($scope.decimals);
4062
4065
  if ($scope.max) {
4063
4066
  if (result <= parseFloat($scope.max)) {
@@ -4073,7 +4076,7 @@ angular.module('niceElements')
4073
4076
 
4074
4077
 
4075
4078
  // Subtract to the value
4076
- $scope.subtract = function() {
4079
+ $scope.subtract = function () {
4077
4080
  var result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).minus($scope.step).toNumber();
4078
4081
  if (result >= Number($scope.min)) {
4079
4082
  $scope.model = result;
@@ -4104,7 +4107,7 @@ angular.module('niceElements')
4104
4107
  valid: '=',
4105
4108
  isDisabled: '=',
4106
4109
  title: '@?',
4107
- required: '@',
4110
+ required: '=',
4108
4111
  fieldWidth: '@',
4109
4112
  labelWidth: '@',
4110
4113
  placeholder: '@',
@@ -4123,27 +4126,27 @@ angular.module('niceElements')
4123
4126
  attrs.noMargin = angular.isDefined(attrs.noMargin);
4124
4127
  },
4125
4128
 
4126
- controller: function($rootScope, $scope) {
4129
+ controller: function ($rootScope, $scope) {
4127
4130
  // Link form object with valid object
4128
- if (angular.isDefined($scope.valid)){
4131
+ if (angular.isDefined($scope.valid)) {
4129
4132
  $scope.valid = $scope.form;
4130
4133
  }
4131
4134
 
4132
- var roundN = function(number, decimals){
4135
+ var roundN = function (number, decimals) {
4133
4136
  return Number(new Decimal(String(number)).toFixed(decimals, 4));
4134
4137
  };
4135
4138
 
4136
- if (angular.isDefined($scope.model)){
4139
+ if (angular.isDefined($scope.model)) {
4137
4140
  $scope.internalModel = roundN((angular.copy($scope.model) * 100), 6);
4138
4141
  } else {
4139
4142
  $scope.internalModel = "0";
4140
4143
  $scope.model = 0;
4141
4144
  }
4142
4145
 
4143
- $scope.change = function(){
4144
- if($scope.internalModel){
4146
+ $scope.change = function () {
4147
+ if ($scope.internalModel) {
4145
4148
  $scope.internalModel = String($scope.internalModel).replace(',', '.');
4146
- if(parseFloat($scope.internalModel) > 100) $scope.internalModel = 100;
4149
+ if (parseFloat($scope.internalModel) > 100) $scope.internalModel = 100;
4147
4150
  $scope.model = roundN(parseFloat($scope.internalModel) / 100, 6);
4148
4151
  } else {
4149
4152
  $scope.model = 0;
@@ -4151,9 +4154,9 @@ angular.module('niceElements')
4151
4154
  if ($scope.onChange) $scope.onChange({ model: $scope.model });
4152
4155
  };
4153
4156
 
4154
- $scope.keypress = function(event) {
4157
+ $scope.keypress = function (event) {
4155
4158
  if (event.charCode == 46 || event.charCode == 44) { // Handle "." and "," key (only one allowed)
4156
- if($scope.internalModel.indexOf(".") >= 0){
4159
+ if ($scope.internalModel.indexOf(".") >= 0) {
4157
4160
  event.preventDefault();
4158
4161
  return false;
4159
4162
  }
@@ -4166,13 +4169,13 @@ angular.module('niceElements')
4166
4169
  };
4167
4170
 
4168
4171
  $scope.$watch('model', function (value_new, value_old) {
4169
- if (value_new){
4172
+ if (value_new) {
4170
4173
  $scope.internalModel = roundN(angular.copy($scope.model) * 100, 6);
4171
4174
  }
4172
4175
  });
4173
4176
 
4174
4177
  $scope.$watch('internalModel', function (value_new, value_old) {
4175
- if(!$scope.internalModel){
4178
+ if (!$scope.internalModel) {
4176
4179
  $scope.internalModel = "0";
4177
4180
  }
4178
4181
  });
@@ -4435,7 +4438,7 @@ angular.module('niceElements')
4435
4438
  isDisabled: '=',
4436
4439
  title: '@?',
4437
4440
  placeholder: '@',
4438
- required: '@',
4441
+ required: '=',
4439
4442
  fieldWidth: '@',
4440
4443
  labelWidth: '@',
4441
4444
  hideValid: '@',
@@ -4476,38 +4479,38 @@ angular.module('niceElements')
4476
4479
  // });
4477
4480
 
4478
4481
  // Set default text
4479
- scope.$watch("setText", function(){
4482
+ scope.$watch("setText", function () {
4480
4483
  scope.modelString = scope.setText;
4481
4484
  });
4482
4485
 
4483
4486
  // Check if object is defined
4484
- if(angular.isDefined(scope.model)){
4487
+ if (angular.isDefined(scope.model)) {
4485
4488
  if (angular.isDefined(scope.keyForInputLabel))
4486
4489
  scope.modelString = scope.model[scope.keyForInputLabel];
4487
4490
  else
4488
4491
  scope.modelString = scope.model;
4489
4492
  }
4490
4493
 
4491
- var setValid = function(isValid){
4492
- if(scope.required){
4494
+ var setValid = function (isValid) {
4495
+ if (scope.required) {
4493
4496
  scope.form.$setValidity('objectSelected', isValid);
4494
4497
  }
4495
4498
  };
4496
4499
 
4497
- scope.$watch('model', function(newValue){
4498
- if(scope.model && scope.model.id){
4500
+ scope.$watch('model', function (newValue) {
4501
+ if (scope.model && scope.model.id) {
4499
4502
  setValid(true);
4500
4503
  } else {
4501
4504
  setValid(false);
4502
4505
  }
4503
4506
  });
4504
4507
 
4505
- scope.selectRow = function(obj){
4506
- if (angular.isDefined(scope.refreshSelectedCallback)){
4508
+ scope.selectRow = function (obj) {
4509
+ if (angular.isDefined(scope.refreshSelectedCallback)) {
4507
4510
  scope.refreshSelectedCallback(obj);
4508
4511
  }
4509
4512
 
4510
- if (scope.resetSearchInput){
4513
+ if (scope.resetSearchInput) {
4511
4514
  scope.model = null;
4512
4515
  } else {
4513
4516
  scope.model = obj;
@@ -4522,10 +4525,10 @@ angular.module('niceElements')
4522
4525
 
4523
4526
  };
4524
4527
 
4525
- scope.clear = function(){
4528
+ scope.clear = function () {
4526
4529
  scope.results = [];
4527
4530
 
4528
- if(scope.clearInput){
4531
+ if (scope.clearInput) {
4529
4532
  scope.modelString = "";
4530
4533
  }
4531
4534
 
@@ -4533,7 +4536,7 @@ angular.module('niceElements')
4533
4536
  };
4534
4537
 
4535
4538
  // Close the dropdown if clicked outside
4536
- var onClick = function(event){
4539
+ var onClick = function (event) {
4537
4540
  var isClickedElementChildOfPopup = element.find(event.target).length > 0;
4538
4541
 
4539
4542
  if (isClickedElementChildOfPopup) return;
@@ -4546,24 +4549,24 @@ angular.module('niceElements')
4546
4549
  angular.element(element).on('click', onClick);
4547
4550
 
4548
4551
  // Keyboard up/down on search results
4549
- var onKeyDown = function(event) {
4550
- if((event.keyCode == 38 || event.keyCode == 40 || event.keyCode == 13 || event.keyCode == 27) && scope.results && scope.results.length>0){
4552
+ var onKeyDown = function (event) {
4553
+ if ((event.keyCode == 38 || event.keyCode == 40 || event.keyCode == 13 || event.keyCode == 27) && scope.results && scope.results.length > 0) {
4551
4554
  event.preventDefault();
4552
4555
 
4553
- if(event.keyCode == 27){ // Escape
4556
+ if (event.keyCode == 27) { // Escape
4554
4557
  scope.modelString = "";
4555
4558
  scope.clear();
4556
4559
  }
4557
4560
 
4558
- if(event.keyCode == 13){ // Enter
4561
+ if (event.keyCode == 13) { // Enter
4559
4562
  scope.selectRow(scope.results[scope.selectedIndex]);
4560
4563
  }
4561
4564
 
4562
- if(event.keyCode == 40 && scope.results && scope.selectedIndex+1 < scope.results.length){ // Down
4565
+ if (event.keyCode == 40 && scope.results && scope.selectedIndex + 1 < scope.results.length) { // Down
4563
4566
  scope.selectedIndex += 1;
4564
4567
  }
4565
4568
 
4566
- if(event.keyCode == 38 && scope.results && scope.selectedIndex-1 >= 0){ // Up
4569
+ if (event.keyCode == 38 && scope.results && scope.selectedIndex - 1 >= 0) { // Up
4567
4570
  scope.selectedIndex -= 1;
4568
4571
  }
4569
4572
 
@@ -4581,13 +4584,13 @@ angular.module('niceElements')
4581
4584
  });
4582
4585
 
4583
4586
  },
4584
- controller: function($scope, $timeout, $element) {
4587
+ controller: function ($scope, $timeout, $element) {
4585
4588
  $scope.id = Math.random().toString(36).substring(7);
4586
4589
  $scope.loading = false;
4587
4590
  $scope.noResults = false;
4588
4591
  $scope.requests = 0;
4589
4592
 
4590
- $scope.focus = function() {
4593
+ $scope.focus = function () {
4591
4594
  var input = $element[0].getElementsByTagName('input')[0];
4592
4595
  if (input) {
4593
4596
  input.focus();
@@ -4600,14 +4603,14 @@ angular.module('niceElements')
4600
4603
  }
4601
4604
 
4602
4605
  $scope.results = [];
4603
- var updateList = function(results, requestNumber){
4606
+ var updateList = function (results, requestNumber) {
4604
4607
 
4605
- if(results){
4606
- if ($scope.requests == requestNumber){
4608
+ if (results) {
4609
+ if ($scope.requests == requestNumber) {
4607
4610
  $scope.noResults = results.length == 0;
4608
4611
  $scope.results = results;
4609
4612
 
4610
- if(!$scope.noResults){
4613
+ if (!$scope.noResults) {
4611
4614
  $scope.selectedIndex = 0;
4612
4615
  }
4613
4616
  }
@@ -4622,13 +4625,13 @@ angular.module('niceElements')
4622
4625
  if ($scope.timer_promise)
4623
4626
  $timeout.cancel($scope.timer_promise);
4624
4627
 
4625
- $scope.timer_promise = $timeout(function() {
4628
+ $scope.timer_promise = $timeout(function () {
4626
4629
  if ($scope.onChange) $scope.onChange({ model: $scope.model, modelString: $scope.modelString });
4627
4630
  $scope.requests = $scope.requests + 1;
4628
4631
  var requestNumber = angular.copy($scope.requests);
4629
- $scope.refreshFunction($scope.modelString).then(function(response){
4632
+ $scope.refreshFunction($scope.modelString).then(function (response) {
4630
4633
  updateList(response, requestNumber);
4631
- }, function(error){
4634
+ }, function (error) {
4632
4635
  $scope.loading = false;
4633
4636
  });
4634
4637
  // Why was this here?
@@ -4638,9 +4641,9 @@ angular.module('niceElements')
4638
4641
  };
4639
4642
 
4640
4643
  // If search button is clicked set focus or make request
4641
- $scope.search = function(){
4642
- if (!$scope.isDisabled){
4643
- if($scope.showDropdown) {
4644
+ $scope.search = function () {
4645
+ if (!$scope.isDisabled) {
4646
+ if ($scope.showDropdown) {
4644
4647
  $scope.updateSearch();
4645
4648
  }
4646
4649
  $scope.focus();
@@ -4648,7 +4651,7 @@ angular.module('niceElements')
4648
4651
  };
4649
4652
 
4650
4653
  // Clear model
4651
- $scope.remove = function(){
4654
+ $scope.remove = function () {
4652
4655
  $scope.model = null;
4653
4656
  $scope.modelString = null;
4654
4657
  }
@@ -4937,7 +4940,7 @@ angular.module('niceElements')
4937
4940
  link: function postLink(scope, element, attrs) {
4938
4941
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
4939
4942
  if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
4940
- if (!attrs.title) { attrs.labelWidth = ''; }
4943
+ if (!attrs.title) { attrs.title = ' '; }
4941
4944
  }
4942
4945
  };
4943
4946
  });
@@ -5045,6 +5048,28 @@ angular.module('niceElements')
5045
5048
  });
5046
5049
  'use strict';
5047
5050
 
5051
+ /**
5052
+ * @ngdoc directive
5053
+ * @name niceElements.directive:niceTitle
5054
+ * @description
5055
+ * # niceTitle
5056
+ */
5057
+ angular.module('niceElements')
5058
+ .directive('niceTitle', function () {
5059
+ return {
5060
+ templateUrl: 'src/components/nice-title/nice-title.html',
5061
+ restrict: 'E',
5062
+ scope: {
5063
+ labelWidth: '=?',
5064
+ title: '=?',
5065
+ required: '=?',
5066
+ help: '=?'
5067
+ }
5068
+ };
5069
+ });
5070
+
5071
+ 'use strict';
5072
+
5048
5073
  /**
5049
5074
  * @ngdoc directive
5050
5075
  * @name niceElements.directive:niceToast
@@ -5455,18 +5480,15 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5455
5480
  $templateCache.put('src/components/nice-calendar/nice-calendar.html',
5456
5481
  "<div class=\"nice-component nice-calendar\" ng-form=\"formCalendar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5457
5482
  "<div class=\"row\">\n" +
5458
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5459
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5460
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5461
- "</div>\n" +
5483
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5462
5484
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5463
5485
  "<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
5464
5486
  "<div class=\"nice-calendar-wrapper\">\n" +
5465
5487
  "<div class=\"nice-calendar-weeks\">\n" +
5466
5488
  "<div class=\"header\">\n" +
5467
- "<button class=\"btn\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5489
+ "<button class=\"btn\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5468
5490
  "<span title=\"{{ month.format('M.YYYY' )}}\">{{ month.format(\"MMMM, YYYY\" )}}</span>\n" +
5469
- "<button class=\"btn\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5491
+ "<button class=\"btn\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5470
5492
  "</div>\n" +
5471
5493
  "<div class=\"week names\">\n" +
5472
5494
  "<span class=\"day\" translate translate-context=\"Nice\">Mon</span>\n" +
@@ -5492,7 +5514,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5492
5514
  " (color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||\n" +
5493
5515
  " (color && isSameDay(day.date, startDate)) && {'background-color': color } ||\n" +
5494
5516
  " (color && isSameDay(day.date, endDate)) && {'background-color': color }\n" +
5495
- " \" ng-click=\"select(day)\" ng-repeat=\"day in week.days\">\n" +
5517
+ " \" ng-click=\"select(day)\" ng-repeat=\"day in week.days\" ng-disabled=\"isDisabled\">\n" +
5496
5518
  "{{ day.number }}\n" +
5497
5519
  "<p class=\"popup\" ng-if=\"!hideHover\">{{ popupText }}</p>\n" +
5498
5520
  "</button>\n" +
@@ -5500,22 +5522,22 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5500
5522
  "</div>\n" +
5501
5523
  "<div class=\"nice-calendar-time\" ng-if=\"time\">\n" +
5502
5524
  "<div class=\"time-picker\">\n" +
5503
- "<select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-hour\" ng-model=\"startDateHour\" ng-change=\"startHourChange(startDateHour)\" ng-options=\"hour for hour in hours\">\n" +
5525
+ "<select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-hour\" ng-model=\"startDateHour\" ng-change=\"startHourChange(startDateHour)\" ng-options=\"hour for hour in hours\" ng-disabled=\"isDisabled\">\n" +
5504
5526
  "</select>\n" +
5505
5527
  "</div>\n" +
5506
5528
  "<div class=\"time-picker\">\n" +
5507
- "<select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-minute\" ng-model=\"startDateMinute\" ng-change=\"startMinuteChange(startDateMinute)\" ng-options=\"minute for minute in minutes\">\n" +
5529
+ "<select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-minute\" ng-model=\"startDateMinute\" ng-change=\"startMinuteChange(startDateMinute)\" ng-options=\"minute for minute in minutes\" ng-disabled=\"isDisabled\">\n" +
5508
5530
  "</select>\n" +
5509
5531
  "</div>\n" +
5510
5532
  "<div class=\"time-picker-icon\">\n" +
5511
5533
  "<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
5512
5534
  "</div>\n" +
5513
5535
  "<div class=\"time-picker\">\n" +
5514
- "<select title=\"{{ 'Select end time' | translate:'Nice' }}\" class=\"time-picker-hour\" ng-model=\"endDateHour\" ng-change=\"endHourChange(endDateHour)\" ng-options=\"hour for hour in hours\">\n" +
5536
+ "<select title=\"{{ 'Select end time' | translate:'Nice' }}\" class=\"time-picker-hour\" ng-model=\"endDateHour\" ng-change=\"endHourChange(endDateHour)\" ng-options=\"hour for hour in hours\" ng-disabled=\"isDisabled\">\n" +
5515
5537
  "</select>\n" +
5516
5538
  "</div>\n" +
5517
5539
  "<div class=\"time-picker no-border-right\">\n" +
5518
- "<select title=\"{{ 'Select end time' | translate:'Nice' }}\" class=\"time-picker-minute\" ng-model=\"endDateMinute\" ng-change=\"endMinuteChange(endDateMinute)\" ng-options=\"minute for minute in minutes\">\n" +
5540
+ "<select title=\"{{ 'Select end time' | translate:'Nice' }}\" class=\"time-picker-minute\" ng-model=\"endDateMinute\" ng-change=\"endMinuteChange(endDateMinute)\" ng-options=\"minute for minute in minutes\" ng-disabled=\"isDisabled\">\n" +
5519
5541
  "</select>\n" +
5520
5542
  "</div>\n" +
5521
5543
  "</div>\n" +
@@ -5549,14 +5571,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5549
5571
  $templateCache.put('src/components/nice-choice/nice-choice.html',
5550
5572
  "<div class=\"nice-component nice-choice\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formChoice\">\n" +
5551
5573
  "<div class=\"row\">\n" +
5552
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5553
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5554
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5555
- "</div>\n" +
5574
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5556
5575
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
5557
5576
  "<ul class=\"list-unstyled\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
5558
5577
  "<li ng-repeat=\"item in internalList\" ng-class=\"{ 'selected' : isItemSelected(item) }\" ng-click=\"toggle(item)\">\n" +
5559
- "<button class=\"choice-checkbox\" ng-class=\"{'circle' : !multiple }\">\n" +
5578
+ "<button class=\"choice-checkbox\" ng-class=\"{'circle' : !multiple }\" ng-disabled=\"isDisabled\">\n" +
5560
5579
  "<nice-icon icon=\"icon-check\"></nice-icon>\n" +
5561
5580
  "</button>\n" +
5562
5581
  "<div ng-transclude class=\"choice-label\">{{ getLabel(item) }}</div>\n" +
@@ -5571,25 +5590,19 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5571
5590
  $templateCache.put('src/components/nice-comment/nice-comment.html',
5572
5591
  "<div class=\"nice-component nice-comment\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
5573
5592
  "<div class=\"row\">\n" +
5574
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5575
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5576
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5593
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5594
+ "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" ng-click=\"edit()\">\n" +
5595
+ "<textarea ng-class=\"{'editing': editing}\" class=\"form-control\" ng-model=\"model\" placeholder=\"{{placeholder}}\" rows=\"{{rows}}\" ng-blur=\"save()\" ng-disabled=\"isDisabled\"></textarea>\n" +
5577
5596
  "</div>\n" +
5578
- "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\" ng-click=\"edit()\">\n" +
5579
- "<textarea ng-class=\"{'editing': editing}\" class=\"form-control\" ng-model=\"model\" placeholder=\"{{placeholder}}\" rows=\"{{rows}}\" ng-blur=\"save()\"></textarea>\n" +
5580
5597
  "</div>\n" +
5581
- "</div>\n" +
5582
- "</div>\n"
5598
+ "</div>"
5583
5599
  );
5584
5600
 
5585
5601
 
5586
5602
  $templateCache.put('src/components/nice-date-input/nice-date-input.html',
5587
5603
  "<div class=\"nice-component nice-date-input\" ng-form=\"niceDateInputForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline, 'error': niceDateInputForm.$invalid }\">\n" +
5588
5604
  "<div class=\"row\">\n" +
5589
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5590
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5591
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5592
- "</div>\n" +
5605
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5593
5606
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5594
5607
  "<div class=\"input-group nice-date-input\" ng-show=\"date\" ng-class=\"{ 'has-warning': !disabled && niceDateInputForm.$invalid && niceDateInputForm.$dirty }\">\n" +
5595
5608
  "<input type=\"text\" class=\"form-control\" ng-model=\"modelDate\" ng-blur=\"dateBlur($event)\" ng-disabled=\"isDisabled\">\n" +
@@ -5626,10 +5639,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5626
5639
  $templateCache.put('src/components/nice-date-range/nice-date-range.html',
5627
5640
  "<ng-form class=\"nice-component nice-date-range\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
5628
5641
  "<div class=\"row\">\n" +
5629
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5630
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5631
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5632
- "</div>\n" +
5642
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5633
5643
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
5634
5644
  "<div class=\"input-group\">\n" +
5635
5645
  "<input date-range-picker class=\"form-control date-picker\" type=\"text\" options=\"opts\" ng-model=\"model\">\n" +
@@ -5647,14 +5657,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5647
5657
  "<div class=\"nice-component nice-date\" ng-form=\"forma\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5648
5658
  "<div class=\"nice-date-background\" ng-click=\"toggleOpen()\" ng-if=\"isOpen && !inline\"></div>\n" +
5649
5659
  "<div class=\"row\">\n" +
5650
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5651
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5652
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5653
- "</div>\n" +
5660
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5654
5661
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5655
5662
  "<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
5656
5663
  "<div class=\"nice-date-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-show=\"!inline\" ng-click=\"toggleOpen()\">\n" +
5657
- "<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\">\n" +
5664
+ "<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
5658
5665
  "<span class=\"input-group-addon clickable\">\n" +
5659
5666
  "<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
5660
5667
  "</span>\n" +
@@ -5664,14 +5671,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5664
5671
  "<div class=\"nice-date-date\" ng-if=\"date\" role=\"grid\">\n" +
5665
5672
  "<div class=\"nice-date-header\">\n" +
5666
5673
  "<span>\n" +
5667
- "<select class=\"year-picker\" ng-model=\"innerDate.year\" ng-change=\"handleDateChange()\" ng-options=\"year for year in years\">\n" +
5674
+ "<select class=\"year-picker\" ng-model=\"innerDate.year\" ng-change=\"handleDateChange()\" ng-options=\"year for year in years\" ng-disabled=\"isDisabled\">\n" +
5668
5675
  "</select>,\n" +
5669
- "<select class=\"month-picker\" ng-model=\"innerDate.month\" ng-change=\"handleDateChange()\" ng-options=\"month.value as month.name for month in months\">\n" +
5676
+ "<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" +
5670
5677
  "</select>\n" +
5671
5678
  "</span>\n" +
5672
- "<button class=\"btn btn-default-naked\" ng-click=\"previous()\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5673
- "<button class=\"btn btn-default-naked\" ng-click=\"today()\"><i class=\"fa fa-circle\"></i></button>\n" +
5674
- "<button class=\"btn btn-default-naked\" ng-click=\"next()\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5679
+ "<button class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"previous()\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5680
+ "<button class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"today()\"><i class=\"fa fa-circle\"></i></button>\n" +
5681
+ "<button class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"next()\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5675
5682
  "</div>\n" +
5676
5683
  "<div class=\"nice-date-week names\">\n" +
5677
5684
  "<span class=\"nice-date-day\" ng-class=\"{ 'weekend': $index == 6 || $index == 5 }\" ng-repeat=\"day in weekdays\">{{ day }}</span>\n" +
@@ -5684,7 +5691,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5684
5691
  " 'weekend': day.isWeekday,\n" +
5685
5692
  " 'disabled': day.isDisabled,\n" +
5686
5693
  " 'between': isBetween(day.date, model, nextDate)\n" +
5687
- " }\" ng-click=\"select(day)\" ng-repeat=\"day in week.days\">\n" +
5694
+ " }\" ng-click=\"select(day)\" ng-repeat=\"day in week.days\" ng-disabled=\"isDisabled\">\n" +
5688
5695
  "{{ day.number }}\n" +
5689
5696
  "</button>\n" +
5690
5697
  "</div>\n" +
@@ -5692,11 +5699,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5692
5699
  "<div class=\"nice-date-time\" ng-if=\"time\">\n" +
5693
5700
  "<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
5694
5701
  "<div class=\"time-picker time-picker-hour\">\n" +
5695
- "<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.hour\" ng-change=\"timeChange()\" ng-options=\"hour as hour for hour in hours track by hour\"></select>\n" +
5702
+ "<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.hour\" ng-change=\"timeChange()\" ng-options=\"hour as hour for hour in hours track by hour\" ng-disabled=\"isDisabled\"></select>\n" +
5696
5703
  "</div>\n" +
5697
5704
  "<div class=\"divider\">:</div>\n" +
5698
5705
  "<div class=\"time-picker time-picker-minute\">\n" +
5699
- "<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.minute\" ng-change=\"timeChange()\" ng-options=\"minute as minute for minute in minutes track by minute\"></select>\n" +
5706
+ "<select ng-disabled=\"isDisabled\" ng-model=\"innerDate.minute\" ng-change=\"timeChange()\" ng-options=\"minute as minute for minute in minutes track by minute\" ng-disabled=\"isDisabled\"></select>\n" +
5700
5707
  "</div>\n" +
5701
5708
  "</div>\n" +
5702
5709
  "</div>\n" +
@@ -5711,10 +5718,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5711
5718
  "<div class=\"nice-component nice-datetime-picker\" name=\"form\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5712
5719
  "<div class=\"nice-dtp-background\" ng-click=\"closeDtp(true)\" ng-if=\"isOpen\"></div>\n" +
5713
5720
  "<div class=\"row\">\n" +
5714
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5715
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5716
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5717
- "</div>\n" +
5721
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5718
5722
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5719
5723
  "<div ng-form=\"formDatetimePicker\"></div>\n" +
5720
5724
  "<div class=\"input-group\" id=\"dropdown{{randNum}}\">\n" +
@@ -5737,13 +5741,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5737
5741
  "<div class=\"nice-component nice-datetimerange-picker-2\" ng-form=\"formDateRangePicker\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5738
5742
  "<div class=\"nice-dtp-background\" ng-click=\"close()\" ng-if=\"isOpen\"></div>\n" +
5739
5743
  "<div class=\"row\">\n" +
5740
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5741
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5742
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5743
- "</div>\n" +
5744
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5744
5745
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5745
5746
  "<div class=\"nice-daterange-picker-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-click=\"open()\">\n" +
5746
- "<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\">\n" +
5747
+ "<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
5747
5748
  "<span class=\"input-group-addon clickable\">\n" +
5748
5749
  "<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
5749
5750
  "</span>\n" +
@@ -5780,16 +5781,13 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5780
5781
  "<div class=\"nice-component nice-datetime-picker nice-datetimerange-picker\" name=\"form\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5781
5782
  "<div class=\"nice-dtp-background\" ng-click=\"cancelClick()\" ng-if=\"showDtpRange\"></div>\n" +
5782
5783
  "<div class=\"row\">\n" +
5783
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5784
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5785
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5786
- "</div>\n" +
5784
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5787
5785
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5788
5786
  "<div ng-form=\"formDatetimeRangePicker\"></div>\n" +
5789
5787
  "<div class=\"dropdown\">\n" +
5790
5788
  "<div class=\"dropdown-toggle\" id=\"dropdown{{randNum}}\" role=\"button\" ng-click=\"openDtpRange()\">\n" +
5791
5789
  "<div class=\"input-group\">\n" +
5792
- "<input type=\"text\" class=\"form-control\" value=\"{{value}}\" ng-click=\"openDtpRange()\">\n" +
5790
+ "<input type=\"text\" class=\"form-control\" value=\"{{value}}\" ng-disabled=\"isDisabled\" ng-click=\"openDtpRange()\">\n" +
5793
5791
  "<span class=\"input-group-addon clickable\">\n" +
5794
5792
  "<nice-icon ng-if=\"date != 'false'\" icon=\"icon-calendar\"></nice-icon>\n" +
5795
5793
  "<nice-icon ng-if=\"date == 'false'\" icon=\"icon-clock\"></nice-icon>\n" +
@@ -5826,10 +5824,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5826
5824
  $templateCache.put('src/components/nice-dropdown-date/nice-dropdown-date.html',
5827
5825
  "<div class=\"nice-component nice-dropdown-date\" ng-form=\"dropdownDateForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5828
5826
  "<div class=\"row\">\n" +
5829
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5830
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5831
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5832
- "</div>\n" +
5827
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5833
5828
  "<div class=\"nice-field col-xs-12\" ng-class=\"[\n" +
5834
5829
  " fieldWidth ? fieldWidth : 'col-sm-8',\n" +
5835
5830
  " {\n" +
@@ -5850,17 +5845,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5850
5845
  "</div>\n" +
5851
5846
  "</div>\n" +
5852
5847
  "</div>\n" +
5853
- "</div>\n"
5848
+ "</div>"
5854
5849
  );
5855
5850
 
5856
5851
 
5857
5852
  $templateCache.put('src/components/nice-dropdown-old/nice-dropdown-old.html',
5858
5853
  "<div class=\"nice-component nice-dropdown-old\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5859
5854
  "<div class=\"row\">\n" +
5860
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5861
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5862
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5863
- "</div>\n" +
5855
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5864
5856
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
5865
5857
  "<div ng-class=\"addButtonEnable && !isDisabled ? 'input-group': ''\">\n" +
5866
5858
  "<div class=\"btn-group\" dropdown is-open=\"status.isopen\" ng-class=\"{ 'disabled': isDisabled || emptyList }\">\n" +
@@ -5898,10 +5890,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5898
5890
  $templateCache.put('src/components/nice-dropdown/nice-dropdown.html',
5899
5891
  "<div class=\"nice-component nice-dropdown\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5900
5892
  "<div class=\"row\">\n" +
5901
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5902
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5903
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5904
- "</div>\n" +
5893
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5905
5894
  "<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" +
5906
5895
  "<div class=\"nice-field-wrapper\">\n" +
5907
5896
  "<button type=\"button\" class=\"btn btn-dropdown\" ng-ref=\"dropdown-button\" ng-click=\"toggle()\" ng-disabled=\"isDisabled || emptyList\">\n" +
@@ -6050,7 +6039,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6050
6039
 
6051
6040
  $templateCache.put('src/components/nice-icon/nice-icon.html',
6052
6041
  "<svg class=\"nice-icon\">\n" +
6053
- "<use ng-attr-xlink:href=\"{{ '#' + icon }}\" xlink:href=\"{{ '#' + icon }}\"></use>\n" +
6042
+ "<use ng-attr-xlink:href=\"{{ '#' + icon }}\" xlink:href=\"\"></use>\n" +
6054
6043
  "</svg>"
6055
6044
  );
6056
6045
 
@@ -6058,10 +6047,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6058
6047
  $templateCache.put('src/components/nice-input/nice-input.html',
6059
6048
  "<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"forma\">\n" +
6060
6049
  "<div class=\"row\">\n" +
6061
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6062
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6063
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6064
- "</div>\n" +
6050
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6065
6051
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6066
6052
  "<div class=\"form-group\" ng-class=\"{\n" +
6067
6053
  " 'has-feedback': showValid && !hideValid,\n" +
@@ -6096,15 +6082,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6096
6082
  $templateCache.put('src/components/nice-label/nice-label.html',
6097
6083
  "<div class=\"nice-component nice-label\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
6098
6084
  "<div class=\"row\">\n" +
6099
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6100
- "<div class=\"nice-title-text\">{{ title }}</div>\n" +
6101
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6102
- "</div>\n" +
6085
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6103
6086
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
6104
6087
  "<p class=\"value\">{{ value }}</p>\n" +
6105
6088
  "</div>\n" +
6106
6089
  "</div>\n" +
6107
- "</div>\n"
6090
+ "</div>"
6108
6091
  );
6109
6092
 
6110
6093
 
@@ -6130,20 +6113,17 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6130
6113
  $templateCache.put('src/components/nice-number/nice-number.html',
6131
6114
  "<div class=\"nice-component nice-number\" ng-form=\"niceNumberForm\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
6132
6115
  "<div ng-class=\"{'row' : !disableRow}\">\n" +
6133
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6134
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6135
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6136
- "</div>\n" +
6137
- "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6138
- "<div class=\"input-group\" ng-class=\"{'has-warning': !disabled && niceNumberForm.$invalid && niceNumberForm.$dirty}\">\n" +
6116
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6117
+ "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6118
+ "<div class=\"input-group\" ng-class=\"{'has-warning': !isDisabled && niceNumberForm.$invalid && niceNumberForm.$dirty}\">\n" +
6139
6119
  "<span class=\"input-group-btn\">\n" +
6140
- "<button class=\"btn btn-default btn-left\" type=\"button\" ng-disabled=\"!canSubstract\" ng-click=\"subtract()\" tabindex=\"-1\">\n" +
6120
+ "<button class=\"btn btn-default btn-left\" type=\"button\" ng-disabled=\"!canSubstract || isDisabled\" ng-click=\"subtract()\" tabindex=\"-1\">\n" +
6141
6121
  "<nice-icon icon=\"icon-minus\"></nice-icon>\n" +
6142
6122
  "</button>\n" +
6143
6123
  "</span>\n" +
6144
- "<input type=\"number\" step=\"{{ step }}\" ng-change=\"inputChanged()\" class=\"form-control\" max=\"{{ max }}\" min=\"{{ min }}\" ng-model=\"model\">\n" +
6124
+ "<input type=\"number\" step=\"{{ step }}\" ng-change=\"inputChanged()\" class=\"form-control\" max=\"{{ max }}\" min=\"{{ min }}\" ng-disabled=\"isDisabled\" ng-model=\"model\">\n" +
6145
6125
  "<span class=\"input-group-btn\">\n" +
6146
- "<button class=\"btn btn-default btn-right\" type=\"button\" ng-disabled=\"!canAdd\" ng-click=\"add()\" tabindex=\"-1\">\n" +
6126
+ "<button class=\"btn btn-default btn-right\" type=\"button\" ng-disabled=\"!canAdd || isDisabled\" ng-click=\"add()\" tabindex=\"-1\">\n" +
6147
6127
  "<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
6148
6128
  "</button>\n" +
6149
6129
  "</span>\n" +
@@ -6172,10 +6152,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6172
6152
  $templateCache.put('src/components/nice-percent/nice-percent.html',
6173
6153
  "<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
6174
6154
  "<div class=\"row\">\n" +
6175
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6176
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6177
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6178
- "</div>\n" +
6155
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6179
6156
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6180
6157
  "<div class=\"input-group has-feedback symbol\" ng-class=\"{\n" +
6181
6158
  " 'has-warning': !isDisabled && form.$invalid && form.$dirty && !hideValid,\n" +
@@ -6209,10 +6186,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6209
6186
  $templateCache.put('src/components/nice-progress-bar/nice-progress-bar.html',
6210
6187
  "<div class=\"nice-component nice-progress-bar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
6211
6188
  "<div class=\"row\">\n" +
6212
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6213
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6214
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6215
- "</div>\n" +
6189
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6216
6190
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6217
6191
  "<div class=\"progress\">\n" +
6218
6192
  "<div class=\"progress-value\">{{ value }} / {{ max }}</div>\n" +
@@ -6229,10 +6203,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6229
6203
  $templateCache.put('src/components/nice-quantity/nice-quantity.html',
6230
6204
  "<div class=\"nice-component nice-quantity\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
6231
6205
  "<div class=\"row\">\n" +
6232
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6233
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6234
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6235
- "</div>\n" +
6206
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6236
6207
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6237
6208
  "<div class=\"input-group\">\n" +
6238
6209
  "<button class=\"btn btn-default btn-left\" ng-click=\"sub()\" type=\"button\" ng-disabled=\"isDisabled\" tabindex=\"-1\">\n" +
@@ -6252,10 +6223,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6252
6223
  $templateCache.put('src/components/nice-search/nice-search.html',
6253
6224
  "<ng-form class=\"nice-component nice-input nice-search\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline}\" name=\"form\">\n" +
6254
6225
  "<div class=\"row\">\n" +
6255
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6256
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6257
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6258
- "</div>\n" +
6226
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6259
6227
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6260
6228
  "<div class=\"input-group\" ng-class=\"{\n" +
6261
6229
  " 'disabled': isDisabled,\n" +
@@ -6293,10 +6261,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6293
6261
  $templateCache.put('src/components/nice-search2/nice-search2.html',
6294
6262
  "<ng-form class=\"nice-component nice-input nice-search2\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
6295
6263
  "<div class=\"row\">\n" +
6296
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6297
- "<div class=\"nice-title-text\">{{ title }}</div>\n" +
6298
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6299
- "</div>\n" +
6264
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6300
6265
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
6301
6266
  "<div class=\"nice-search-button input-group\" ng-class=\"{ 'disabled': isDisabled, 'has-warning': !isDisabled && form.$invalid && form.$dirty, 'has-success': !isDisabled && form.$valid && form.$dirty}\">\n" +
6302
6267
  "<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" +
@@ -6325,15 +6290,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6325
6290
  $templateCache.put('src/components/nice-slot/nice-slot.html',
6326
6291
  "<div class=\"nice-component nice-slot\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
6327
6292
  "<div class=\"row\">\n" +
6328
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\">\n" +
6329
- "<div class=\"nice-title-text\" ng-if=\"title\">{{ title }}</div>\n" +
6330
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6331
- "</div>\n" +
6293
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6332
6294
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
6333
6295
  "<ng-transclude></ng-transclude>\n" +
6334
6296
  "</div>\n" +
6335
6297
  "</div>\n" +
6336
- "</div>\n"
6298
+ "</div>"
6337
6299
  );
6338
6300
 
6339
6301
 
@@ -7212,10 +7174,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7212
7174
  $templateCache.put('src/components/nice-time-picker/nice-time-picker.html',
7213
7175
  "<div class=\"nice-component nice-time-picker\" ng-form=\"forma\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
7214
7176
  "<div class=\"row\">\n" +
7215
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
7216
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
7217
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7218
- "</div>\n" +
7177
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7219
7178
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
7220
7179
  "<div class=\"input-group\" ng-class=\"{\n" +
7221
7180
  " 'has-warning': !isDisabled && forma.$invalid && forma.$dirty,\n" +
@@ -7253,6 +7212,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7253
7212
  );
7254
7213
 
7255
7214
 
7215
+ $templateCache.put('src/components/nice-title/nice-title.html',
7216
+ "<div class=\"nice-title col-xs-12\" ng-class=\"[labelWidth ? labelWidth : 'col-sm-4', {'nice-title-empty': !title && !help} ]\" ng-if=\"title\">\n" +
7217
+ "<div class=\"nice-title-text\">{{ title }}<span class=\"nice-title-required\" ng-if=\"required\">*</span></div>\n" +
7218
+ "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7219
+ "</div>"
7220
+ );
7221
+
7222
+
7256
7223
  $templateCache.put('src/components/nice-toast/nice-toast.html',
7257
7224
  "<div class=\"nice-toasts\" ng-class=\"position\">\n" +
7258
7225
  "<div class=\"nice-toast\" ng-class=\"toast.type\" ng-repeat=\"toast in toasts\">{{ toast.message }}</div>\n" +
@@ -7263,10 +7230,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7263
7230
  $templateCache.put('src/components/nice-upload/nice-upload.html',
7264
7231
  "<ng-form class=\"nice-component nice-upload\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
7265
7232
  "<div class=\"row\">\n" +
7266
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
7267
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
7268
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7269
- "</div>\n" +
7233
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7270
7234
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
7271
7235
  "<div class=\"nice-upload-area\">\n" +
7272
7236
  "<div class=\"input-area\" ng-class=\"{ 'dragging': dragging || draggingGlobal }\">\n" +
@@ -7290,15 +7254,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7290
7254
  $templateCache.put('src/components/nice-yesno/nice-yesno.html',
7291
7255
  "<div class=\"nice-component nice-yesno\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formYesno\">\n" +
7292
7256
  "<div class=\"row\">\n" +
7293
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
7294
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
7295
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7296
- "</div>\n" +
7297
- "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
7298
- "<div class=\"yesno-wrapper noselect\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
7257
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7258
+ "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
7259
+ "<div class=\"yesno-wrapper noselect\">\n" +
7299
7260
  "<button class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\">{{ yes }}</button>\n" +
7300
7261
  "<button class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\">{{ no }}</button>\n" +
7301
- "<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\">{{ state }}</button>\n" +
7262
+ "<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\" ng-disabled=\"isDisabled\">{{ state }}</button>\n" +
7302
7263
  "</div>\n" +
7303
7264
  "</div>\n" +
7304
7265
  "</div>\n" +