nice-elements 1.7.2 → 1.7.4

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 (141) 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 +228 -257
  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-icon/nice-icon.js +1 -0
  35. package/src/components/nice-input/nice-input.html +6 -6
  36. package/src/components/nice-input/nice-input.js +6 -0
  37. package/src/components/nice-label/nice-label.html +3 -6
  38. package/src/components/nice-number/nice-number.html +7 -10
  39. package/src/components/nice-number/nice-number.js +11 -11
  40. package/src/components/nice-percent/nice-percent.html +5 -22
  41. package/src/components/nice-percent/nice-percent.js +12 -12
  42. package/src/components/nice-progress-bar/nice-progress-bar.html +2 -5
  43. package/src/components/nice-quantity/nice-quantity.html +2 -5
  44. package/src/components/nice-search/nice-search.html +2 -5
  45. package/src/components/nice-search/nice-search.js +32 -32
  46. package/src/components/nice-search2/nice-search2.html +2 -5
  47. package/src/components/nice-slot/nice-slot.html +3 -6
  48. package/src/components/nice-slot/nice-slot.js +1 -1
  49. package/src/components/nice-time-picker/nice-time-picker.html +2 -5
  50. package/src/components/nice-title/nice-title.html +4 -0
  51. package/src/components/nice-title/nice-title.js +21 -0
  52. package/src/components/nice-upload/nice-upload.html +2 -5
  53. package/src/components/nice-yesno/nice-yesno.html +5 -8
  54. package/src/styles/_nice-common.scss +12 -1
  55. package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/_nice-time-picker.scssc +0 -0
  56. package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/nice-time-picker.scssc +0 -0
  57. package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/_nice-comment.scssc +0 -0
  58. package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/nice-comment.scssc +0 -0
  59. package/.sass-cache/1fa02acb98a7cebbbaaccd8ef62dedeb80075746/nice-quantity.scssc +0 -0
  60. package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/_nice-date-range.scssc +0 -0
  61. package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/nice-date-range.scssc +0 -0
  62. package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/_nice-button.scssc +0 -0
  63. package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/nice-button.scssc +0 -0
  64. package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/_nice-steps.scssc +0 -0
  65. package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/nice-steps.scssc +0 -0
  66. package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/_nice-input.scssc +0 -0
  67. package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/nice-input.scssc +0 -0
  68. package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/_nice-calendar.scssc +0 -0
  69. package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/nice-calendar.scssc +0 -0
  70. package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/_nice-notification.scssc +0 -0
  71. package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/nice-notification.scssc +0 -0
  72. package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/_nice-datetimerange-picker.scssc +0 -0
  73. package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/nice-datetimerange-picker.scssc +0 -0
  74. package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/_nice-yesno.scssc +0 -0
  75. package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/nice-yesno.scssc +0 -0
  76. package/.sass-cache/52335f6e13d042b07835d519f4267df952f94036/nice-dropdown-old.scssc +0 -0
  77. package/.sass-cache/52f492b94dd9f4468e58d8aa11ba26ac9cdcbbcf/nice-progress-bar.scssc +0 -0
  78. package/.sass-cache/6629f6f7b13f350c585c990e5699145891af0805/nice-help.scssc +0 -0
  79. package/.sass-cache/6dfd23eda68e4cff55e32e19d3bc5f0e6095bda9/nice-search2.scssc +0 -0
  80. package/.sass-cache/7870950c279970f0acdfb180a33c0d63a93fc5b0/nice-upload.scssc +0 -0
  81. package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/_nice-button-toggle.scssc +0 -0
  82. package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/nice-button-toggle.scssc +0 -0
  83. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_bootstrap-variables.scssc +0 -0
  84. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice-common.scssc +0 -0
  85. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice.scssc +0 -0
  86. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_variables.scssc +0 -0
  87. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/main.scssc +0 -0
  88. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/mian.scssc +0 -0
  89. package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/style.scssc +0 -0
  90. package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/_nice-date.scssc +0 -0
  91. package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/nice-date.scssc +0 -0
  92. package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/_nice-number.scssc +0 -0
  93. package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/nice-number.scssc +0 -0
  94. package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/_nice-checkbox.scssc +0 -0
  95. package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/nice-checkbox.scssc +0 -0
  96. package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/_nice-dropdown-date.scssc +0 -0
  97. package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/nice-dropdown-date.scssc +0 -0
  98. package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/_nice-choice.scssc +0 -0
  99. package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/nice-choice.scssc +0 -0
  100. package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/_nice-datetimerange-picker-2.scssc +0 -0
  101. package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/nice-datetimerange-picker-2.scssc +0 -0
  102. package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_mixins.scssc +0 -0
  103. package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_variables.scssc +0 -0
  104. package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/_nice-loader.scssc +0 -0
  105. package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/nice-loader.scssc +0 -0
  106. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_alerts.scssc +0 -0
  107. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_background-variant.scssc +0 -0
  108. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_border-radius.scssc +0 -0
  109. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_buttons.scssc +0 -0
  110. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_center-block.scssc +0 -0
  111. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_clearfix.scssc +0 -0
  112. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_forms.scssc +0 -0
  113. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_gradients.scssc +0 -0
  114. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid-framework.scssc +0 -0
  115. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid.scssc +0 -0
  116. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_hide-text.scssc +0 -0
  117. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_image.scssc +0 -0
  118. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_labels.scssc +0 -0
  119. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_list-group.scssc +0 -0
  120. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-divider.scssc +0 -0
  121. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-vertical-align.scssc +0 -0
  122. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_opacity.scssc +0 -0
  123. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_pagination.scssc +0 -0
  124. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_panels.scssc +0 -0
  125. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_progress-bar.scssc +0 -0
  126. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-filter.scssc +0 -0
  127. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-text.scssc +0 -0
  128. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_resize.scssc +0 -0
  129. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_responsive-visibility.scssc +0 -0
  130. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_size.scssc +0 -0
  131. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_tab-focus.scssc +0 -0
  132. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_table-row.scssc +0 -0
  133. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-emphasis.scssc +0 -0
  134. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-overflow.scssc +0 -0
  135. package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_vendor-prefixes.scssc +0 -0
  136. package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/_nice-datetime-picker.scssc +0 -0
  137. package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/nice-datetime-picker.scssc +0 -0
  138. package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/_nice-search.scssc +0 -0
  139. package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/nice-search.scssc +0 -0
  140. package/.sass-cache/fd9f4f9e07e96510c3ea7c8543d71e342ea61d29/_nice-dropdown.scssc +0 -0
  141. 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
  },
