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