nice-elements 1.7.3 → 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.
- package/CHANGELOG.md +10 -0
- package/README.md +6 -5
- package/bower.json +1 -1
- package/dist/nice.js +218 -256
- package/dist/nice.min.js +1 -1
- package/dist/style.css +26 -11
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-calendar/nice-calendar.html +9 -12
- package/src/components/nice-choice/nice-choice.html +3 -6
- package/src/components/nice-comment/nice-comment.html +5 -15
- package/src/components/nice-comment/nice-comment.js +7 -6
- package/src/components/nice-comment/nice-comment.scss +13 -9
- package/src/components/nice-date/nice-date.html +11 -14
- package/src/components/nice-date-input/nice-date-input.html +2 -5
- package/src/components/nice-date-range/nice-date-range.html +2 -5
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +2 -5
- package/src/components/nice-datetime-picker/nice-datetime-picker.js +42 -41
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +3 -8
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +19 -18
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +3 -6
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +1 -1
- package/src/components/nice-dropdown/nice-dropdown.html +2 -6
- package/src/components/nice-dropdown/nice-dropdown.js +1 -2
- package/src/components/nice-dropdown/nice-dropdown.scss +3 -2
- package/src/components/nice-dropdown-date/nice-dropdown-date.html +7 -33
- package/src/components/nice-dropdown-date/nice-dropdown-date.scss +15 -15
- package/src/components/nice-dropdown-old/nice-dropdown-old.html +3 -13
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +1 -1
- package/src/components/nice-help/nice-help.html +0 -1
- package/src/components/nice-help/nice-help.js +1 -0
- package/src/components/nice-icon/nice-icon.html +1 -1
- package/src/components/nice-icon/nice-icon.js +1 -0
- package/src/components/nice-input/nice-input.html +2 -5
- package/src/components/nice-label/nice-label.html +3 -6
- package/src/components/nice-number/nice-number.html +7 -10
- package/src/components/nice-number/nice-number.js +11 -11
- package/src/components/nice-percent/nice-percent.html +5 -22
- package/src/components/nice-percent/nice-percent.js +12 -12
- package/src/components/nice-progress-bar/nice-progress-bar.html +2 -5
- package/src/components/nice-quantity/nice-quantity.html +2 -5
- package/src/components/nice-search/nice-search.html +2 -5
- package/src/components/nice-search/nice-search.js +32 -32
- package/src/components/nice-search2/nice-search2.html +2 -5
- package/src/components/nice-slot/nice-slot.html +3 -6
- package/src/components/nice-slot/nice-slot.js +1 -1
- package/src/components/nice-time-picker/nice-time-picker.html +2 -5
- package/src/components/nice-title/nice-title.html +4 -0
- package/src/components/nice-title/nice-title.js +21 -0
- package/src/components/nice-upload/nice-upload.html +2 -5
- package/src/components/nice-yesno/nice-yesno.html +5 -8
- package/src/styles/_nice-common.scss +12 -1
- package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/_nice-time-picker.scssc +0 -0
- package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/nice-time-picker.scssc +0 -0
- package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/_nice-comment.scssc +0 -0
- package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/nice-comment.scssc +0 -0
- package/.sass-cache/1fa02acb98a7cebbbaaccd8ef62dedeb80075746/nice-quantity.scssc +0 -0
- package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/_nice-date-range.scssc +0 -0
- package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/nice-date-range.scssc +0 -0
- package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/_nice-button.scssc +0 -0
- package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/nice-button.scssc +0 -0
- package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/_nice-steps.scssc +0 -0
- package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/nice-steps.scssc +0 -0
- package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/_nice-input.scssc +0 -0
- package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/nice-input.scssc +0 -0
- package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/_nice-calendar.scssc +0 -0
- package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/nice-calendar.scssc +0 -0
- package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/_nice-notification.scssc +0 -0
- package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/nice-notification.scssc +0 -0
- package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/_nice-datetimerange-picker.scssc +0 -0
- package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/nice-datetimerange-picker.scssc +0 -0
- package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/_nice-yesno.scssc +0 -0
- package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/nice-yesno.scssc +0 -0
- package/.sass-cache/52335f6e13d042b07835d519f4267df952f94036/nice-dropdown-old.scssc +0 -0
- package/.sass-cache/52f492b94dd9f4468e58d8aa11ba26ac9cdcbbcf/nice-progress-bar.scssc +0 -0
- package/.sass-cache/6629f6f7b13f350c585c990e5699145891af0805/nice-help.scssc +0 -0
- package/.sass-cache/6dfd23eda68e4cff55e32e19d3bc5f0e6095bda9/nice-search2.scssc +0 -0
- package/.sass-cache/7870950c279970f0acdfb180a33c0d63a93fc5b0/nice-upload.scssc +0 -0
- package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/_nice-button-toggle.scssc +0 -0
- package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/nice-button-toggle.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_bootstrap-variables.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice-common.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_variables.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/main.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/mian.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/style.scssc +0 -0
- package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/_nice-date.scssc +0 -0
- package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/nice-date.scssc +0 -0
- package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/_nice-number.scssc +0 -0
- package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/nice-number.scssc +0 -0
- package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/_nice-checkbox.scssc +0 -0
- package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/nice-checkbox.scssc +0 -0
- package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/_nice-dropdown-date.scssc +0 -0
- package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/nice-dropdown-date.scssc +0 -0
- package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/_nice-choice.scssc +0 -0
- package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/nice-choice.scssc +0 -0
- package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/_nice-datetimerange-picker-2.scssc +0 -0
- package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/nice-datetimerange-picker-2.scssc +0 -0
- package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_mixins.scssc +0 -0
- package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_variables.scssc +0 -0
- package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/_nice-loader.scssc +0 -0
- package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/nice-loader.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_alerts.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_background-variant.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_border-radius.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_buttons.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_center-block.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_clearfix.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_forms.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_gradients.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid-framework.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_hide-text.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_image.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_labels.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_list-group.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-divider.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-vertical-align.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_opacity.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_pagination.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_panels.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_progress-bar.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-filter.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-text.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_resize.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_responsive-visibility.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_size.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_tab-focus.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_table-row.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-emphasis.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-overflow.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_vendor-prefixes.scssc +0 -0
- package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/_nice-datetime-picker.scssc +0 -0
- package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/nice-datetime-picker.scssc +0 -0
- package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/_nice-search.scssc +0 -0
- package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/nice-search.scssc +0 -0
- package/.sass-cache/fd9f4f9e07e96510c3ea7c8543d71e342ea61d29/_nice-dropdown.scssc +0 -0
- 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
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
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
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
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
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1399
|
+
$scope.closeDtp = function (response) {
|
|
1400
|
+
$scope.isOpen = false;
|
|
1401
|
+
$scope.$broadcast('dtp-close-click');
|
|
1402
|
+
};
|
|
1401
1403
|
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1404
|
+
$scope.$on('dateSelected', function () {
|
|
1405
|
+
$scope.formDatetimePicker.$setDirty();
|
|
1406
|
+
});
|
|
1405
1407
|
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
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
|
-
|
|
1413
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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
|
},
|
|
@@ -3938,12 +3942,12 @@ angular.module('niceElements')
|
|
|
3938
3942
|
scope: {
|
|
3939
3943
|
model: '=',
|
|
3940
3944
|
valid: '=',
|
|
3941
|
-
|
|
3945
|
+
isDisabled: '=',
|
|
3942
3946
|
title: '@?',
|
|
3943
3947
|
min: '@',
|
|
3944
3948
|
max: '@',
|
|
3945
3949
|
defaultValue: '@',
|
|
3946
|
-
required: '
|
|
3950
|
+
required: '=',
|
|
3947
3951
|
fieldWidth: '@',
|
|
3948
3952
|
labelWidth: '@',
|
|
3949
3953
|
hideError: '@',
|
|
@@ -3958,7 +3962,7 @@ angular.module('niceElements')
|
|
|
3958
3962
|
onChange: '&?'
|
|
3959
3963
|
},
|
|
3960
3964
|
|
|
3961
|
-
controller: function($scope, $timeout) {
|
|
3965
|
+
controller: function ($scope, $timeout) {
|
|
3962
3966
|
$scope.canAdd = true;
|
|
3963
3967
|
$scope.canSubstract = true;
|
|
3964
3968
|
$scope.preventZero = $scope.preventZero == "true";
|
|
@@ -3999,7 +4003,7 @@ angular.module('niceElements')
|
|
|
3999
4003
|
if (!$scope.model) {
|
|
4000
4004
|
$scope.model = $scope.defaultValue;
|
|
4001
4005
|
} else {
|
|
4002
|
-
if(parseFloat($scope.model)) {
|
|
4006
|
+
if (parseFloat($scope.model)) {
|
|
4003
4007
|
$scope.model = parseFloat($scope.model);
|
|
4004
4008
|
} else {
|
|
4005
4009
|
$scope.model = $scope.defaultValue;
|
|
@@ -4007,7 +4011,7 @@ angular.module('niceElements')
|
|
|
4007
4011
|
}
|
|
4008
4012
|
|
|
4009
4013
|
// Check canAdd or canSubtract
|
|
4010
|
-
$scope.check = function() {
|
|
4014
|
+
$scope.check = function () {
|
|
4011
4015
|
if ($scope.required && ($scope.model == undefined || $scope.model == null)) {
|
|
4012
4016
|
$scope.niceNumberForm.$setValidity("no-value", false);
|
|
4013
4017
|
} else {
|
|
@@ -4039,25 +4043,25 @@ angular.module('niceElements')
|
|
|
4039
4043
|
|
|
4040
4044
|
|
|
4041
4045
|
// Check when load
|
|
4042
|
-
$timeout(function() {
|
|
4046
|
+
$timeout(function () {
|
|
4043
4047
|
$scope.check();
|
|
4044
4048
|
});
|
|
4045
4049
|
|
|
4046
4050
|
|
|
4047
4051
|
// On input change
|
|
4048
|
-
$scope.inputChanged = function() {
|
|
4052
|
+
$scope.inputChanged = function () {
|
|
4049
4053
|
$scope.check();
|
|
4050
4054
|
};
|
|
4051
|
-
|
|
4055
|
+
|
|
4052
4056
|
|
|
4053
4057
|
// Watch for model change
|
|
4054
|
-
$scope.$watch("model", function() {
|
|
4058
|
+
$scope.$watch("model", function () {
|
|
4055
4059
|
$scope.check();
|
|
4056
4060
|
});
|
|
4057
4061
|
|
|
4058
4062
|
|
|
4059
4063
|
// Add to the value
|
|
4060
|
-
$scope.add = function() {
|
|
4064
|
+
$scope.add = function () {
|
|
4061
4065
|
var result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).plus($scope.step).toNumber(); //.toFixed($scope.decimals);
|
|
4062
4066
|
if ($scope.max) {
|
|
4063
4067
|
if (result <= parseFloat($scope.max)) {
|
|
@@ -4073,7 +4077,7 @@ angular.module('niceElements')
|
|
|
4073
4077
|
|
|
4074
4078
|
|
|
4075
4079
|
// Subtract to the value
|
|
4076
|
-
$scope.subtract = function() {
|
|
4080
|
+
$scope.subtract = function () {
|
|
4077
4081
|
var result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).minus($scope.step).toNumber();
|
|
4078
4082
|
if (result >= Number($scope.min)) {
|
|
4079
4083
|
$scope.model = result;
|
|
@@ -4104,7 +4108,7 @@ angular.module('niceElements')
|
|
|
4104
4108
|
valid: '=',
|
|
4105
4109
|
isDisabled: '=',
|
|
4106
4110
|
title: '@?',
|
|
4107
|
-
required: '
|
|
4111
|
+
required: '=',
|
|
4108
4112
|
fieldWidth: '@',
|
|
4109
4113
|
labelWidth: '@',
|
|
4110
4114
|
placeholder: '@',
|
|
@@ -4123,27 +4127,27 @@ angular.module('niceElements')
|
|
|
4123
4127
|
attrs.noMargin = angular.isDefined(attrs.noMargin);
|
|
4124
4128
|
},
|
|
4125
4129
|
|
|
4126
|
-
controller: function($rootScope, $scope) {
|
|
4130
|
+
controller: function ($rootScope, $scope) {
|
|
4127
4131
|
// Link form object with valid object
|
|
4128
|
-
if (angular.isDefined($scope.valid)){
|
|
4132
|
+
if (angular.isDefined($scope.valid)) {
|
|
4129
4133
|
$scope.valid = $scope.form;
|
|
4130
4134
|
}
|
|
4131
4135
|
|
|
4132
|
-
var roundN = function(number, decimals){
|
|
4136
|
+
var roundN = function (number, decimals) {
|
|
4133
4137
|
return Number(new Decimal(String(number)).toFixed(decimals, 4));
|
|
4134
4138
|
};
|
|
4135
4139
|
|
|
4136
|
-
if (angular.isDefined($scope.model)){
|
|
4140
|
+
if (angular.isDefined($scope.model)) {
|
|
4137
4141
|
$scope.internalModel = roundN((angular.copy($scope.model) * 100), 6);
|
|
4138
4142
|
} else {
|
|
4139
4143
|
$scope.internalModel = "0";
|
|
4140
4144
|
$scope.model = 0;
|
|
4141
4145
|
}
|
|
4142
4146
|
|
|
4143
|
-
$scope.change = function(){
|
|
4144
|
-
if($scope.internalModel){
|
|
4147
|
+
$scope.change = function () {
|
|
4148
|
+
if ($scope.internalModel) {
|
|
4145
4149
|
$scope.internalModel = String($scope.internalModel).replace(',', '.');
|
|
4146
|
-
if(parseFloat($scope.internalModel) > 100) $scope.internalModel = 100;
|
|
4150
|
+
if (parseFloat($scope.internalModel) > 100) $scope.internalModel = 100;
|
|
4147
4151
|
$scope.model = roundN(parseFloat($scope.internalModel) / 100, 6);
|
|
4148
4152
|
} else {
|
|
4149
4153
|
$scope.model = 0;
|
|
@@ -4151,9 +4155,9 @@ angular.module('niceElements')
|
|
|
4151
4155
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
4152
4156
|
};
|
|
4153
4157
|
|
|
4154
|
-
$scope.keypress = function(event) {
|
|
4158
|
+
$scope.keypress = function (event) {
|
|
4155
4159
|
if (event.charCode == 46 || event.charCode == 44) { // Handle "." and "," key (only one allowed)
|
|
4156
|
-
if($scope.internalModel.indexOf(".") >= 0){
|
|
4160
|
+
if ($scope.internalModel.indexOf(".") >= 0) {
|
|
4157
4161
|
event.preventDefault();
|
|
4158
4162
|
return false;
|
|
4159
4163
|
}
|
|
@@ -4166,13 +4170,13 @@ angular.module('niceElements')
|
|
|
4166
4170
|
};
|
|
4167
4171
|
|
|
4168
4172
|
$scope.$watch('model', function (value_new, value_old) {
|
|
4169
|
-
if (value_new){
|
|
4173
|
+
if (value_new) {
|
|
4170
4174
|
$scope.internalModel = roundN(angular.copy($scope.model) * 100, 6);
|
|
4171
4175
|
}
|
|
4172
4176
|
});
|
|
4173
4177
|
|
|
4174
4178
|
$scope.$watch('internalModel', function (value_new, value_old) {
|
|
4175
|
-
if(!$scope.internalModel){
|
|
4179
|
+
if (!$scope.internalModel) {
|
|
4176
4180
|
$scope.internalModel = "0";
|
|
4177
4181
|
}
|
|
4178
4182
|
});
|
|
@@ -4435,7 +4439,7 @@ angular.module('niceElements')
|
|
|
4435
4439
|
isDisabled: '=',
|
|
4436
4440
|
title: '@?',
|
|
4437
4441
|
placeholder: '@',
|
|
4438
|
-
required: '
|
|
4442
|
+
required: '=',
|
|
4439
4443
|
fieldWidth: '@',
|
|
4440
4444
|
labelWidth: '@',
|
|
4441
4445
|
hideValid: '@',
|
|
@@ -4476,38 +4480,38 @@ angular.module('niceElements')
|
|
|
4476
4480
|
// });
|
|
4477
4481
|
|
|
4478
4482
|
// Set default text
|
|
4479
|
-
scope.$watch("setText", function(){
|
|
4483
|
+
scope.$watch("setText", function () {
|
|
4480
4484
|
scope.modelString = scope.setText;
|
|
4481
4485
|
});
|
|
4482
4486
|
|
|
4483
4487
|
// Check if object is defined
|
|
4484
|
-
if(angular.isDefined(scope.model)){
|
|
4488
|
+
if (angular.isDefined(scope.model)) {
|
|
4485
4489
|
if (angular.isDefined(scope.keyForInputLabel))
|
|
4486
4490
|
scope.modelString = scope.model[scope.keyForInputLabel];
|
|
4487
4491
|
else
|
|
4488
4492
|
scope.modelString = scope.model;
|
|
4489
4493
|
}
|
|
4490
4494
|
|
|
4491
|
-
var setValid = function(isValid){
|
|
4492
|
-
if(scope.required){
|
|
4495
|
+
var setValid = function (isValid) {
|
|
4496
|
+
if (scope.required) {
|
|
4493
4497
|
scope.form.$setValidity('objectSelected', isValid);
|
|
4494
4498
|
}
|
|
4495
4499
|
};
|
|
4496
4500
|
|
|
4497
|
-
scope.$watch('model', function(newValue){
|
|
4498
|
-
if(scope.model && scope.model.id){
|
|
4501
|
+
scope.$watch('model', function (newValue) {
|
|
4502
|
+
if (scope.model && scope.model.id) {
|
|
4499
4503
|
setValid(true);
|
|
4500
4504
|
} else {
|
|
4501
4505
|
setValid(false);
|
|
4502
4506
|
}
|
|
4503
4507
|
});
|
|
4504
4508
|
|
|
4505
|
-
scope.selectRow = function(obj){
|
|
4506
|
-
if (angular.isDefined(scope.refreshSelectedCallback)){
|
|
4509
|
+
scope.selectRow = function (obj) {
|
|
4510
|
+
if (angular.isDefined(scope.refreshSelectedCallback)) {
|
|
4507
4511
|
scope.refreshSelectedCallback(obj);
|
|
4508
4512
|
}
|
|
4509
4513
|
|
|
4510
|
-
if (scope.resetSearchInput){
|
|
4514
|
+
if (scope.resetSearchInput) {
|
|
4511
4515
|
scope.model = null;
|
|
4512
4516
|
} else {
|
|
4513
4517
|
scope.model = obj;
|
|
@@ -4522,10 +4526,10 @@ angular.module('niceElements')
|
|
|
4522
4526
|
|
|
4523
4527
|
};
|
|
4524
4528
|
|
|
4525
|
-
scope.clear = function(){
|
|
4529
|
+
scope.clear = function () {
|
|
4526
4530
|
scope.results = [];
|
|
4527
4531
|
|
|
4528
|
-
if(scope.clearInput){
|
|
4532
|
+
if (scope.clearInput) {
|
|
4529
4533
|
scope.modelString = "";
|
|
4530
4534
|
}
|
|
4531
4535
|
|
|
@@ -4533,7 +4537,7 @@ angular.module('niceElements')
|
|
|
4533
4537
|
};
|
|
4534
4538
|
|
|
4535
4539
|
// Close the dropdown if clicked outside
|
|
4536
|
-
var onClick = function(event){
|
|
4540
|
+
var onClick = function (event) {
|
|
4537
4541
|
var isClickedElementChildOfPopup = element.find(event.target).length > 0;
|
|
4538
4542
|
|
|
4539
4543
|
if (isClickedElementChildOfPopup) return;
|
|
@@ -4546,24 +4550,24 @@ angular.module('niceElements')
|
|
|
4546
4550
|
angular.element(element).on('click', onClick);
|
|
4547
4551
|
|
|
4548
4552
|
// 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){
|
|
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) {
|
|
4551
4555
|
event.preventDefault();
|
|
4552
4556
|
|
|
4553
|
-
if(event.keyCode == 27){ // Escape
|
|
4557
|
+
if (event.keyCode == 27) { // Escape
|
|
4554
4558
|
scope.modelString = "";
|
|
4555
4559
|
scope.clear();
|
|
4556
4560
|
}
|
|
4557
4561
|
|
|
4558
|
-
if(event.keyCode == 13){ // Enter
|
|
4562
|
+
if (event.keyCode == 13) { // Enter
|
|
4559
4563
|
scope.selectRow(scope.results[scope.selectedIndex]);
|
|
4560
4564
|
}
|
|
4561
4565
|
|
|
4562
|
-
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
|
|
4563
4567
|
scope.selectedIndex += 1;
|
|
4564
4568
|
}
|
|
4565
4569
|
|
|
4566
|
-
if(event.keyCode == 38 && scope.results && scope.selectedIndex-1 >= 0){ // Up
|
|
4570
|
+
if (event.keyCode == 38 && scope.results && scope.selectedIndex - 1 >= 0) { // Up
|
|
4567
4571
|
scope.selectedIndex -= 1;
|
|
4568
4572
|
}
|
|
4569
4573
|
|
|
@@ -4581,13 +4585,13 @@ angular.module('niceElements')
|
|
|
4581
4585
|
});
|
|
4582
4586
|
|
|
4583
4587
|
},
|
|
4584
|
-
controller: function($scope, $timeout, $element) {
|
|
4588
|
+
controller: function ($scope, $timeout, $element) {
|
|
4585
4589
|
$scope.id = Math.random().toString(36).substring(7);
|
|
4586
4590
|
$scope.loading = false;
|
|
4587
4591
|
$scope.noResults = false;
|
|
4588
4592
|
$scope.requests = 0;
|
|
4589
4593
|
|
|
4590
|
-
$scope.focus = function() {
|
|
4594
|
+
$scope.focus = function () {
|
|
4591
4595
|
var input = $element[0].getElementsByTagName('input')[0];
|
|
4592
4596
|
if (input) {
|
|
4593
4597
|
input.focus();
|
|
@@ -4600,14 +4604,14 @@ angular.module('niceElements')
|
|
|
4600
4604
|
}
|
|
4601
4605
|
|
|
4602
4606
|
$scope.results = [];
|
|
4603
|
-
var updateList = function(results, requestNumber){
|
|
4607
|
+
var updateList = function (results, requestNumber) {
|
|
4604
4608
|
|
|
4605
|
-
if(results){
|
|
4606
|
-
if ($scope.requests == requestNumber){
|
|
4609
|
+
if (results) {
|
|
4610
|
+
if ($scope.requests == requestNumber) {
|
|
4607
4611
|
$scope.noResults = results.length == 0;
|
|
4608
4612
|
$scope.results = results;
|
|
4609
4613
|
|
|
4610
|
-
if(!$scope.noResults){
|
|
4614
|
+
if (!$scope.noResults) {
|
|
4611
4615
|
$scope.selectedIndex = 0;
|
|
4612
4616
|
}
|
|
4613
4617
|
}
|
|
@@ -4622,13 +4626,13 @@ angular.module('niceElements')
|
|
|
4622
4626
|
if ($scope.timer_promise)
|
|
4623
4627
|
$timeout.cancel($scope.timer_promise);
|
|
4624
4628
|
|
|
4625
|
-
$scope.timer_promise = $timeout(function() {
|
|
4629
|
+
$scope.timer_promise = $timeout(function () {
|
|
4626
4630
|
if ($scope.onChange) $scope.onChange({ model: $scope.model, modelString: $scope.modelString });
|
|
4627
4631
|
$scope.requests = $scope.requests + 1;
|
|
4628
4632
|
var requestNumber = angular.copy($scope.requests);
|
|
4629
|
-
$scope.refreshFunction($scope.modelString).then(function(response){
|
|
4633
|
+
$scope.refreshFunction($scope.modelString).then(function (response) {
|
|
4630
4634
|
updateList(response, requestNumber);
|
|
4631
|
-
}, function(error){
|
|
4635
|
+
}, function (error) {
|
|
4632
4636
|
$scope.loading = false;
|
|
4633
4637
|
});
|
|
4634
4638
|
// Why was this here?
|
|
@@ -4638,9 +4642,9 @@ angular.module('niceElements')
|
|
|
4638
4642
|
};
|
|
4639
4643
|
|
|
4640
4644
|
// If search button is clicked set focus or make request
|
|
4641
|
-
$scope.search = function(){
|
|
4642
|
-
if (!$scope.isDisabled){
|
|
4643
|
-
if($scope.showDropdown) {
|
|
4645
|
+
$scope.search = function () {
|
|
4646
|
+
if (!$scope.isDisabled) {
|
|
4647
|
+
if ($scope.showDropdown) {
|
|
4644
4648
|
$scope.updateSearch();
|
|
4645
4649
|
}
|
|
4646
4650
|
$scope.focus();
|
|
@@ -4648,7 +4652,7 @@ angular.module('niceElements')
|
|
|
4648
4652
|
};
|
|
4649
4653
|
|
|
4650
4654
|
// Clear model
|
|
4651
|
-
$scope.remove = function(){
|
|
4655
|
+
$scope.remove = function () {
|
|
4652
4656
|
$scope.model = null;
|
|
4653
4657
|
$scope.modelString = null;
|
|
4654
4658
|
}
|
|
@@ -4937,7 +4941,7 @@ angular.module('niceElements')
|
|
|
4937
4941
|
link: function postLink(scope, element, attrs) {
|
|
4938
4942
|
if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
|
|
4939
4943
|
if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
|
|
4940
|
-
if (!attrs.title) { attrs.
|
|
4944
|
+
if (!attrs.title) { attrs.title = ' '; }
|
|
4941
4945
|
}
|
|
4942
4946
|
};
|
|
4943
4947
|
});
|
|
@@ -5045,6 +5049,28 @@ angular.module('niceElements')
|
|
|
5045
5049
|
});
|
|
5046
5050
|
'use strict';
|
|
5047
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
|
+
|
|
5048
5074
|
/**
|
|
5049
5075
|
* @ngdoc directive
|
|
5050
5076
|
* @name niceElements.directive:niceToast
|
|
@@ -5455,18 +5481,15 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5455
5481
|
$templateCache.put('src/components/nice-calendar/nice-calendar.html',
|
|
5456
5482
|
"<div class=\"nice-component nice-calendar\" ng-form=\"formCalendar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5457
5483
|
"<div class=\"row\">\n" +
|
|
5458
|
-
"<
|
|
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" +
|
|
5484
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5462
5485
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
5463
5486
|
"<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
|
|
5464
5487
|
"<div class=\"nice-calendar-wrapper\">\n" +
|
|
5465
5488
|
"<div class=\"nice-calendar-weeks\">\n" +
|
|
5466
5489
|
"<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" +
|
|
5490
|
+
"<button class=\"btn\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-left\"></i></button>\n" +
|
|
5468
5491
|
"<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" +
|
|
5492
|
+
"<button class=\"btn\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\" ng-disabled=\"isDisabled\"><i class=\"fa fa-angle-right\"></i></button>\n" +
|
|
5470
5493
|
"</div>\n" +
|
|
5471
5494
|
"<div class=\"week names\">\n" +
|
|
5472
5495
|
"<span class=\"day\" translate translate-context=\"Nice\">Mon</span>\n" +
|
|
@@ -5492,7 +5515,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5492
5515
|
" (color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||\n" +
|
|
5493
5516
|
" (color && isSameDay(day.date, startDate)) && {'background-color': color } ||\n" +
|
|
5494
5517
|
" (color && isSameDay(day.date, endDate)) && {'background-color': color }\n" +
|
|
5495
|
-
" \" 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" +
|
|
5496
5519
|
"{{ day.number }}\n" +
|
|
5497
5520
|
"<p class=\"popup\" ng-if=\"!hideHover\">{{ popupText }}</p>\n" +
|
|
5498
5521
|
"</button>\n" +
|
|
@@ -5500,22 +5523,22 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5500
5523
|
"</div>\n" +
|
|
5501
5524
|
"<div class=\"nice-calendar-time\" ng-if=\"time\">\n" +
|
|
5502
5525
|
"<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" +
|
|
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" +
|
|
5504
5527
|
"</select>\n" +
|
|
5505
5528
|
"</div>\n" +
|
|
5506
5529
|
"<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" +
|
|
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" +
|
|
5508
5531
|
"</select>\n" +
|
|
5509
5532
|
"</div>\n" +
|
|
5510
5533
|
"<div class=\"time-picker-icon\">\n" +
|
|
5511
5534
|
"<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
5512
5535
|
"</div>\n" +
|
|
5513
5536
|
"<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" +
|
|
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" +
|
|
5515
5538
|
"</select>\n" +
|
|
5516
5539
|
"</div>\n" +
|
|
5517
5540
|
"<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" +
|
|
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" +
|
|
5519
5542
|
"</select>\n" +
|
|
5520
5543
|
"</div>\n" +
|
|
5521
5544
|
"</div>\n" +
|
|
@@ -5549,14 +5572,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5549
5572
|
$templateCache.put('src/components/nice-choice/nice-choice.html',
|
|
5550
5573
|
"<div class=\"nice-component nice-choice\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formChoice\">\n" +
|
|
5551
5574
|
"<div class=\"row\">\n" +
|
|
5552
|
-
"<
|
|
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" +
|
|
5575
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5556
5576
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
5557
5577
|
"<ul class=\"list-unstyled\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
|
|
5558
5578
|
"<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" +
|
|
5579
|
+
"<button class=\"choice-checkbox\" ng-class=\"{'circle' : !multiple }\" ng-disabled=\"isDisabled\">\n" +
|
|
5560
5580
|
"<nice-icon icon=\"icon-check\"></nice-icon>\n" +
|
|
5561
5581
|
"</button>\n" +
|
|
5562
5582
|
"<div ng-transclude class=\"choice-label\">{{ getLabel(item) }}</div>\n" +
|
|
@@ -5571,25 +5591,19 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5571
5591
|
$templateCache.put('src/components/nice-comment/nice-comment.html',
|
|
5572
5592
|
"<div class=\"nice-component nice-comment\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5573
5593
|
"<div class=\"row\">\n" +
|
|
5574
|
-
"<
|
|
5575
|
-
"<div class=\"nice-
|
|
5576
|
-
"<
|
|
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" +
|
|
5577
5597
|
"</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
5598
|
"</div>\n" +
|
|
5581
|
-
"</div
|
|
5582
|
-
"</div>\n"
|
|
5599
|
+
"</div>"
|
|
5583
5600
|
);
|
|
5584
5601
|
|
|
5585
5602
|
|
|
5586
5603
|
$templateCache.put('src/components/nice-date-input/nice-date-input.html',
|
|
5587
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" +
|
|
5588
5605
|
"<div class=\"row\">\n" +
|
|
5589
|
-
"<
|
|
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" +
|
|
5606
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5593
5607
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
5594
5608
|
"<div class=\"input-group nice-date-input\" ng-show=\"date\" ng-class=\"{ 'has-warning': !disabled && niceDateInputForm.$invalid && niceDateInputForm.$dirty }\">\n" +
|
|
5595
5609
|
"<input type=\"text\" class=\"form-control\" ng-model=\"modelDate\" ng-blur=\"dateBlur($event)\" ng-disabled=\"isDisabled\">\n" +
|
|
@@ -5626,10 +5640,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5626
5640
|
$templateCache.put('src/components/nice-date-range/nice-date-range.html',
|
|
5627
5641
|
"<ng-form class=\"nice-component nice-date-range\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
5628
5642
|
"<div class=\"row\">\n" +
|
|
5629
|
-
"<
|
|
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" +
|
|
5643
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5633
5644
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
5634
5645
|
"<div class=\"input-group\">\n" +
|
|
5635
5646
|
"<input date-range-picker class=\"form-control date-picker\" type=\"text\" options=\"opts\" ng-model=\"model\">\n" +
|
|
@@ -5647,14 +5658,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5647
5658
|
"<div class=\"nice-component nice-date\" ng-form=\"forma\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5648
5659
|
"<div class=\"nice-date-background\" ng-click=\"toggleOpen()\" ng-if=\"isOpen && !inline\"></div>\n" +
|
|
5649
5660
|
"<div class=\"row\">\n" +
|
|
5650
|
-
"<
|
|
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" +
|
|
5661
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5654
5662
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
5655
5663
|
"<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
|
|
5656
5664
|
"<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" +
|
|
5665
|
+
"<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
|
|
5658
5666
|
"<span class=\"input-group-addon clickable\">\n" +
|
|
5659
5667
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
5660
5668
|
"</span>\n" +
|
|
@@ -5664,14 +5672,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5664
5672
|
"<div class=\"nice-date-date\" ng-if=\"date\" role=\"grid\">\n" +
|
|
5665
5673
|
"<div class=\"nice-date-header\">\n" +
|
|
5666
5674
|
"<span>\n" +
|
|
5667
|
-
"<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" +
|
|
5668
5676
|
"</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" +
|
|
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" +
|
|
5670
5678
|
"</select>\n" +
|
|
5671
5679
|
"</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" +
|
|
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" +
|
|
5675
5683
|
"</div>\n" +
|
|
5676
5684
|
"<div class=\"nice-date-week names\">\n" +
|
|
5677
5685
|
"<span class=\"nice-date-day\" ng-class=\"{ 'weekend': $index == 6 || $index == 5 }\" ng-repeat=\"day in weekdays\">{{ day }}</span>\n" +
|
|
@@ -5684,7 +5692,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5684
5692
|
" 'weekend': day.isWeekday,\n" +
|
|
5685
5693
|
" 'disabled': day.isDisabled,\n" +
|
|
5686
5694
|
" 'between': isBetween(day.date, model, nextDate)\n" +
|
|
5687
|
-
" }\" 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" +
|
|
5688
5696
|
"{{ day.number }}\n" +
|
|
5689
5697
|
"</button>\n" +
|
|
5690
5698
|
"</div>\n" +
|
|
@@ -5692,11 +5700,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5692
5700
|
"<div class=\"nice-date-time\" ng-if=\"time\">\n" +
|
|
5693
5701
|
"<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
5694
5702
|
"<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" +
|
|
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" +
|
|
5696
5704
|
"</div>\n" +
|
|
5697
5705
|
"<div class=\"divider\">:</div>\n" +
|
|
5698
5706
|
"<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" +
|
|
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" +
|
|
5700
5708
|
"</div>\n" +
|
|
5701
5709
|
"</div>\n" +
|
|
5702
5710
|
"</div>\n" +
|
|
@@ -5711,10 +5719,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5711
5719
|
"<div class=\"nice-component nice-datetime-picker\" name=\"form\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5712
5720
|
"<div class=\"nice-dtp-background\" ng-click=\"closeDtp(true)\" ng-if=\"isOpen\"></div>\n" +
|
|
5713
5721
|
"<div class=\"row\">\n" +
|
|
5714
|
-
"<
|
|
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" +
|
|
5722
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5718
5723
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
5719
5724
|
"<div ng-form=\"formDatetimePicker\"></div>\n" +
|
|
5720
5725
|
"<div class=\"input-group\" id=\"dropdown{{randNum}}\">\n" +
|
|
@@ -5737,13 +5742,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5737
5742
|
"<div class=\"nice-component nice-datetimerange-picker-2\" ng-form=\"formDateRangePicker\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5738
5743
|
"<div class=\"nice-dtp-background\" ng-click=\"close()\" ng-if=\"isOpen\"></div>\n" +
|
|
5739
5744
|
"<div class=\"row\">\n" +
|
|
5740
|
-
"<
|
|
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" +
|
|
5745
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5744
5746
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
5745
5747
|
"<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" +
|
|
5748
|
+
"<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
|
|
5747
5749
|
"<span class=\"input-group-addon clickable\">\n" +
|
|
5748
5750
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
5749
5751
|
"</span>\n" +
|
|
@@ -5780,16 +5782,13 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5780
5782
|
"<div class=\"nice-component nice-datetime-picker nice-datetimerange-picker\" name=\"form\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5781
5783
|
"<div class=\"nice-dtp-background\" ng-click=\"cancelClick()\" ng-if=\"showDtpRange\"></div>\n" +
|
|
5782
5784
|
"<div class=\"row\">\n" +
|
|
5783
|
-
"<
|
|
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" +
|
|
5785
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5787
5786
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
5788
5787
|
"<div ng-form=\"formDatetimeRangePicker\"></div>\n" +
|
|
5789
5788
|
"<div class=\"dropdown\">\n" +
|
|
5790
5789
|
"<div class=\"dropdown-toggle\" id=\"dropdown{{randNum}}\" role=\"button\" ng-click=\"openDtpRange()\">\n" +
|
|
5791
5790
|
"<div class=\"input-group\">\n" +
|
|
5792
|
-
"<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" +
|
|
5793
5792
|
"<span class=\"input-group-addon clickable\">\n" +
|
|
5794
5793
|
"<nice-icon ng-if=\"date != 'false'\" icon=\"icon-calendar\"></nice-icon>\n" +
|
|
5795
5794
|
"<nice-icon ng-if=\"date == 'false'\" icon=\"icon-clock\"></nice-icon>\n" +
|
|
@@ -5826,10 +5825,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5826
5825
|
$templateCache.put('src/components/nice-dropdown-date/nice-dropdown-date.html',
|
|
5827
5826
|
"<div class=\"nice-component nice-dropdown-date\" ng-form=\"dropdownDateForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5828
5827
|
"<div class=\"row\">\n" +
|
|
5829
|
-
"<
|
|
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" +
|
|
5828
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5833
5829
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[\n" +
|
|
5834
5830
|
" fieldWidth ? fieldWidth : 'col-sm-8',\n" +
|
|
5835
5831
|
" {\n" +
|
|
@@ -5850,17 +5846,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5850
5846
|
"</div>\n" +
|
|
5851
5847
|
"</div>\n" +
|
|
5852
5848
|
"</div>\n" +
|
|
5853
|
-
"</div
|
|
5849
|
+
"</div>"
|
|
5854
5850
|
);
|
|
5855
5851
|
|
|
5856
5852
|
|
|
5857
5853
|
$templateCache.put('src/components/nice-dropdown-old/nice-dropdown-old.html',
|
|
5858
5854
|
"<div class=\"nice-component nice-dropdown-old\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5859
5855
|
"<div class=\"row\">\n" +
|
|
5860
|
-
"<
|
|
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" +
|
|
5856
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5864
5857
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
5865
5858
|
"<div ng-class=\"addButtonEnable && !isDisabled ? 'input-group': ''\">\n" +
|
|
5866
5859
|
"<div class=\"btn-group\" dropdown is-open=\"status.isopen\" ng-class=\"{ 'disabled': isDisabled || emptyList }\">\n" +
|
|
@@ -5898,10 +5891,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5898
5891
|
$templateCache.put('src/components/nice-dropdown/nice-dropdown.html',
|
|
5899
5892
|
"<div class=\"nice-component nice-dropdown\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
5900
5893
|
"<div class=\"row\">\n" +
|
|
5901
|
-
"<
|
|
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" +
|
|
5894
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
5905
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" +
|
|
5906
5896
|
"<div class=\"nice-field-wrapper\">\n" +
|
|
5907
5897
|
"<button type=\"button\" class=\"btn btn-dropdown\" ng-ref=\"dropdown-button\" ng-click=\"toggle()\" ng-disabled=\"isDisabled || emptyList\">\n" +
|
|
@@ -6050,7 +6040,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6050
6040
|
|
|
6051
6041
|
$templateCache.put('src/components/nice-icon/nice-icon.html',
|
|
6052
6042
|
"<svg class=\"nice-icon\">\n" +
|
|
6053
|
-
"<use ng-attr-xlink:href=\"{{ '#' + icon }}\" xlink:href=\"
|
|
6043
|
+
"<use ng-attr-xlink:href=\"{{ '#' + icon }}\" xlink:href=\"\"></use>\n" +
|
|
6054
6044
|
"</svg>"
|
|
6055
6045
|
);
|
|
6056
6046
|
|
|
@@ -6058,10 +6048,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6058
6048
|
$templateCache.put('src/components/nice-input/nice-input.html',
|
|
6059
6049
|
"<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"forma\">\n" +
|
|
6060
6050
|
"<div class=\"row\">\n" +
|
|
6061
|
-
"<
|
|
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" +
|
|
6051
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6065
6052
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
6066
6053
|
"<div class=\"form-group\" ng-class=\"{\n" +
|
|
6067
6054
|
" 'has-feedback': showValid && !hideValid,\n" +
|
|
@@ -6096,15 +6083,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6096
6083
|
$templateCache.put('src/components/nice-label/nice-label.html',
|
|
6097
6084
|
"<div class=\"nice-component nice-label\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
6098
6085
|
"<div class=\"row\">\n" +
|
|
6099
|
-
"<
|
|
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" +
|
|
6086
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6103
6087
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
|
|
6104
6088
|
"<p class=\"value\">{{ value }}</p>\n" +
|
|
6105
6089
|
"</div>\n" +
|
|
6106
6090
|
"</div>\n" +
|
|
6107
|
-
"</div
|
|
6091
|
+
"</div>"
|
|
6108
6092
|
);
|
|
6109
6093
|
|
|
6110
6094
|
|
|
@@ -6130,20 +6114,17 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6130
6114
|
$templateCache.put('src/components/nice-number/nice-number.html',
|
|
6131
6115
|
"<div class=\"nice-component nice-number\" ng-form=\"niceNumberForm\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
6132
6116
|
"<div ng-class=\"{'row' : !disableRow}\">\n" +
|
|
6133
|
-
"<
|
|
6134
|
-
"<div class=\"nice-
|
|
6135
|
-
"<
|
|
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" +
|
|
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" +
|
|
6139
6120
|
"<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" +
|
|
6121
|
+
"<button class=\"btn btn-default btn-left\" type=\"button\" ng-disabled=\"!canSubstract || isDisabled\" ng-click=\"subtract()\" tabindex=\"-1\">\n" +
|
|
6141
6122
|
"<nice-icon icon=\"icon-minus\"></nice-icon>\n" +
|
|
6142
6123
|
"</button>\n" +
|
|
6143
6124
|
"</span>\n" +
|
|
6144
|
-
"<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" +
|
|
6145
6126
|
"<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" +
|
|
6127
|
+
"<button class=\"btn btn-default btn-right\" type=\"button\" ng-disabled=\"!canAdd || isDisabled\" ng-click=\"add()\" tabindex=\"-1\">\n" +
|
|
6147
6128
|
"<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
|
|
6148
6129
|
"</button>\n" +
|
|
6149
6130
|
"</span>\n" +
|
|
@@ -6172,10 +6153,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6172
6153
|
$templateCache.put('src/components/nice-percent/nice-percent.html',
|
|
6173
6154
|
"<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
6174
6155
|
"<div class=\"row\">\n" +
|
|
6175
|
-
"<
|
|
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" +
|
|
6156
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6179
6157
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
6180
6158
|
"<div class=\"input-group has-feedback symbol\" ng-class=\"{\n" +
|
|
6181
6159
|
" 'has-warning': !isDisabled && form.$invalid && form.$dirty && !hideValid,\n" +
|
|
@@ -6209,10 +6187,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6209
6187
|
$templateCache.put('src/components/nice-progress-bar/nice-progress-bar.html',
|
|
6210
6188
|
"<div class=\"nice-component nice-progress-bar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
6211
6189
|
"<div class=\"row\">\n" +
|
|
6212
|
-
"<
|
|
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" +
|
|
6190
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6216
6191
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
6217
6192
|
"<div class=\"progress\">\n" +
|
|
6218
6193
|
"<div class=\"progress-value\">{{ value }} / {{ max }}</div>\n" +
|
|
@@ -6229,10 +6204,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6229
6204
|
$templateCache.put('src/components/nice-quantity/nice-quantity.html',
|
|
6230
6205
|
"<div class=\"nice-component nice-quantity\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
6231
6206
|
"<div class=\"row\">\n" +
|
|
6232
|
-
"<
|
|
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" +
|
|
6207
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6236
6208
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6237
6209
|
"<div class=\"input-group\">\n" +
|
|
6238
6210
|
"<button class=\"btn btn-default btn-left\" ng-click=\"sub()\" type=\"button\" ng-disabled=\"isDisabled\" tabindex=\"-1\">\n" +
|
|
@@ -6252,10 +6224,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6252
6224
|
$templateCache.put('src/components/nice-search/nice-search.html',
|
|
6253
6225
|
"<ng-form class=\"nice-component nice-input nice-search\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline}\" name=\"form\">\n" +
|
|
6254
6226
|
"<div class=\"row\">\n" +
|
|
6255
|
-
"<
|
|
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" +
|
|
6227
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6259
6228
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6260
6229
|
"<div class=\"input-group\" ng-class=\"{\n" +
|
|
6261
6230
|
" 'disabled': isDisabled,\n" +
|
|
@@ -6293,10 +6262,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6293
6262
|
$templateCache.put('src/components/nice-search2/nice-search2.html',
|
|
6294
6263
|
"<ng-form class=\"nice-component nice-input nice-search2\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
6295
6264
|
"<div class=\"row\">\n" +
|
|
6296
|
-
"<
|
|
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" +
|
|
6265
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6300
6266
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
|
|
6301
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" +
|
|
6302
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" +
|
|
@@ -6325,15 +6291,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6325
6291
|
$templateCache.put('src/components/nice-slot/nice-slot.html',
|
|
6326
6292
|
"<div class=\"nice-component nice-slot\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
6327
6293
|
"<div class=\"row\">\n" +
|
|
6328
|
-
"<
|
|
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" +
|
|
6294
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6332
6295
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
|
|
6333
6296
|
"<ng-transclude></ng-transclude>\n" +
|
|
6334
6297
|
"</div>\n" +
|
|
6335
6298
|
"</div>\n" +
|
|
6336
|
-
"</div
|
|
6299
|
+
"</div>"
|
|
6337
6300
|
);
|
|
6338
6301
|
|
|
6339
6302
|
|
|
@@ -7212,10 +7175,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7212
7175
|
$templateCache.put('src/components/nice-time-picker/nice-time-picker.html',
|
|
7213
7176
|
"<div class=\"nice-component nice-time-picker\" ng-form=\"forma\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7214
7177
|
"<div class=\"row\">\n" +
|
|
7215
|
-
"<
|
|
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" +
|
|
7178
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7219
7179
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
7220
7180
|
"<div class=\"input-group\" ng-class=\"{\n" +
|
|
7221
7181
|
" 'has-warning': !isDisabled && forma.$invalid && forma.$dirty,\n" +
|
|
@@ -7253,6 +7213,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7253
7213
|
);
|
|
7254
7214
|
|
|
7255
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
|
+
|
|
7256
7224
|
$templateCache.put('src/components/nice-toast/nice-toast.html',
|
|
7257
7225
|
"<div class=\"nice-toasts\" ng-class=\"position\">\n" +
|
|
7258
7226
|
"<div class=\"nice-toast\" ng-class=\"toast.type\" ng-repeat=\"toast in toasts\">{{ toast.message }}</div>\n" +
|
|
@@ -7263,10 +7231,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7263
7231
|
$templateCache.put('src/components/nice-upload/nice-upload.html',
|
|
7264
7232
|
"<ng-form class=\"nice-component nice-upload\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
7265
7233
|
"<div class=\"row\">\n" +
|
|
7266
|
-
"<
|
|
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" +
|
|
7234
|
+
"<nice-title title=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7270
7235
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
7271
7236
|
"<div class=\"nice-upload-area\">\n" +
|
|
7272
7237
|
"<div class=\"input-area\" ng-class=\"{ 'dragging': dragging || draggingGlobal }\">\n" +
|
|
@@ -7290,15 +7255,12 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7290
7255
|
$templateCache.put('src/components/nice-yesno/nice-yesno.html',
|
|
7291
7256
|
"<div class=\"nice-component nice-yesno\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formYesno\">\n" +
|
|
7292
7257
|
"<div class=\"row\">\n" +
|
|
7293
|
-
"<
|
|
7294
|
-
"<div class=\"nice-
|
|
7295
|
-
"<
|
|
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" +
|
|
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" +
|
|
7299
7261
|
"<button class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\">{{ yes }}</button>\n" +
|
|
7300
7262
|
"<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" +
|
|
7263
|
+
"<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\" ng-disabled=\"isDisabled\">{{ state }}</button>\n" +
|
|
7302
7264
|
"</div>\n" +
|
|
7303
7265
|
"</div>\n" +
|
|
7304
7266
|
"</div>\n" +
|