@@ -3579,6 +3582,7 @@ angular.module('niceElements')
3579
3582
  return {
3580
3583
  templateUrl: 'src/components/nice-icon/nice-icon.html',
3581
3584
  restrict: 'E',
3585
+ replace: true,
3582
3586
  scope: {
3583
3587
  icon: '@'
3584
3588
  },
@@ -3597,6 +3601,8 @@ angular.module('niceElements')
3597
3601
  type: '@',
3598
3602
  title: '@?',
3599
3603
  regex: '@?',
3604
+ regexRaw: '@?',
3605
+ regexError: '@?',
3600
3606
  placeholder: '@',
3601
3607
  min: '@?',
3602
3608
  max: '@?',
@@ -3687,6 +3693,10 @@ angular.module('niceElements')
3687
3693
  scope.regexexp = new RegExp(scope.regex);
3688
3694
  }
3689
3695
 
3696
+ if (angular.isDefined(scope.regexRaw) && scope.regexRaw != '') {
3697
+ scope.regexexp = regexRaw;
3698
+ }
3699
+
3690
3700
  scope.$watch('model', function (value_new, value_old) {
3691
3701
  scope.internalModel = scope.model;
3692
3702
  });
@@ -3932,12 +3942,12 @@ angular.module('niceElements')
3932
3942
  scope: {
3933
3943
  model: '=',
3934
3944
  valid: '=',
3935
- disabled: '=',
3945
+ isDisabled: '=',
3936
3946
  title: '@?',
3937
3947
  min: '@',
3938
3948
  max: '@',
3939
3949
  defaultValue: '@',
3940
- required: '@',
3950
+ required: '=',
3941
3951
  fieldWidth: '@',
3942
3952
  labelWidth: '@',
3943
3953
  hideError: '@',
@@ -3952,7 +3962,7 @@ angular.module('niceElements')
3952
3962
  onChange: '&?'
3953
3963
  },
3954
3964
 
3955
- controller: function($scope, $timeout) {
3965
+ controller: function ($scope, $timeout) {
3956
3966
  $scope.canAdd = true;
3957
3967
  $scope.canSubstract = true;
3958
3968
  $scope.preventZero = $scope.preventZero == "true";
@@ -3993,7 +4003,7 @@ angular.module('niceElements')
3993
4003
  if (!$scope.model) {
3994
4004
  $scope.model = $scope.defaultValue;
3995
4005
  } else {
3996
- if(parseFloat($scope.model)) {
4006
+ if (parseFloat($scope.model)) {
3997
4007
  $scope.model = parseFloat($scope.model);
3998
4008
  } else {
3999
4009
  $scope.model = $scope.defaultValue;
@@ -4001,7 +4011,7 @@ angular.module('niceElements')
4001
4011
  }
4002
4012
 
4003
4013
  // Check canAdd or canSubtract
4004
- $scope.check = function() {
4014
+ $scope.check = function () {
4005
4015
  if ($scope.required && ($scope.model == undefined || $scope.model == null)) {
4006
4016
  $scope.niceNumberForm.$setValidity("no-value", false);
4007
4017
  } else {
@@ -4033,25 +4043,25 @@ angular.module('niceElements')
4033
4043
 
4034
4044
 
4035
4045
  // Check when load
4036
- $timeout(function() {
4046
+ $timeout(function () {
4037
4047
  $scope.check();
4038
4048
  });
4039
4049
 
4040
4050
 
4041
4051
  // On input change
4042
- $scope.inputChanged = function() {
4052
+ $scope.inputChanged = function () {
4043
4053
  $scope.check();
4044
4054
  };
4045
-
4055
+
4046
4056
 
4047
4057
  // Watch for model change
4048
- $scope.$watch("model", function() {
4058
+ $scope.$watch("model", function () {
4049
4059
  $scope.check();
4050
4060
  });
4051
4061
 
4052
4062
 
4053
4063
  // Add to the value
4054
- $scope.add = function() {
4064
+ $scope.add = function () {
4055
4065
  var result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).plus($scope.step).toNumber(); //.toFixed($scope.decimals);
4056
4066
  if ($scope.max) {
4057
4067
  if (result <= parseFloat($scope.max)) {
@@ -4067,7 +4077,7 @@ angular.module('niceElements')
4067
4077
 
4068
4078
 
4069
4079
  // Subtract to the value
4070
- $scope.subtract = function() {
4080
+ $scope.subtract = function () {
4071
4081
  var result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).minus($scope.step).toNumber();
4072
4082
  if (result >= Number($scope.min)) {
4073
4083
  $scope.model = result;
@@ -4098,7 +4108,7 @@ angular.module('niceElements')
4098
4108
  valid: '=',
4099
4109
  isDisabled: '=',
4100
4110
  title: '@?',
4101
- required: '@',
4111
+ required: '=',
4102
4112
  fieldWidth: '@',
4103
4113
  labelWidth: '@',
4104
4114
  placeholder: '@',
@@ -4117,27 +4127,27 @@ angular.module('niceElements')
4117
4127
  attrs.noMargin = angular.isDefined(attrs.noMargin);
4118
4128
  },
4119
4129
 
4120
- controller: function($rootScope, $scope) {
4130
+ controller: function ($rootScope, $scope) {
4121
4131
  // Link form object with valid object
4122
- if (angular.isDefined($scope.valid)){
4132
+ if (angular.isDefined($scope.valid)) {
4123
4133
  $scope.valid = $scope.form;
4124
4134
  }
4125
4135
 
4126
- var roundN = function(number, decimals){
4136
+ var roundN = function (number, decimals) {
4127
4137
  return Number(new Decimal(String(number)).toFixed(decimals, 4));
4128
4138
  };
4129
4139
 
4130
- if (angular.isDefined($scope.model)){
4140
+ if (angular.isDefined($scope.model)) {
4131
4141
  $scope.internalModel = roundN((angular.copy($scope.model) * 100), 6);
4132
4142
  } else {
4133
4143
  $scope.internalModel = "0";
4134
4144
  $scope.model = 0;
4135
4145
  }
4136
4146
 
4137
- $scope.change = function(){
4138
- if($scope.internalModel){
4147
+ $scope.change = function () {
4148
+ if ($scope.internalModel) {
4139
4149
  $scope.internalModel = String($scope.internalModel).replace(',', '.');
4140
- if(parseFloat($scope.internalModel) > 100) $scope.internalModel = 100;
4150
+ if (parseFloat($scope.internalModel) > 100) $scope.internalModel = 100;
4141
4151
  $scope.model = roundN(parseFloat($scope.internalModel) / 100, 6);
4142
4152
  } else {
4143
4153
  $scope.model = 0;
@@ -4145,9 +4155,9 @@ angular.module('niceElements')
4145
4155
  if ($scope.onChange) $scope.onChange({ model: $scope.model });
4146
4156
  };
4147
4157
 
4148
- $scope.keypress = function(event) {
4158
+ $scope.keypress = function (event) {
4149
4159
  if (event.charCode == 46 || event.charCode == 44) { // Handle "." and "," key (only one allowed)
4150
- if($scope.internalModel.indexOf(".") >= 0){
4160
+ if ($scope.internalModel.indexOf(".") >= 0) {
4151
4161
  event.preventDefault();
4152
4162
  return false;
4153
4163
  }
@@ -4160,13 +4170,13 @@ angular.module('niceElements')
4160
4170
  };
4161
4171
 
4162
4172
  $scope.$watch('model', function (value_new, value_old) {
4163
- if (value_new){
4173
+ if (value_new) {
4164
4174
  $scope.internalModel = roundN(angular.copy($scope.model) * 100, 6);
4165
4175
  }
4166
4176
  });
4167
4177
 
4168
4178
  $scope.$watch('internalModel', function (value_new, value_old) {
4169
- if(!$scope.internalModel){
4179
+ if (!$scope.internalModel) {
4170
4180
  $scope.internalModel = "0";
4171
4181
  }
4172
4182
  });
@@ -4429,7 +4439,7 @@ angular.module('niceElements')
4429
4439
  isDisabled: '=',
4430
4440
  title: '@?',
4431
4441
  placeholder: '@',
4432
- required: '@',
4442
+ required: '=',
4433
4443
  fieldWidth: '@',
4434
4444
  labelWidth: '@',
4435
4445
  hideValid: '@',
@@ -4470,38 +4480,38 @@ angular.module('niceElements')
4470
4480
  // });
4471
4481
 
4472
4482
  // Set default text
4473
- scope.$watch("setText", function(){
4483
+ scope.$watch("setText", function () {
4474
4484
  scope.modelString = scope.setText;
4475
4485
  });
4476
4486
 
4477
4487
  // Check if object is defined
4478
- if(angular.isDefined(scope.model)){
4488
+ if (angular.isDefined(scope.model)) {
4479
4489
  if (angular.isDefined(scope.keyForInputLabel))
4480
4490
  scope.modelString = scope.model[scope.keyForInputLabel];
4481
4491
  else
4482
4492
  scope.modelString = scope.model;
4483
4493
  }
4484
4494
 
4485
- var setValid = function(isValid){
4486
- if(scope.required){
4495
+ var setValid = function (isValid) {
4496
+ if (scope.required) {
4487
4497
  scope.form.$setValidity('objectSelected', isValid);
4488
4498
  }
4489
4499
  };
4490
4500
 
4491
- scope.$watch('model', function(newValue){
4492
- if(scope.model && scope.model.id){
4501
+ scope.$watch('model', function (newValue) {
4502
+ if (scope.model && scope.model.id) {
4493
4503
  setValid(true);
4494
4504
  } else {
4495
4505
  setValid(false);
4496
4506
  }
4497
4507
  });
4498
4508
 
4499
- scope.selectRow = function(obj){
4500
- if (angular.isDefined(scope.refreshSelectedCallback)){
4509
+ scope.selectRow = function (obj) {
4510
+ if (angular.isDefined(scope.refreshSelectedCallback)) {
4501
4511
  scope.refreshSelectedCallback(obj);
4502
4512
  }
4503
4513
 
4504
- if (scope.resetSearchInput){
4514
+ if (scope.resetSearchInput) {
4505
4515
  scope.model = null;
4506
4516
  } else {
4507
4517
  scope.model = obj;
@@ -4516,10 +4526,10 @@ angular.module('niceElements')
4516
4526
 
4517
4527
  };
4518
4528
 
4519
- scope.clear = function(){
4529
+ scope.clear = function () {
4520
4530
  scope.results = [];
4521
4531
 
4522
- if(scope.clearInput){
4532
+ if (scope.clearInput) {
4523
4533
  scope.modelString = "";
4524
4534
  }
4525
4535
 
@@ -4527,7 +4537,7 @@ angular.module('niceElements')
4527
4537
  };
4528
4538
 
4529
4539
  // Close the dropdown if clicked outside
4530
- var onClick = function(event){
4540
+ var onClick = function (event) {
4531
4541
  var isClickedElementChildOfPopup = element.find(event.target).length > 0;
4532
4542
 
4533
4543
  if (isClickedElementChildOfPopup) return;
@@ -4540,24 +4550,24 @@ angular.module('niceElements')
4540
4550
  angular.element(element).on('click', onClick);
4541
4551
 
4542
4552
  // Keyboard up/down on search results
4543
- var onKeyDown = function(event) {
4544
- if((event.keyCode == 38 || event.keyCode == 40 || event.keyCode == 13 || event.keyCode == 27) && scope.results && scope.results.length>0){
4553
+ var onKeyDown = function (event) {
4554
+ if ((event.keyCode == 38 || event.keyCode == 40 || event.keyCode == 13 || event.keyCode == 27) && scope.results && scope.results.length > 0) {
4545
4555
  event.preventDefault();
4546
4556
 
4547
- if(event.keyCode == 27){ // Escape
4557
+ if (event.keyCode == 27) { // Escape
4548
4558
  scope.modelString = "";
4549
4559
  scope.clear();
4550
4560
  }
4551
4561
 
4552
- if(event.keyCode == 13){ // Enter
4562
+ if (event.keyCode == 13) { // Enter
4553
4563
  scope.selectRow(scope.results[scope.selectedIndex]);
4554
4564
  }
4555
4565
 
4556
- if(event.keyCode == 40 && scope.results && scope.selectedIndex+1 < scope.results.length){ // Down
4566
+ if (event.keyCode == 40 && scope.results && scope.selectedIndex + 1 < scope.results.length) { // Down
4557
4567
  scope.selectedIndex += 1;
4558
4568
  }
4559
4569
 
4560
- if(event.keyCode == 38 && scope.results && scope.selectedIndex-1 >= 0){ // Up
4570
+ if (event.keyCode == 38 && scope.results && scope.selectedIndex - 1 >= 0) { // Up
4561
4571
  scope.selectedIndex -= 1;
4562
4572
  }
4563
4573
 
@@ -4575,13 +4585,13 @@ angular.module('niceElements')
4575
4585
  });
4576
4586
 
4577
4587
  },
4578
- controller: function($scope, $timeout, $element) {
4588
+ controller: function ($scope, $timeout, $element) {
4579
4589
  $scope.id = Math.random().toString(36).substring(7);
4580
4590
  $scope.loading = false;
4581
4591
  $scope.noResults = false;
4582
4592
  $scope.requests = 0;
4583
4593
 
4584
- $scope.focus = function() {
4594
+ $scope.focus = function () {
4585
4595
  var input = $element[0].getElementsByTagName('input')[0];
4586
4596
  if (input) {
4587
4597
  input.focus();
@@ -4594,14 +4604,14 @@ angular.module('niceElements')
4594
4604
  }
4595
4605
 
4596
4606
  $scope.results = [];
4597
- var updateList = function(results, requestNumber){
4607
+ var updateList = function (results, requestNumber) {
4598
4608
 
4599
- if(results){
4600
- if ($scope.requests == requestNumber){
4609
+ if (results) {
4610
+ if ($scope.requests == requestNumber) {
4601
4611
  $scope.noResults = results.length == 0;
4602
4612
  $scope.results = results;
4603
4613
 
4604
- if(!$scope.noResults){
4614
+ if (!$scope.noResults) {
4605
4615
  $scope.selectedIndex = 0;
4606
4616
  }
4607
4617
  }
@@ -4616,13 +4626,13 @@ angular.module('niceElements')
4616
4626
  if ($scope.timer_promise)
4617
4627
  $timeout.cancel($scope.timer_promise);
4618
4628
 
4619
- $scope.timer_promise = $timeout(function() {
4629
+ $scope.timer_promise = $timeout(function () {
4620
4630
  if ($scope.onChange) $scope.onChange({ model: $scope.model, modelString: $scope.modelString });
4621
4631
  $scope.requests = $scope.requests + 1;
4622
4632
  var requestNumber = angular.copy($scope.requests);
4623
- $scope.refreshFunction($scope.modelString).then(function(response){
4633
+ $scope.refreshFunction($scope.modelString).then(function (response) {
4624
4634
  updateList(response, requestNumber);
4625
- }, function(error){
4635
+ }, function (error) {
4626
4636
  $scope.loading = false;
4627
4637
  });
4628
4638
  // Why was this here?
@@ -4632,9 +4642,9 @@ angular.module('niceElements')
4632
4642
  };
4633
4643
 
4634
4644
  // If search button is clicked set focus or make request
4635
- $scope.search = function(){
4636
- if (!$scope.isDisabled){
4637
- if($scope.showDropdown) {
4645
+ $scope.search = function () {
4646
+ if (!$scope.isDisabled) {
4647
+ if ($scope.showDropdown) {
4638
4648
  $scope.updateSearch();
4639
4649
  }
4640
4650
  $scope.focus();
@@ -4642,7 +4652,7 @@ angular.module('niceElements')
4642
4652
  };
4643
4653
 
4644
4654
  // Clear model
4645
- $scope.remove = function(){
4655
+ $scope.remove = function () {
4646
4656
  $scope.model = null;
4647
4657
  $scope.modelString = null;
4648
4658
  }
@@ -4931,7 +4941,7 @@ angular.module('niceElements')
4931
4941
  link: function postLink(scope, element, attrs) {
4932
4942
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
4933
4943
  if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
4934
- if (!attrs.title) { attrs.labelWidth = ''; }
4944
+ if (!attrs.title) { attrs.title = ' '; }
4935
4945
  }
4936
4946
  };
4937
4947
  });
@@ -5039,6 +5049,28 @@ angular.module('niceElements')
5039
5049
  });
5040
5050
  'use strict';
5041
5051
 
5052
+ /**
5053
+ * @ngdoc directive
5054
+ * @name niceElements.directive:niceTitle
5055
+ * @description
5056
+ * # niceTitle
5057
+ */
5058
+ angular.module('niceElements')
5059
+ .directive('niceTitle', function () {
5060
+ return {
5061
+ templateUrl: 'src/components/nice-title/nice-title.html',
5062
+ replace: true,
5063
+ scope: {
5064
+ labelWidth: '=?',
5065
+ title: '=?',
5066
+ required: '=?',
5067
+ help: '=?'
5068
+ }
5069
+ };
5070
+ });
5071
+
5072
+ 'use strict';
5073
+
5042
5074
  /**
5043
5075
  * @ngdoc directive
5044
5076
  * @name niceElements.directive:niceToast
@@ -5449,18 +5481,15 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5449
5481
  $templateCache.put('src/components/nice-calendar/nice-calendar.html',
5450
5482
  "<div class=\"nice-component nice-calendar\" ng-form=\"formCalendar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5451
5483
  "<div class=\"row\">\n" +
5452
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5453
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5454
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5455
- "</div>\n" +
5484
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5456
5485
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5457
5486
  "<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
5458
5487
  "<div class=\"nice-calendar-wrapper\">\n" +
5459
5488
  "<div class=\"nice-calendar-weeks\">\n" +
5460
5489
  "<div class=\"header\">\n" +
5461
- "<button class=\"btn\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5490
+ "<button class=\"btn\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5462
5491
  "<span title=\"{{ month.format('M.YYYY' )}}\">{{ month.format(\"MMMM, YYYY\" )}}</span>\n" +
5463
- "<button class=\"btn\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5492
+ "<button class=\"btn\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5464
5493
  "</div>\n" +
5465
5494
  "<div class=\"week names\">\n" +
5466
5495
  "<span class=\"day\" translate translate-context=\"Nice\">Mon</span>\n" +
@@ -5486,7 +5515,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5486
5515
  " (color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||\n" +
5487
5516
  " (color && isSameDay(day.date, startDate)) && {'background-color': color } ||\n" +
5488
5517
  " (color && isSameDay(day.date, endDate)) && {'background-color': color }\n" +
5489
- " \" ng-click=\"select(day)\" ng-repeat=\"day in week.days\">\n" +
5518
+ " \" ng-click=\"select(day)\" ng-repeat=\"day in week.days\" ng-disabled=\"isDisabled\">\n" +
5490
5519
  "{{ day.number }}\n" +
5491
5520
  "<p class=\"popup\" ng-if=\"!hideHover\">{{ popupText }}</p>\n" +
5492
5521
  "</button>\n" +
@@ -5494,22 +5523,22 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5494
5523
  "</div>\n" +
5495
5524
  "<div class=\"nice-calendar-time\" ng-if=\"time\">\n" +
5496
5525
  "<div class=\"time-picker\">\n" +
5497
- "<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" +
5526
+ "<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" +
5498
5527
  "</select>\n" +
5499
5528
  "</div>\n" +
5500
5529
  "<div class=\"time-picker\">\n" +
5501
- "<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" +
5530
+ "<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" +
5502
5531
  "</select>\n" +
5503
5532
  "</div>\n" +
5504
5533
  "<div class=\"time-picker-icon\">\n" +
5505
5534
  "<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
5506
5535
  "</div>\n" +
5507
5536
  "<div class=\"time-picker\">\n" +
5508
- "<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" +
5537
+ "<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" +
5509
5538
  "</select>\n" +
5510
5539
  "</div>\n" +
5511
5540
  "<div class=\"time-picker no-border-right\">\n" +
5512
- "<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" +
5541
+ "<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" +
5513
5542
  "</select>\n" +
5514
5543
  "</div>\n" +
5515
5544
  "</div>\n" +
@@ -5543,14 +5572,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5543
5572
  $templateCache.put('src/components/nice-choice/nice-choice.html',
5544
5573
  "<div class=\"nice-component nice-choice\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formChoice\">\n" +
5545
5574
  "<div class=\"row\">\n" +
5546
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5547
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5548
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5549
- "</div>\n" +
5575
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5550
5576
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
5551
5577
  "<ul class=\"list-unstyled\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
5552
5578
  "<li ng-repeat=\"item in internalList\" ng-class=\"{ 'selected' : isItemSelected(item) }\" ng-click=\"toggle(item)\">\n" +
5553
- "<button class=\"choice-checkbox\" ng-class=\"{'circle' : !multiple }\">\n" +
5579
+ "<button class=\"choice-checkbox\" ng-class=\"{'circle' : !multiple }\" ng-disabled=\"isDisabled\">\n" +
5554
5580
  "<nice-icon icon=\"icon-check\"></nice-icon>\n" +
5555
5581
  "</button>\n" +
5556
5582
  "<div ng-transclude class=\"choice-label\">{{ getLabel(item) }}</div>\n" +
@@ -5565,25 +5591,19 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5565
5591
  $templateCache.put('src/components/nice-comment/nice-comment.html',
5566
5592
  "<div class=\"nice-component nice-comment\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
5567
5593
  "<div class=\"row\">\n" +
5568
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5569
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5570
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5594
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5595
+ "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" ng-click=\"edit()\">\n" +
5596
+ "<textarea ng-class=\"{'editing': editing}\" class=\"form-control\" ng-model=\"model\" placeholder=\"{{placeholder}}\" rows=\"{{rows}}\" ng-blur=\"save()\" ng-disabled=\"isDisabled\"></textarea>\n" +
5571
5597
  "</div>\n" +
5572
- "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\" ng-click=\"edit()\">\n" +
5573
- "<textarea ng-class=\"{'editing': editing}\" class=\"form-control\" ng-model=\"model\" placeholder=\"{{placeholder}}\" rows=\"{{rows}}\" ng-blur=\"save()\"></textarea>\n" +
5574
5598
  "</div>\n" +
5575
- "</div>\n" +
5576
- "</div>\n"
5599
+ "</div>"
5577
5600
  );
5578
5601
 
5579
5602
 
5580
5603
  $templateCache.put('src/components/nice-date-input/nice-date-input.html',
5581
5604
  "<div class=\"nice-component nice-date-input\" ng-form=\"niceDateInputForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline, 'error': niceDateInputForm.$invalid }\">\n" +
5582
5605
  "<div class=\"row\">\n" +
5583
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5584
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5585
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5586
- "</div>\n" +
5606
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5587
5607
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5588
5608
  "<div class=\"input-group nice-date-input\" ng-show=\"date\" ng-class=\"{ 'has-warning': !disabled && niceDateInputForm.$invalid && niceDateInputForm.$dirty }\">\n" +
5589
5609
  "<input type=\"text\" class=\"form-control\" ng-model=\"modelDate\" ng-blur=\"dateBlur($event)\" ng-disabled=\"isDisabled\">\n" +
@@ -5620,10 +5640,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5620
5640
  $templateCache.put('src/components/nice-date-range/nice-date-range.html',
5621
5641
  "<ng-form class=\"nice-component nice-date-range\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
5622
5642
  "<div class=\"row\">\n" +
5623
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5624
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5625
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5626
- "</div>\n" +
5643
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5627
5644
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
5628
5645
  "<div class=\"input-group\">\n" +
5629
5646
  "<input date-range-picker class=\"form-control date-picker\" type=\"text\" options=\"opts\" ng-model=\"model\">\n" +
@@ -5641,14 +5658,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5641
5658
  "<div class=\"nice-component nice-date\" ng-form=\"forma\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5642
5659
  "<div class=\"nice-date-background\" ng-click=\"toggleOpen()\" ng-if=\"isOpen && !inline\"></div>\n" +
5643
5660
  "<div class=\"row\">\n" +
5644
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5645
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5646
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5647
- "</div>\n" +
5661
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5648
5662
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5649
5663
  "<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
5650
5664
  "<div class=\"nice-date-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-show=\"!inline\" ng-click=\"toggleOpen()\">\n" +
5651
- "<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\">\n" +
5665
+ "<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
5652
5666
  "<span class=\"input-group-addon clickable\">\n" +
5653
5667
  "<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
5654
5668
  "</span>\n" +
@@ -5658,14 +5672,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5658
5672
  "<div class=\"nice-date-date\" ng-if=\"date\" role=\"grid\">\n" +
5659
5673
  "<div class=\"nice-date-header\">\n" +
5660
5674
  "<span>\n" +
5661
- "<select class=\"year-picker\" ng-model=\"innerDate.year\" ng-change=\"handleDateChange()\" ng-options=\"year for year in years\">\n" +
5675
+ "<select class=\"year-picker\" ng-model=\"innerDate.year\" ng-change=\"handleDateChange()\" ng-options=\"year for year in years\" ng-disabled=\"isDisabled\">\n" +
5662
5676
  "</select>,\n" +
5663
- "<select class=\"month-picker\" ng-model=\"innerDate.month\" ng-change=\"handleDateChange()\" ng-options=\"month.value as month.name for month in months\">\n" +
5677
+ "<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" +
5664
5678
  "</select>\n" +
5665
5679
  "</span>\n" +
5666
- "<button class=\"btn btn-default-naked\" ng-click=\"previous()\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5667
- "<button class=\"btn btn-default-naked\" ng-click=\"today()\"><i class=\"fa fa-circle\"></i></button>\n" +
5668
- "<button class=\"btn btn-default-naked\" ng-click=\"next()\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5680
+ "<button class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"previous()\"><i class=\"fa fa-angle-left\"></i></button>\n" +
5681
+ "<button class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"today()\"><i class=\"fa fa-circle\"></i></button>\n" +
5682
+ "<button class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"next()\"><i class=\"fa fa-angle-right\"></i></button>\n" +
5669
5683
  "</div>\n" +
5670
5684
  "<div class=\"nice-date-week names\">\n" +
5671
5685
  "<span class=\"nice-date-day\" ng-class=\"{ 'weekend': $index == 6 || $index == 5 }\" ng-repeat=\"day in weekdays\">{{ day }}</span>\n" +
@@ -5678,7 +5692,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5678
5692
  " 'weekend': day.isWeekday,\n" +
5679
5693
  " 'disabled': day.isDisabled,\n" +
5680
5694
  " 'between': isBetween(day.date, model, nextDate)\n" +
5681
- " }\" ng-click=\"select(day)\" ng-repeat=\"day in week.days\">\n" +
5695
+ " }\" ng-click=\"select(day)\" ng-repeat=\"day in week.days\" ng-disabled=\"isDisabled\">\n" +
5682
5696
  "{{ day.number }}\n" +
5683
5697
  "</button>\n" +
5684
5698
  "</div>\n" +
@@ -5686,11 +5700,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5686
5700
  "<div class=\"nice-date-time\" ng-if=\"time\">\n" +
5687
5701
  "<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
5688
5702
  "<div class=\"time-picker time-picker-hour\">\n" +
5689
- "<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" +
5703
+ "<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" +
5690
5704
  "</div>\n" +
5691
5705
  "<div class=\"divider\">:</div>\n" +
5692
5706
  "<div class=\"time-picker time-picker-minute\">\n" +
5693
- "<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" +
5707
+ "<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" +
5694
5708
  "</div>\n" +
5695
5709
  "</div>\n" +
5696
5710
  "</div>\n" +
@@ -5705,10 +5719,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5705
5719
  "<div class=\"nice-component nice-datetime-picker\" name=\"form\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5706
5720
  "<div class=\"nice-dtp-background\" ng-click=\"closeDtp(true)\" ng-if=\"isOpen\"></div>\n" +
5707
5721
  "<div class=\"row\">\n" +
5708
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5709
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5710
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5711
- "</div>\n" +
5722
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5712
5723
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5713
5724
  "<div ng-form=\"formDatetimePicker\"></div>\n" +
5714
5725
  "<div class=\"input-group\" id=\"dropdown{{randNum}}\">\n" +
@@ -5731,13 +5742,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5731
5742
  "<div class=\"nice-component nice-datetimerange-picker-2\" ng-form=\"formDateRangePicker\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5732
5743
  "<div class=\"nice-dtp-background\" ng-click=\"close()\" ng-if=\"isOpen\"></div>\n" +
5733
5744
  "<div class=\"row\">\n" +
5734
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5735
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5736
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5737
- "</div>\n" +
5745
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5738
5746
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5739
5747
  "<div class=\"nice-daterange-picker-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-click=\"open()\">\n" +
5740
- "<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\">\n" +
5748
+ "<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
5741
5749
  "<span class=\"input-group-addon clickable\">\n" +
5742
5750
  "<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
5743
5751
  "</span>\n" +
@@ -5774,16 +5782,13 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5774
5782
  "<div class=\"nice-component nice-datetime-picker nice-datetimerange-picker\" name=\"form\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5775
5783
  "<div class=\"nice-dtp-background\" ng-click=\"cancelClick()\" ng-if=\"showDtpRange\"></div>\n" +
5776
5784
  "<div class=\"row\">\n" +
5777
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5778
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5779
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5780
- "</div>\n" +
5785
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5781
5786
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
5782
5787
  "<div ng-form=\"formDatetimeRangePicker\"></div>\n" +
5783
5788
  "<div class=\"dropdown\">\n" +
5784
5789
  "<div class=\"dropdown-toggle\" id=\"dropdown{{randNum}}\" role=\"button\" ng-click=\"openDtpRange()\">\n" +
5785
5790
  "<div class=\"input-group\">\n" +
5786
- "<input type=\"text\" class=\"form-control\" value=\"{{value}}\" ng-click=\"openDtpRange()\">\n" +
5791
+ "<input type=\"text\" class=\"form-control\" value=\"{{value}}\" ng-disabled=\"isDisabled\" ng-click=\"openDtpRange()\">\n" +
5787
5792
  "<span class=\"input-group-addon clickable\">\n" +
5788
5793
  "<nice-icon ng-if=\"date != 'false'\" icon=\"icon-calendar\"></nice-icon>\n" +
5789
5794
  "<nice-icon ng-if=\"date == 'false'\" icon=\"icon-clock\"></nice-icon>\n" +
@@ -5820,10 +5825,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5820
5825
  $templateCache.put('src/components/nice-dropdown-date/nice-dropdown-date.html',
5821
5826
  "<div class=\"nice-component nice-dropdown-date\" ng-form=\"dropdownDateForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5822
5827
  "<div class=\"row\">\n" +
5823
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5824
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5825
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5826
- "</div>\n" +
5828
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5827
5829
  "<div class=\"nice-field col-xs-12\" ng-class=\"[\n" +
5828
5830
  " fieldWidth ? fieldWidth : 'col-sm-8',\n" +
5829
5831
  " {\n" +
@@ -5844,17 +5846,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5844
5846
  "</div>\n" +
5845
5847
  "</div>\n" +
5846
5848
  "</div>\n" +
5847
- "</div>\n"
5849
+ "</div>"
5848
5850
  );
5849
5851
 
5850
5852
 
5851
5853
  $templateCache.put('src/components/nice-dropdown-old/nice-dropdown-old.html',
5852
5854
  "<div class=\"nice-component nice-dropdown-old\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5853
5855
  "<div class=\"row\">\n" +
5854
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5855
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5856
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5857
- "</div>\n" +
5856
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5858
5857
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
5859
5858
  "<div ng-class=\"addButtonEnable && !isDisabled ? 'input-group': ''\">\n" +
5860
5859
  "<div class=\"btn-group\" dropdown is-open=\"status.isopen\" ng-class=\"{ 'disabled': isDisabled || emptyList }\">\n" +
@@ -5892,10 +5891,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
5892
5891
  $templateCache.put('src/components/nice-dropdown/nice-dropdown.html',
5893
5892
  "<div class=\"nice-component nice-dropdown\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
5894
5893
  "<div class=\"row\">\n" +
5895
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
5896
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
5897
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
5898
- "</div>\n" +
5894
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
5899
5895
  "<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" +
5900
5896
  "<div class=\"nice-field-wrapper\">\n" +
5901
5897
  "<button type=\"button\" class=\"btn btn-dropdown\" ng-ref=\"dropdown-button\" ng-click=\"toggle()\" ng-disabled=\"isDisabled || emptyList\">\n" +
@@ -6044,7 +6040,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6044
6040
 
6045
6041
  $templateCache.put('src/components/nice-icon/nice-icon.html',
6046
6042
  "<svg class=\"nice-icon\">\n" +
6047
- "<use ng-attr-xlink:href=\"{{ '#' + icon }}\" xlink:href=\"{{ '#' + icon }}\"></use>\n" +
6043
+ "<use ng-attr-xlink:href=\"{{ '#' + icon }}\" xlink:href=\"\"></use>\n" +
6048
6044
  "</svg>"
6049
6045
  );
6050
6046
 
@@ -6052,10 +6048,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6052
6048
  $templateCache.put('src/components/nice-input/nice-input.html',
6053
6049
  "<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"forma\">\n" +
6054
6050
  "<div class=\"row\">\n" +
6055
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6056
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6057
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6058
- "</div>\n" +
6051
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6059
6052
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6060
6053
  "<div class=\"form-group\" ng-class=\"{\n" +
6061
6054
  " 'has-feedback': showValid && !hideValid,\n" +
@@ -6070,7 +6063,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6070
6063
  "</div>\n" +
6071
6064
  "<div ng-if=\"forma.$error && forma.$dirty\">\n" +
6072
6065
  "<div class=\"error-message\" ng-if=\"forma.$dirty && forma.$error.email\" translate translate-context=\"Nice\">Email is not valid.</div>\n" +
6073
- "<div class=\"error-message\" ng-if=\"forma.$dirty && forma.$error.pattern\" translate translate-context=\"Nice\">This field requires a specific pattern.</div>\n" +
6066
+ "<div class=\"error-message\" ng-if=\"forma.$dirty && forma.$error.pattern\">\n" +
6067
+ "<span ng-if=\"regexError\">{{ regexError }}</span>\n" +
6068
+ "<span ng-if=\"!regexError\" translate translate-context=\"Nice\">This field requires a specific pattern.</span>\n" +
6069
+ "</div>\n" +
6074
6070
  "<div class=\"error-message\" ng-if=\"forma.$error.minlength\">\n" +
6075
6071
  "<translate translate-context=\"Nice\">Your input is too short. It must contain at least</translate>&nbsp;{{ minlength }}&nbsp;<translate translate-context=\"Nice\">characters</translate>.\n" +
6076
6072
  "</div>\n" +
@@ -6087,15 +6083,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6087
6083
  $templateCache.put('src/components/nice-label/nice-label.html',
6088
6084
  "<div class=\"nice-component nice-label\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
6089
6085
  "<div class=\"row\">\n" +
6090
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6091
- "<div class=\"nice-title-text\">{{ title }}</div>\n" +
6092
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6093
- "</div>\n" +
6086
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6094
6087
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
6095
6088
  "<p class=\"value\">{{ value }}</p>\n" +
6096
6089
  "</div>\n" +
6097
6090
  "</div>\n" +
6098
- "</div>\n"
6091
+ "</div>"
6099
6092
  );
6100
6093
 
6101
6094
 
@@ -6121,20 +6114,17 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6121
6114
  $templateCache.put('src/components/nice-number/nice-number.html',
6122
6115
  "<div class=\"nice-component nice-number\" ng-form=\"niceNumberForm\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
6123
6116
  "<div ng-class=\"{'row' : !disableRow}\">\n" +
6124
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6125
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6126
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6127
- "</div>\n" +
6128
- "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6129
- "<div class=\"input-group\" ng-class=\"{'has-warning': !disabled && niceNumberForm.$invalid && niceNumberForm.$dirty}\">\n" +
6117
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6118
+ "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6119
+ "<div class=\"input-group\" ng-class=\"{'has-warning': !isDisabled && niceNumberForm.$invalid && niceNumberForm.$dirty}\">\n" +
6130
6120
  "<span class=\"input-group-btn\">\n" +
6131
- "<button class=\"btn btn-default btn-left\" type=\"button\" ng-disabled=\"!canSubstract\" ng-click=\"subtract()\" tabindex=\"-1\">\n" +
6121
+ "<button class=\"btn btn-default btn-left\" type=\"button\" ng-disabled=\"!canSubstract || isDisabled\" ng-click=\"subtract()\" tabindex=\"-1\">\n" +
6132
6122
  "<nice-icon icon=\"icon-minus\"></nice-icon>\n" +
6133
6123
  "</button>\n" +
6134
6124
  "</span>\n" +
6135
- "<input type=\"number\" step=\"{{ step }}\" ng-change=\"inputChanged()\" class=\"form-control\" max=\"{{ max }}\" min=\"{{ min }}\" ng-model=\"model\">\n" +
6125
+ "<input type=\"number\" step=\"{{ step }}\" ng-change=\"inputChanged()\" class=\"form-control\" max=\"{{ max }}\" min=\"{{ min }}\" ng-disabled=\"isDisabled\" ng-model=\"model\">\n" +
6136
6126
  "<span class=\"input-group-btn\">\n" +
6137
- "<button class=\"btn btn-default btn-right\" type=\"button\" ng-disabled=\"!canAdd\" ng-click=\"add()\" tabindex=\"-1\">\n" +
6127
+ "<button class=\"btn btn-default btn-right\" type=\"button\" ng-disabled=\"!canAdd || isDisabled\" ng-click=\"add()\" tabindex=\"-1\">\n" +
6138
6128
  "<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
6139
6129
  "</button>\n" +
6140
6130
  "</span>\n" +
@@ -6163,10 +6153,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6163
6153
  $templateCache.put('src/components/nice-percent/nice-percent.html',
6164
6154
  "<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
6165
6155
  "<div class=\"row\">\n" +
6166
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6167
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6168
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6169
- "</div>\n" +
6156
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6170
6157
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6171
6158
  "<div class=\"input-group has-feedback symbol\" ng-class=\"{\n" +
6172
6159
  " 'has-warning': !isDisabled && form.$invalid && form.$dirty && !hideValid,\n" +
@@ -6200,10 +6187,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6200
6187
  $templateCache.put('src/components/nice-progress-bar/nice-progress-bar.html',
6201
6188
  "<div class=\"nice-component nice-progress-bar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
6202
6189
  "<div class=\"row\">\n" +
6203
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6204
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6205
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6206
- "</div>\n" +
6190
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6207
6191
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
6208
6192
  "<div class=\"progress\">\n" +
6209
6193
  "<div class=\"progress-value\">{{ value }} / {{ max }}</div>\n" +
@@ -6220,10 +6204,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6220
6204
  $templateCache.put('src/components/nice-quantity/nice-quantity.html',
6221
6205
  "<div class=\"nice-component nice-quantity\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
6222
6206
  "<div class=\"row\">\n" +
6223
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6224
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6225
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6226
- "</div>\n" +
6207
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6227
6208
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6228
6209
  "<div class=\"input-group\">\n" +
6229
6210
  "<button class=\"btn btn-default btn-left\" ng-click=\"sub()\" type=\"button\" ng-disabled=\"isDisabled\" tabindex=\"-1\">\n" +
@@ -6243,10 +6224,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6243
6224
  $templateCache.put('src/components/nice-search/nice-search.html',
6244
6225
  "<ng-form class=\"nice-component nice-input nice-search\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline}\" name=\"form\">\n" +
6245
6226
  "<div class=\"row\">\n" +
6246
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6247
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
6248
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6249
- "</div>\n" +
6227
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6250
6228
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6251
6229
  "<div class=\"input-group\" ng-class=\"{\n" +
6252
6230
  " 'disabled': isDisabled,\n" +
@@ -6284,10 +6262,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6284
6262
  $templateCache.put('src/components/nice-search2/nice-search2.html',
6285
6263
  "<ng-form class=\"nice-component nice-input nice-search2\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
6286
6264
  "<div class=\"row\">\n" +
6287
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
6288
- "<div class=\"nice-title-text\">{{ title }}</div>\n" +
6289
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6290
- "</div>\n" +
6265
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6291
6266
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
6292
6267
  "<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" +
6293
6268
  "<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" +
@@ -6316,15 +6291,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6316
6291
  $templateCache.put('src/components/nice-slot/nice-slot.html',
6317
6292
  "<div class=\"nice-component nice-slot\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
6318
6293
  "<div class=\"row\">\n" +
6319
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\">\n" +
6320
- "<div class=\"nice-title-text\" ng-if=\"title\">{{ title }}</div>\n" +
6321
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
6322
- "</div>\n" +
6294
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
6323
6295
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
6324
6296
  "<ng-transclude></ng-transclude>\n" +
6325
6297
  "</div>\n" +
6326
6298
  "</div>\n" +
6327
- "</div>\n"
6299
+ "</div>"
6328
6300
  );
6329
6301
 
6330
6302
 
@@ -7203,10 +7175,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7203
7175
  $templateCache.put('src/components/nice-time-picker/nice-time-picker.html',
7204
7176
  "<div class=\"nice-component nice-time-picker\" ng-form=\"forma\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
7205
7177
  "<div class=\"row\">\n" +
7206
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
7207
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
7208
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7209
- "</div>\n" +
7178
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7210
7179
  "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
7211
7180
  "<div class=\"input-group\" ng-class=\"{\n" +
7212
7181
  " 'has-warning': !isDisabled && forma.$invalid && forma.$dirty,\n" +
@@ -7244,6 +7213,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7244
7213
  );
7245
7214
 
7246
7215
 
7216
+ $templateCache.put('src/components/nice-title/nice-title.html',
7217
+ "<div class=\"nice-title col-xs-12\" ng-class=\"[labelWidth ? labelWidth : 'col-sm-4', {'nice-title-empty': !title && !help} ]\" ng-if=\"title\">\n" +
7218
+ "<div class=\"nice-title-text\">{{ title }}<span class=\"nice-title-required\" ng-if=\"required\">*</span></div>\n" +
7219
+ "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7220
+ "</div>"
7221
+ );
7222
+
7223
+
7247
7224
  $templateCache.put('src/components/nice-toast/nice-toast.html',
7248
7225
  "<div class=\"nice-toasts\" ng-class=\"position\">\n" +
7249
7226
  "<div class=\"nice-toast\" ng-class=\"toast.type\" ng-repeat=\"toast in toasts\">{{ toast.message }}</div>\n" +
@@ -7254,10 +7231,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7254
7231
  $templateCache.put('src/components/nice-upload/nice-upload.html',
7255
7232
  "<ng-form class=\"nice-component nice-upload\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
7256
7233
  "<div class=\"row\">\n" +
7257
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
7258
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
7259
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7260
- "</div>\n" +
7234
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7261
7235
  "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
7262
7236
  "<div class=\"nice-upload-area\">\n" +
7263
7237
  "<div class=\"input-area\" ng-class=\"{ 'dragging': dragging || draggingGlobal }\">\n" +
@@ -7281,15 +7255,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7281
7255
  $templateCache.put('src/components/nice-yesno/nice-yesno.html',
7282
7256
  "<div class=\"nice-component nice-yesno\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formYesno\">\n" +
7283
7257
  "<div class=\"row\">\n" +
7284
- "<div class=\"nice-title col-xs-12\" ng-class=\"labelWidth ? labelWidth : 'col-sm-4'\" ng-if=\"title\">\n" +
7285
- "<div class=\"nice-title-text\">{{ title }}<span ng-if=\"required\">*</span></div>\n" +
7286
- "<nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
7287
- "</div>\n" +
7288
- "<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
7289
- "<div class=\"yesno-wrapper noselect\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
7258
+ "<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
7259
+ "<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
7260
+ "<div class=\"yesno-wrapper noselect\">\n" +
7290
7261
  "<button class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\">{{ yes }}</button>\n" +
7291
7262
  "<button class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\">{{ no }}</button>\n" +
7292
- "<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\">{{ state }}</button>\n" +
7263
+ "<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\" ng-disabled=\"isDisabled\">{{ state }}</button>\n" +
7293
7264
  "</div>\n" +
7294
7265
  "</div>\n" +
7295
7266
  "</div>\n" +