nice-elements 1.9.3 → 1.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +176 -121
- package/dist/nice.min.js +1 -1
- package/dist/style.css +97 -74
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-date/nice-date.html +4 -3
- package/src/components/nice-date/nice-date.scss +0 -13
- package/src/components/nice-date-input/nice-date-input.html +12 -8
- package/src/components/nice-date-input/nice-date-input.scss +4 -9
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +6 -4
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +5 -3
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +2 -2
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +1 -12
- package/src/components/nice-dropdown/nice-dropdown.html +7 -3
- package/src/components/nice-dropdown/nice-dropdown.js +38 -9
- package/src/components/nice-dropdown/nice-dropdown.scss +18 -0
- package/src/components/nice-dropdown-date/nice-dropdown-date.scss +5 -0
- package/src/components/nice-number/nice-number.scss +0 -25
- package/src/components/nice-quantity/nice-quantity.html +10 -6
- package/src/components/nice-quantity/nice-quantity.scss +0 -9
- package/src/components/nice-search/nice-search.html +4 -4
- package/src/components/nice-search2/nice-search2.html +4 -4
- package/src/components/nice-search2/nice-search2.js +6 -0
- package/src/components/nice-time-picker/nice-time-picker.html +4 -2
- package/src/components/nice-upload/nice-upload.js +1 -1
- package/src/components/nice-yesno/nice-yesno.html +2 -2
- package/src/components/nice-yesno/nice-yesno.scss +3 -4
- package/src/services/nice-service.js +1 -1
- package/src/styles/_nice-buttons.scss +48 -0
- package/src/styles/_nice-common.scss +44 -2
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
|
}
|
|
@@ -655,14 +655,14 @@ angular.module('niceElements')
|
|
|
655
655
|
* # clickOutside
|
|
656
656
|
*/
|
|
657
657
|
angular.module('niceElements')
|
|
658
|
-
.directive('clickOutside', function($document, $parse, $timeout){
|
|
658
|
+
.directive('clickOutside', function ($document, $parse, $timeout) {
|
|
659
659
|
return {
|
|
660
660
|
restrict: 'A',
|
|
661
661
|
link: function ($scope, elem, attr) {
|
|
662
662
|
$scope.isOpen = false;
|
|
663
663
|
|
|
664
664
|
// watch for is open
|
|
665
|
-
attr.$observe('isOpen', function(value){
|
|
665
|
+
attr.$observe('isOpen', function (value) {
|
|
666
666
|
$scope.isOpen = value == 'true';
|
|
667
667
|
});
|
|
668
668
|
|
|
@@ -717,7 +717,7 @@ angular.module('niceElements')
|
|
|
717
717
|
// if we have got this far, then we are good to go with processing the command passed in via the click-outside attribute
|
|
718
718
|
$timeout(function () {
|
|
719
719
|
fn = $parse(attr['clickOutside']);
|
|
720
|
-
fn($scope, {event: e});
|
|
720
|
+
fn($scope, { event: e });
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -751,7 +751,7 @@ angular.module('niceElements')
|
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
|
-
});
|
|
754
|
+
});
|
|
755
755
|
'use strict';
|
|
756
756
|
|
|
757
757
|
/**
|
|
@@ -942,7 +942,7 @@ angular.module('niceElements')
|
|
|
942
942
|
*/
|
|
943
943
|
angular.module('niceElements')
|
|
944
944
|
|
|
945
|
-
.directive('niceDateRange', function() {
|
|
945
|
+
.directive('niceDateRange', function () {
|
|
946
946
|
return {
|
|
947
947
|
restrict: 'E',
|
|
948
948
|
transclude: true,
|
|
@@ -962,16 +962,16 @@ angular.module('niceElements')
|
|
|
962
962
|
onChange: '&?'
|
|
963
963
|
},
|
|
964
964
|
|
|
965
|
-
link: function(scope, attrs){
|
|
965
|
+
link: function (scope, attrs) {
|
|
966
966
|
if (!attrs.title) { attrs.title = ''; }
|
|
967
967
|
if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
|
|
968
968
|
if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
|
|
969
969
|
if (!attrs.format) { attrs.format = 'dd.MM.yyyy'; }
|
|
970
970
|
attrs.noMargin = angular.isDefined(attrs.noMargin);
|
|
971
971
|
|
|
972
|
-
if(!angular.isDefined(scope.model)) {
|
|
972
|
+
if (!angular.isDefined(scope.model)) {
|
|
973
973
|
var model = null;
|
|
974
|
-
if(!angular.isDefined(scope.startOfTheYear)){
|
|
974
|
+
if (!angular.isDefined(scope.startOfTheYear)) {
|
|
975
975
|
model = {
|
|
976
976
|
startDate: moment().format(),
|
|
977
977
|
endDate: moment().format()
|
|
@@ -987,7 +987,7 @@ angular.module('niceElements')
|
|
|
987
987
|
}
|
|
988
988
|
},
|
|
989
989
|
|
|
990
|
-
controller: function($scope) {
|
|
990
|
+
controller: function ($scope) {
|
|
991
991
|
$scope.opts = {
|
|
992
992
|
locale: {
|
|
993
993
|
applyClass: 'btn-green',
|
|
@@ -1003,7 +1003,7 @@ angular.module('niceElements')
|
|
|
1003
1003
|
$scope.opts.ranges[gettextCatalog.getString("Last 30 days", null, "Nice")] = [moment().subtract(30, 'days'), moment()];
|
|
1004
1004
|
$scope.opts.ranges[gettextCatalog.getString("This month", null, "Nice")] = [moment().startOf('month'), moment().endOf('month')];
|
|
1005
1005
|
|
|
1006
|
-
if(angular.isDefined($scope.format)) $scope.opts.format = format;
|
|
1006
|
+
if (angular.isDefined($scope.format)) $scope.opts.format = format;
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
1009
|
};
|
|
@@ -2326,6 +2326,8 @@ angular.module('niceElements')
|
|
|
2326
2326
|
list: '=', // List of options
|
|
2327
2327
|
onChange: '&?',
|
|
2328
2328
|
onSelect: '&?', // Like onChange but always return objects
|
|
2329
|
+
onClose: '&?',
|
|
2330
|
+
onOpen: '&?',
|
|
2329
2331
|
isDisabled: '=',
|
|
2330
2332
|
fieldWidth: '@',
|
|
2331
2333
|
labelWidth: '@',
|
|
@@ -2431,6 +2433,7 @@ angular.module('niceElements')
|
|
|
2431
2433
|
|
|
2432
2434
|
$scope.close = function () {
|
|
2433
2435
|
$scope.isOpen = false;
|
|
2436
|
+
if ($scope.onClose) $scope.onClose();
|
|
2434
2437
|
};
|
|
2435
2438
|
|
|
2436
2439
|
$scope.open = function () {
|
|
@@ -2438,6 +2441,7 @@ angular.module('niceElements')
|
|
|
2438
2441
|
if ($scope.filterFunction) $scope.internalList = $scope.filterFunction($scope.originalList);
|
|
2439
2442
|
$timeout(function () {
|
|
2440
2443
|
$scope.isOpen = true;
|
|
2444
|
+
if ($scope.onOpen) $scope.onOpen();
|
|
2441
2445
|
$timeout(function () {
|
|
2442
2446
|
$scope.popper.update();
|
|
2443
2447
|
});
|
|
@@ -2586,6 +2590,28 @@ angular.module('niceElements')
|
|
|
2586
2590
|
};
|
|
2587
2591
|
|
|
2588
2592
|
|
|
2593
|
+
// ----------------------------------- Select all -----------------------------------
|
|
2594
|
+
$scope.selectAll = function () {
|
|
2595
|
+
if (!$scope.multiple) return;
|
|
2596
|
+
$scope.selected = $scope.internalList;
|
|
2597
|
+
angular.forEach($scope.internalList, function (o) {
|
|
2598
|
+
o._selected = true;
|
|
2599
|
+
});
|
|
2600
|
+
$scope.handleSetModel();
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
// ----------------------------------- Select none -----------------------------------
|
|
2605
|
+
$scope.selectNone = function () {
|
|
2606
|
+
if (!$scope.multiple) return;
|
|
2607
|
+
$scope.selected = [];
|
|
2608
|
+
angular.forEach($scope.internalList, function (o) {
|
|
2609
|
+
o._selected = false;
|
|
2610
|
+
});
|
|
2611
|
+
$scope.handleSetModel();
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
|
|
2589
2615
|
// ----------------------------------- Handle single slect -----------------------------------
|
|
2590
2616
|
$scope.handleSingleSelect = function (item, index) {
|
|
2591
2617
|
$scope.selected = item;
|
|
@@ -2600,19 +2626,21 @@ angular.module('niceElements')
|
|
|
2600
2626
|
|
|
2601
2627
|
if ($scope.selected != null) {
|
|
2602
2628
|
// Remove selected flag
|
|
2603
|
-
if (
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2629
|
+
if (!$scope.selectedIsKey) {
|
|
2630
|
+
if ($scope.multiple) {
|
|
2631
|
+
angular.forEach(obj, function (o) {
|
|
2632
|
+
o._selected = undefined;
|
|
2633
|
+
});
|
|
2634
|
+
} else {
|
|
2635
|
+
obj._selected = undefined;
|
|
2636
|
+
}
|
|
2609
2637
|
}
|
|
2610
2638
|
|
|
2611
2639
|
// Selected is object
|
|
2612
2640
|
if ($scope.selectedIsKey) {
|
|
2613
2641
|
if ($scope.multiple) {
|
|
2614
|
-
|
|
2615
|
-
|
|
2642
|
+
obj = obj.map(function (o) {
|
|
2643
|
+
return o[$scope.objKey];
|
|
2616
2644
|
});
|
|
2617
2645
|
} else {
|
|
2618
2646
|
obj = obj[$scope.objKey];
|
|
@@ -2665,10 +2693,11 @@ angular.module('niceElements')
|
|
|
2665
2693
|
// Not object
|
|
2666
2694
|
if ($scope.multiple) {
|
|
2667
2695
|
// Multiple
|
|
2668
|
-
angular.forEach($scope.selected, function (s) {
|
|
2696
|
+
angular.forEach($scope.selected, function (s, index) {
|
|
2669
2697
|
if (i[$scope.objKey] == s) {
|
|
2670
2698
|
i._selected = true;
|
|
2671
2699
|
// $scope.selected.push(i);
|
|
2700
|
+
$scope.selected[index] = i
|
|
2672
2701
|
// $scope.selectedIndex = index;
|
|
2673
2702
|
}
|
|
2674
2703
|
});
|
|
@@ -3653,25 +3682,25 @@ angular.module('niceElements')
|
|
|
3653
3682
|
};
|
|
3654
3683
|
});
|
|
3655
3684
|
|
|
3656
|
-
'use strict';
|
|
3657
|
-
|
|
3658
|
-
/**
|
|
3659
|
-
* @ngdoc directive
|
|
3660
|
-
* @name niceElements.directive:niceIcon
|
|
3661
|
-
* @description
|
|
3662
|
-
* # niceIcon
|
|
3663
|
-
*/
|
|
3664
|
-
angular.module('niceElements')
|
|
3665
|
-
.directive('niceIcon', function () {
|
|
3666
|
-
return {
|
|
3667
|
-
templateUrl: 'src/components/nice-icon/nice-icon.html',
|
|
3668
|
-
restrict: 'E',
|
|
3669
|
-
replace: true,
|
|
3670
|
-
scope: {
|
|
3671
|
-
icon: '@',
|
|
3672
|
-
size: '=',
|
|
3673
|
-
},
|
|
3674
|
-
};
|
|
3685
|
+
'use strict';
|
|
3686
|
+
|
|
3687
|
+
/**
|
|
3688
|
+
* @ngdoc directive
|
|
3689
|
+
* @name niceElements.directive:niceIcon
|
|
3690
|
+
* @description
|
|
3691
|
+
* # niceIcon
|
|
3692
|
+
*/
|
|
3693
|
+
angular.module('niceElements')
|
|
3694
|
+
.directive('niceIcon', function () {
|
|
3695
|
+
return {
|
|
3696
|
+
templateUrl: 'src/components/nice-icon/nice-icon.html',
|
|
3697
|
+
restrict: 'E',
|
|
3698
|
+
replace: true,
|
|
3699
|
+
scope: {
|
|
3700
|
+
icon: '@',
|
|
3701
|
+
size: '=',
|
|
3702
|
+
},
|
|
3703
|
+
};
|
|
3675
3704
|
});
|
|
3676
3705
|
angular.module('niceElements')
|
|
3677
3706
|
.directive('niceInput', function () {
|
|
@@ -3968,42 +3997,42 @@ angular.module('niceElements')
|
|
|
3968
3997
|
|
|
3969
3998
|
var messageElements = [];
|
|
3970
3999
|
|
|
3971
|
-
var notify = function(args, t){
|
|
4000
|
+
var notify = function (args, t) {
|
|
3972
4001
|
|
|
3973
|
-
if (typeof args !== 'object'){
|
|
3974
|
-
args = {message:args};
|
|
4002
|
+
if (typeof args !== 'object') {
|
|
4003
|
+
args = { message: args };
|
|
3975
4004
|
}
|
|
3976
4005
|
|
|
3977
4006
|
args.template = args.template ? args.template : 'src/components/nice-notification/nice-notification.html';
|
|
3978
4007
|
args.delay = !angular.isUndefined(args.delay) ? args.delay : delay;
|
|
3979
4008
|
args.type = t ? t : '';
|
|
3980
4009
|
|
|
3981
|
-
$http.get(args.template,{cache: $templateCache}).success(function(template) {
|
|
4010
|
+
$http.get(args.template, { cache: $templateCache }).success(function (template) {
|
|
3982
4011
|
|
|
3983
4012
|
var scope = $rootScope.$new();
|
|
3984
4013
|
scope.message = $sce.trustAsHtml(args.message);
|
|
3985
4014
|
scope.title = $sce.trustAsHtml(args.title);
|
|
3986
|
-
scope.t = args.type.substr(0,1);
|
|
4015
|
+
scope.t = args.type.substr(0, 1);
|
|
3987
4016
|
scope.delay = args.delay;
|
|
3988
4017
|
|
|
3989
|
-
if (typeof args.scope === 'object'){
|
|
3990
|
-
for (var key in args.scope){
|
|
4018
|
+
if (typeof args.scope === 'object') {
|
|
4019
|
+
for (var key in args.scope) {
|
|
3991
4020
|
scope[key] = args.scope[key];
|
|
3992
4021
|
}
|
|
3993
4022
|
}
|
|
3994
4023
|
|
|
3995
|
-
var reposite = function() {
|
|
4024
|
+
var reposite = function () {
|
|
3996
4025
|
var j = 0;
|
|
3997
4026
|
var k = 0;
|
|
3998
4027
|
var lastTop = startTop;
|
|
3999
4028
|
var lastRight = startRight;
|
|
4000
|
-
for(var i = messageElements.length - 1; i >= 0; i
|
|
4029
|
+
for (var i = messageElements.length - 1; i >= 0; i--) {
|
|
4001
4030
|
var element = messageElements[i];
|
|
4002
4031
|
var elHeight = parseInt(element[0].offsetHeight);
|
|
4003
4032
|
var elWidth = parseInt(element[0].offsetWidth);
|
|
4004
4033
|
if ((top + elHeight) > window.innerHeight) {
|
|
4005
4034
|
lastTop = startTop;
|
|
4006
|
-
k
|
|
4035
|
+
k++;
|
|
4007
4036
|
j = 0;
|
|
4008
4037
|
}
|
|
4009
4038
|
var top = lastTop + (j === 0 ? 0 : verticalSpacing);
|
|
@@ -4013,22 +4042,22 @@ angular.module('niceElements')
|
|
|
4013
4042
|
element.css('right', right + 'px');
|
|
4014
4043
|
|
|
4015
4044
|
lastTop = top + elHeight;
|
|
4016
|
-
j
|
|
4045
|
+
j++;
|
|
4017
4046
|
}
|
|
4018
4047
|
};
|
|
4019
4048
|
|
|
4020
4049
|
var templateElement = $compile(template)(scope);
|
|
4021
4050
|
templateElement.addClass(args.type);
|
|
4022
|
-
templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function(e){
|
|
4051
|
+
templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function (e) {
|
|
4023
4052
|
e = e.originalEvent || e;
|
|
4024
|
-
if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)){
|
|
4053
|
+
if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)) {
|
|
4025
4054
|
templateElement.remove();
|
|
4026
4055
|
messageElements.splice(messageElements.indexOf(templateElement), 1);
|
|
4027
4056
|
reposite();
|
|
4028
4057
|
}
|
|
4029
4058
|
});
|
|
4030
4059
|
|
|
4031
|
-
$timeout(function() {
|
|
4060
|
+
$timeout(function () {
|
|
4032
4061
|
templateElement.addClass('killed');
|
|
4033
4062
|
templateElement.remove();
|
|
4034
4063
|
messageElements.splice(messageElements.indexOf(templateElement), 1);
|
|
@@ -4040,34 +4069,34 @@ angular.module('niceElements')
|
|
|
4040
4069
|
|
|
4041
4070
|
$timeout(reposite);
|
|
4042
4071
|
|
|
4043
|
-
}).error(function(data){
|
|
4044
|
-
throw new Error('Template ('+args.template+') could not be loaded. ' + data);
|
|
4072
|
+
}).error(function (data) {
|
|
4073
|
+
throw new Error('Template (' + args.template + ') could not be loaded. ' + data);
|
|
4045
4074
|
});
|
|
4046
4075
|
|
|
4047
4076
|
};
|
|
4048
4077
|
|
|
4049
|
-
notify.config = function(args){
|
|
4050
|
-
|
|
4051
|
-
|
|
4078
|
+
notify.config = function (args) {
|
|
4079
|
+
startTop = args.top ? args.top : startTop;
|
|
4080
|
+
verticalSpacing = args.verticalSpacing ? args.verticalSpacing : verticalSpacing;
|
|
4052
4081
|
};
|
|
4053
4082
|
|
|
4054
|
-
notify.primary = function() {
|
|
4083
|
+
notify.primary = function () {
|
|
4055
4084
|
this(args, '');
|
|
4056
4085
|
};
|
|
4057
4086
|
|
|
4058
|
-
notify.error = function(args) {
|
|
4087
|
+
notify.error = function (args) {
|
|
4059
4088
|
this(args, 'error');
|
|
4060
4089
|
};
|
|
4061
4090
|
|
|
4062
|
-
notify.success = function(args) {
|
|
4091
|
+
notify.success = function (args) {
|
|
4063
4092
|
this(args, 'success');
|
|
4064
4093
|
};
|
|
4065
4094
|
|
|
4066
|
-
notify.info = function(args) {
|
|
4095
|
+
notify.info = function (args) {
|
|
4067
4096
|
this(args, 'info');
|
|
4068
4097
|
};
|
|
4069
4098
|
|
|
4070
|
-
notify.warning = function(args) {
|
|
4099
|
+
notify.warning = function (args) {
|
|
4071
4100
|
this(args, 'warning');
|
|
4072
4101
|
};
|
|
4073
4102
|
|
|
@@ -4498,7 +4527,7 @@ angular.module('niceElements')
|
|
|
4498
4527
|
* # niceProgressBar
|
|
4499
4528
|
*/
|
|
4500
4529
|
angular.module('niceElements')
|
|
4501
|
-
.directive('niceProgressBar', function() {
|
|
4530
|
+
.directive('niceProgressBar', function () {
|
|
4502
4531
|
return {
|
|
4503
4532
|
restrict: 'E',
|
|
4504
4533
|
replace: true,
|
|
@@ -4513,29 +4542,29 @@ angular.module('niceElements')
|
|
|
4513
4542
|
help: '@'
|
|
4514
4543
|
},
|
|
4515
4544
|
|
|
4516
|
-
controller: function($scope, $element, $timeout) {
|
|
4545
|
+
controller: function ($scope, $element, $timeout) {
|
|
4517
4546
|
$scope.width = 0;
|
|
4518
|
-
$scope.resize = function(){
|
|
4519
|
-
$timeout(function() {
|
|
4547
|
+
$scope.resize = function () {
|
|
4548
|
+
$timeout(function () {
|
|
4520
4549
|
$scope.width = $element[0].getElementsByClassName("progress")[0].offsetWidth;
|
|
4521
|
-
},100);
|
|
4550
|
+
}, 100);
|
|
4522
4551
|
};
|
|
4523
|
-
window.onresize = function() {
|
|
4552
|
+
window.onresize = function () {
|
|
4524
4553
|
$scope.resize();
|
|
4525
4554
|
};
|
|
4526
4555
|
$scope.resize();
|
|
4527
4556
|
|
|
4528
|
-
|
|
4529
4557
|
|
|
4530
|
-
|
|
4558
|
+
|
|
4559
|
+
$scope.$watch("value", function (valueNew, valueOld) {
|
|
4531
4560
|
$scope.calculate();
|
|
4532
4561
|
});
|
|
4533
4562
|
|
|
4534
|
-
$scope.$watch("max", function(valueNew, valueOld){
|
|
4563
|
+
$scope.$watch("max", function (valueNew, valueOld) {
|
|
4535
4564
|
$scope.calculate();
|
|
4536
4565
|
});
|
|
4537
4566
|
|
|
4538
|
-
$scope.calculate = function(){
|
|
4567
|
+
$scope.calculate = function () {
|
|
4539
4568
|
$scope.percentage = ($scope.value / $scope.max) * 100;
|
|
4540
4569
|
};
|
|
4541
4570
|
|
|
@@ -5007,6 +5036,11 @@ angular.module('niceElements')
|
|
|
5007
5036
|
}
|
|
5008
5037
|
};
|
|
5009
5038
|
|
|
5039
|
+
// ------------------------ Button clicked ------------------------
|
|
5040
|
+
$scope.buttonClicked = function () {
|
|
5041
|
+
if (!$scope.loading && $scope.model != '') $scope.clear();
|
|
5042
|
+
if (!$scope.loading && $scope.model == '') $scope.onFocus();
|
|
5043
|
+
}
|
|
5010
5044
|
|
|
5011
5045
|
// ------------------------ If search button is clicked set focus or make request ------------------------
|
|
5012
5046
|
$scope.search = function () {
|
|
@@ -5022,6 +5056,7 @@ angular.module('niceElements')
|
|
|
5022
5056
|
// ------------------------ Clear search ------------------------
|
|
5023
5057
|
$scope.clear = function () {
|
|
5024
5058
|
$scope.model = "";
|
|
5059
|
+
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
5025
5060
|
};
|
|
5026
5061
|
|
|
5027
5062
|
|
|
@@ -5422,7 +5457,7 @@ angular.module('niceElements')
|
|
|
5422
5457
|
$timeout(function () {
|
|
5423
5458
|
// file size must be smaller than XMB.
|
|
5424
5459
|
if (fileSize > (scope.maxFileSize * 1000000)) {
|
|
5425
|
-
scope.error = gettextCatalog.getString(
|
|
5460
|
+
scope.error = gettextCatalog.getString("File must be smaller than {{size}}MB", { size: scope.maxFileSize }, "Nice");
|
|
5426
5461
|
scope.loading = false;
|
|
5427
5462
|
scope.imageSource = null;
|
|
5428
5463
|
return;
|
|
@@ -5562,24 +5597,24 @@ angular.module('niceElements')
|
|
|
5562
5597
|
isInline: '=',
|
|
5563
5598
|
help: '@'
|
|
5564
5599
|
},
|
|
5565
|
-
controller: function($scope, gettextCatalog) {
|
|
5600
|
+
controller: function ($scope, gettextCatalog) {
|
|
5566
5601
|
if (!$scope.yes) { $scope.yes = gettextCatalog.getString('Yes', null, "Nice"); }
|
|
5567
5602
|
if (!$scope.no) { $scope.no = gettextCatalog.getString('No', null, "Nice"); }
|
|
5568
5603
|
if (!$scope.title) { $scope.title = ''; }
|
|
5569
5604
|
if (!$scope.fieldWidth) { $scope.fieldWidth = 'col-sm-8'; }
|
|
5570
5605
|
if (!$scope.labelWidth) { $scope.labelWidth = 'col-sm-4'; }
|
|
5571
|
-
if(!angular.isDefined($scope.model) && !angular.isDefined($scope.options)) $scope.model = !angular.isDefined($scope.defaultFalse);
|
|
5572
|
-
if(!angular.isDefined($scope.modelValue) && angular.isDefined($scope.options)) $scope.modelValue = $scope.options[0];
|
|
5606
|
+
if (!angular.isDefined($scope.model) && !angular.isDefined($scope.options)) $scope.model = !angular.isDefined($scope.defaultFalse);
|
|
5607
|
+
if (!angular.isDefined($scope.modelValue) && angular.isDefined($scope.options)) $scope.modelValue = $scope.options[0];
|
|
5573
5608
|
|
|
5574
5609
|
$scope.defaultFalse = angular.isDefined($scope.defaultFalse);
|
|
5575
5610
|
$scope.noMargin = angular.isDefined($scope.noMargin);
|
|
5576
5611
|
|
|
5577
5612
|
$scope.buttonClass = "";
|
|
5578
|
-
|
|
5613
|
+
|
|
5579
5614
|
|
|
5580
5615
|
// ------------------------- Set overlay button position based on passed state in $scope.model -------------------------
|
|
5581
|
-
$scope.setButtonPosition = function(state) {
|
|
5582
|
-
if(state) {
|
|
5616
|
+
$scope.setButtonPosition = function (state) {
|
|
5617
|
+
if (state) {
|
|
5583
5618
|
$scope.buttonClass = "yesno-button-yes";
|
|
5584
5619
|
} else {
|
|
5585
5620
|
$scope.buttonClass = "yesno-button-no";
|
|
@@ -5587,48 +5622,48 @@ angular.module('niceElements')
|
|
|
5587
5622
|
};
|
|
5588
5623
|
|
|
5589
5624
|
// ------------------------- Watch for changes from outside -------------------------
|
|
5590
|
-
$scope.$watch('model', function(value_new, value_old){
|
|
5591
|
-
if(angular.isDefined($scope.model)){
|
|
5625
|
+
$scope.$watch('model', function (value_new, value_old) {
|
|
5626
|
+
if (angular.isDefined($scope.model)) {
|
|
5592
5627
|
$scope.setButtonLabel($scope.model);
|
|
5593
5628
|
$scope.setButtonPosition($scope.model);
|
|
5594
5629
|
}
|
|
5595
5630
|
});
|
|
5596
5631
|
|
|
5597
5632
|
// ------------------------- Watch for model value -------------------------
|
|
5598
|
-
$scope.$watch('modelValue', function(value_new, value_old){
|
|
5599
|
-
if($scope.options){
|
|
5633
|
+
$scope.$watch('modelValue', function (value_new, value_old) {
|
|
5634
|
+
if ($scope.options) {
|
|
5600
5635
|
$scope.model = $scope.modelValue == $scope.options[0];
|
|
5601
5636
|
}
|
|
5602
5637
|
});
|
|
5603
5638
|
|
|
5604
5639
|
// ------------------------- Set button label -------------------------
|
|
5605
|
-
$scope.setButtonLabel = function(state){
|
|
5640
|
+
$scope.setButtonLabel = function (state) {
|
|
5606
5641
|
if (state) {
|
|
5607
5642
|
$scope.state = $scope.yes;
|
|
5608
5643
|
} else {
|
|
5609
5644
|
$scope.state = $scope.no;
|
|
5610
5645
|
}
|
|
5611
5646
|
};
|
|
5612
|
-
|
|
5647
|
+
|
|
5613
5648
|
// ------------------------- Set width -------------------------
|
|
5614
|
-
$scope.setWidth = function(width, el){
|
|
5649
|
+
$scope.setWidth = function (width, el) {
|
|
5615
5650
|
el.style.width = width;
|
|
5616
5651
|
};
|
|
5617
|
-
|
|
5652
|
+
|
|
5618
5653
|
|
|
5619
5654
|
// ------------------------- Switch -------------------------
|
|
5620
|
-
$scope.switch = function(){
|
|
5621
|
-
if(!$scope.isDisabled){
|
|
5655
|
+
$scope.switch = function () {
|
|
5656
|
+
if (!$scope.isDisabled) {
|
|
5622
5657
|
$scope.model = !$scope.model;
|
|
5623
|
-
|
|
5624
|
-
if($scope.options){
|
|
5625
|
-
if($scope.model){
|
|
5658
|
+
|
|
5659
|
+
if ($scope.options) {
|
|
5660
|
+
if ($scope.model) {
|
|
5626
5661
|
$scope.modelValue = $scope.options[0];
|
|
5627
5662
|
} else {
|
|
5628
5663
|
$scope.modelValue = $scope.options[1];
|
|
5629
5664
|
}
|
|
5630
5665
|
}
|
|
5631
|
-
|
|
5666
|
+
|
|
5632
5667
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
5633
5668
|
$scope.formYesno.$setDirty();
|
|
5634
5669
|
}
|
|
@@ -5690,7 +5725,7 @@ angular.module('niceElements')
|
|
|
5690
5725
|
.service('NiceService', function () {
|
|
5691
5726
|
var service = {
|
|
5692
5727
|
name: "Nice elements",
|
|
5693
|
-
version: "1.9.
|
|
5728
|
+
version: "1.9.5",
|
|
5694
5729
|
getHeader: function () {
|
|
5695
5730
|
return {};
|
|
5696
5731
|
}
|
|
@@ -5766,7 +5801,7 @@ angular.module('niceElements')
|
|
|
5766
5801
|
};
|
|
5767
5802
|
});
|
|
5768
5803
|
|
|
5769
|
-
angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
5804
|
+
angular.module('niceElements').run(['$templateCache', function ($templateCache) {
|
|
5770
5805
|
'use strict';
|
|
5771
5806
|
|
|
5772
5807
|
$templateCache.put('src/components/nice-button-toggle/nice-button-toggle.html',
|
|
@@ -5923,12 +5958,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5923
5958
|
"<input type=\"text\" class=\"form-control\" ng-model=\"modelDate\" ng-blur=\"dateBlur($event)\" ng-disabled=\"isDisabled\">\n" +
|
|
5924
5959
|
"<nice-popup placement=\"bottom\">\n" +
|
|
5925
5960
|
"<nice-popup-target>\n" +
|
|
5926
|
-
"<
|
|
5961
|
+
"<span class=\"input-group-btn\">\n" +
|
|
5962
|
+
"<button class=\"btn btn-default btn-right\" type=\"button\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
|
|
5927
5963
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
5928
5964
|
"</button>\n" +
|
|
5965
|
+
"</span>\n" +
|
|
5929
5966
|
"</nice-popup-target>\n" +
|
|
5930
5967
|
"<nice-popup-content>\n" +
|
|
5931
|
-
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.dateModel\" on-change=\"dateChanged()\" no-margin=\"true\"></nice-date>\n" +
|
|
5968
|
+
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.dateModel\" on-change=\"dateChanged()\" no-margin=\"true\" is-disabled=\"isDisabled\"></nice-date>\n" +
|
|
5932
5969
|
"</nice-popup-content>\n" +
|
|
5933
5970
|
"</nice-popup>\n" +
|
|
5934
5971
|
"</div>\n" +
|
|
@@ -5936,12 +5973,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5936
5973
|
"<input type=\"text\" class=\"form-control\" ng-model=\"modelTime\" ng-blur=\"timeBlur($event)\" ng-disabled=\"isDisabled\">\n" +
|
|
5937
5974
|
"<nice-popup placement=\"bottom\">\n" +
|
|
5938
5975
|
"<nice-popup-target>\n" +
|
|
5939
|
-
"<
|
|
5976
|
+
"<span class=\"input-group-btn\">\n" +
|
|
5977
|
+
"<button class=\"btn btn-default btn-right\" type=\"button\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
|
|
5940
5978
|
"<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
5941
5979
|
"</button>\n" +
|
|
5980
|
+
"</span>\n" +
|
|
5942
5981
|
"</nice-popup-target>\n" +
|
|
5943
5982
|
"<nice-popup-content>\n" +
|
|
5944
|
-
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.timeModel\" on-change=\"timeChanged()\" time=\"true\" date=\"false\" no-margin=\"true\"></nice-date>\n" +
|
|
5983
|
+
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.timeModel\" on-change=\"timeChanged()\" time=\"true\" date=\"false\" no-margin=\"true\" is-disabled=\"isDisabled\"></nice-date>\n" +
|
|
5945
5984
|
"</nice-popup-content>\n" +
|
|
5946
5985
|
"</nice-popup>\n" +
|
|
5947
5986
|
"</div>\n" +
|
|
@@ -5977,8 +6016,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5977
6016
|
"<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
|
|
5978
6017
|
"<div class=\"nice-date-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-show=\"!inline\" ng-click=\"toggleOpen()\">\n" +
|
|
5979
6018
|
"<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
|
|
5980
|
-
"<span class=\"input-group-
|
|
6019
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6020
|
+
"<button class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
|
|
5981
6021
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6022
|
+
"</button>\n" +
|
|
5982
6023
|
"</span>\n" +
|
|
5983
6024
|
"</div>\n" +
|
|
5984
6025
|
"<div ng-class=\"{ 'nice-date-dropdown-wrapper': !inline }\">\n" +
|
|
@@ -6038,9 +6079,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6038
6079
|
"<div ng-form=\"formDatetimePicker\"></div>\n" +
|
|
6039
6080
|
"<div class=\"input-group\" id=\"dropdown{{randNum}}\">\n" +
|
|
6040
6081
|
"<input type=\"text\" class=\"form-control\" value=\"{{ value }}\" ng-click=\"openDtp()\" ng-disabled=\"isDisabled\">\n" +
|
|
6041
|
-
"<span class=\"input-group-
|
|
6082
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6083
|
+
"<button class=\"btn btn-default\" ng-click=\"openDtp()\">\n" +
|
|
6042
6084
|
"<nice-icon ng-if=\"date == 'true'\" icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6043
6085
|
"<nice-icon ng-if=\"date != 'true'\" icon=\"icon-clock\"></nice-icon>\n" +
|
|
6086
|
+
"</button>\n" +
|
|
6044
6087
|
"</span>\n" +
|
|
6045
6088
|
"</div>\n" +
|
|
6046
6089
|
"<div ng-show=\"isOpen\">\n" +
|
|
@@ -6060,9 +6103,9 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6060
6103
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6061
6104
|
"<div class=\"nice-daterange-picker-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-click=\"open()\">\n" +
|
|
6062
6105
|
"<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
|
|
6063
|
-
"<
|
|
6106
|
+
"<button class=\"btn input-group-addon\" ng-disabled=\"isDisabled\">\n" +
|
|
6064
6107
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6065
|
-
"</
|
|
6108
|
+
"</button>\n" +
|
|
6066
6109
|
"</div>\n" +
|
|
6067
6110
|
"<div class=\"nice-daterange-picker-wrapper\">\n" +
|
|
6068
6111
|
"<div class=\"dtp-wrapper\" ng-if=\"isOpen\">\n" +
|
|
@@ -6103,9 +6146,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6103
6146
|
"<div class=\"dropdown-toggle\" id=\"dropdown{{randNum}}\" role=\"button\" ng-click=\"openDtpRange()\">\n" +
|
|
6104
6147
|
"<div class=\"input-group\">\n" +
|
|
6105
6148
|
"<input type=\"text\" class=\"form-control\" value=\"{{value}}\" ng-disabled=\"isDisabled\" ng-click=\"openDtpRange()\">\n" +
|
|
6106
|
-
"<span class=\"input-group-
|
|
6149
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6150
|
+
"<button class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
|
|
6107
6151
|
"<nice-icon ng-if=\"date != 'false'\" icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6108
6152
|
"<nice-icon ng-if=\"date == 'false'\" icon=\"icon-clock\"></nice-icon>\n" +
|
|
6153
|
+
"</button>\n" +
|
|
6109
6154
|
"</span>\n" +
|
|
6110
6155
|
"</div>\n" +
|
|
6111
6156
|
"</div>\n" +
|
|
@@ -6229,19 +6274,23 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6229
6274
|
"<nice-icon ng-if=\"!internal.search\" class=\"icon\" icon=\"icon-search\"></nice-icon>\n" +
|
|
6230
6275
|
"<nice-icon ng-if=\"internal.search\" class=\"icon\" icon=\"icon-x\" ng-click=\"clearSearch()\"></nice-icon>\n" +
|
|
6231
6276
|
"</div>\n" +
|
|
6277
|
+
"<div class=\"nice-dropdown-actions\" ng-if=\"multiple\">\n" +
|
|
6278
|
+
"<button class=\"btn btn-default btn-sm\" ng-click=\"selectAll()\" translate translate-context=\"Nice\">All</button>\n" +
|
|
6279
|
+
"<button class=\"btn btn-default btn-sm\" ng-click=\"selectNone()\">{{ nullableText }}</button>\n" +
|
|
6280
|
+
"</div>\n" +
|
|
6232
6281
|
"<div class=\"nice-dropdown-items\" aria-labelledby=\"nice-dropdown-{{ id }}\" role=\"listbox\">\n" +
|
|
6233
6282
|
"<div role=\"none\" class=\"nice-no-data\" ng-if=\"internalList && internalList.length == 0\">{{ noDataText }}</div>\n" +
|
|
6234
|
-
"<button role=\"option\" class=\"nice-dropdown-item null-item\" ng-if=\"nullable && internalList.length != 0\" ng-click=\"handleSelected(null, -1)\">\n" +
|
|
6283
|
+
"<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" +
|
|
6235
6284
|
"{{ nullableText }}\n" +
|
|
6236
6285
|
"</button>\n" +
|
|
6237
|
-
"<button role=\"option\" class=\"nice-dropdown-item\" ng-repeat=\"item in internalList\" ng-click=\"handleSelected(item, $index)\" ng-class=\"{ 'selected': item._selected }\">\n" +
|
|
6286
|
+
"<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" +
|
|
6238
6287
|
"<div class=\"choice-checkbox\" ng-if=\"multiple\" role=\"menuitemcheckbox\"><i class=\"fa fa-check\"></i></div>\n" +
|
|
6239
6288
|
"<div class=\"choice-option\" ng-transclude=\"option\" ng-class=\"{ 'multiple-item': multiple }\">{{ item[objValue] }}</div>\n" +
|
|
6240
6289
|
"</button>\n" +
|
|
6241
6290
|
"</div>\n" +
|
|
6242
6291
|
"</div>\n" +
|
|
6243
6292
|
"</div>\n" +
|
|
6244
|
-
"<button class=\"btn btn-primary btn-icon add-btn\" type=\"button\" ng-if=\"addButtonFunction && !isDisabled\" ng-click=\"addButtonFunction()\">\n" +
|
|
6293
|
+
"<button class=\"btn btn-primary btn-icon add-btn\" type=\"button\" ng-if=\"addButtonFunction && !isDisabled\" ng-click=\"addButtonFunction()\" ng-disabled=\"isDisabled\">\n" +
|
|
6245
6294
|
"<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
|
|
6246
6295
|
"</button>\n" +
|
|
6247
6296
|
"</div>\n" +
|
|
@@ -6535,13 +6584,17 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6535
6584
|
"<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6536
6585
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6537
6586
|
"<div class=\"input-group\">\n" +
|
|
6538
|
-
"<
|
|
6587
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6588
|
+
"<button class=\"btn btn-default btn-left\" ng-click=\"sub()\" type=\"button\" ng-disabled=\"(model <= min) || isDisabled\" tabindex=\"-1\">\n" +
|
|
6539
6589
|
"<nice-icon icon=\"icon-minus\"></nice-icon>\n" +
|
|
6540
6590
|
"</button>\n" +
|
|
6591
|
+
"</span>\n" +
|
|
6541
6592
|
"<input class=\"value form-control\" ng-model=\"model\" type=\"number\" min=\"{{ min }}\" max=\"{{ max }}\" ng-change=\"handleChange()\" ng-disabled=\"isDisabled\">\n" +
|
|
6542
|
-
"<
|
|
6593
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6594
|
+
"<button class=\"btn btn-default btn-right\" ng-click=\"add()\" type=\"button\" ng-disabled=\"(model >= max) || isDisabled\" tabindex=\"-1\">\n" +
|
|
6543
6595
|
"<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
|
|
6544
6596
|
"</button>\n" +
|
|
6597
|
+
"</span>\n" +
|
|
6545
6598
|
"</div>\n" +
|
|
6546
6599
|
"</div>\n" +
|
|
6547
6600
|
"</div>\n" +
|
|
@@ -6556,13 +6609,13 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6556
6609
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6557
6610
|
"<div class=\"input-group\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
|
|
6558
6611
|
"<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" +
|
|
6559
|
-
"<
|
|
6612
|
+
"<button class=\"btn input-group-addon\" ng-click=\"search()\" ng-if=\"!model\" ng-disabled=\"isDisabled\">\n" +
|
|
6560
6613
|
"<nice-icon ng-show=\"!loading\" icon=\"icon-search\"></nice-icon>\n" +
|
|
6561
6614
|
"<nice-loader ng-if=\"loading\"></nice-loader>\n" +
|
|
6562
|
-
"</
|
|
6563
|
-
"<
|
|
6615
|
+
"</button>\n" +
|
|
6616
|
+
"<button class=\"btn input-group-addon\" ng-click=\"remove()\" ng-if=\"model\" ng-disabled=\"isDisabled\">\n" +
|
|
6564
6617
|
"<nice-icon ng-show=\"!loading\" icon=\"icon-x\"></nice-icon>\n" +
|
|
6565
|
-
"</
|
|
6618
|
+
"</button>\n" +
|
|
6566
6619
|
"</div>\n" +
|
|
6567
6620
|
"</div>\n" +
|
|
6568
6621
|
"</div>\n" +
|
|
@@ -6590,11 +6643,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6590
6643
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
|
|
6591
6644
|
"<div class=\"nice-search-button input-group\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
|
|
6592
6645
|
"<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" +
|
|
6593
|
-
"<
|
|
6594
|
-
"<nice-icon
|
|
6595
|
-
"<nice-icon
|
|
6646
|
+
"<button class=\"btn input-group-addon\" ng-disabled=\"isDisabled\" ng-click=\"buttonClicked()\">\n" +
|
|
6647
|
+
"<nice-icon ng-show=\"!loading && model != ''\" icon=\"icon-x\"></nice-icon>\n" +
|
|
6648
|
+
"<nice-icon ng-show=\"!loading && model == ''\" icon=\"icon-search\"></nice-icon>\n" +
|
|
6596
6649
|
"<nice-loader ng-if=\"loading\"></nice-loader>\n" +
|
|
6597
|
-
"</
|
|
6650
|
+
"</button>\n" +
|
|
6598
6651
|
"</div>\n" +
|
|
6599
6652
|
"<div class=\"nice-search-dropdown-wrapper\">\n" +
|
|
6600
6653
|
"<div class=\"nice-search-dropdown\" ng-if=\"showDropdown && isOpen\">\n" +
|
|
@@ -7609,8 +7662,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7609
7662
|
" 'disabled': isDisabled\n" +
|
|
7610
7663
|
" }\">\n" +
|
|
7611
7664
|
"<input type=\"text\" class=\"form-control\" ng-model=\"modelString\" ng-keyup=\"$event.keyCode == 13 && validateDate()\" ng-blur=\"validateDate()\">\n" +
|
|
7612
|
-
"<span class=\"input-group-
|
|
7665
|
+
"<span class=\"input-group-btn\">\n" +
|
|
7666
|
+
"<button class=\"btn btn-default btn-right\" ng-click=\"open = !open\">\n" +
|
|
7613
7667
|
"<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
7668
|
+
"</button>\n" +
|
|
7614
7669
|
"</span>\n" +
|
|
7615
7670
|
"</div>\n" +
|
|
7616
7671
|
"<div class=\"nice-time-picker-dropdown\" ng-if=\"open\">\n" +
|
|
@@ -7702,8 +7757,8 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7702
7757
|
"<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7703
7758
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
7704
7759
|
"<div class=\"yesno-wrapper noselect\">\n" +
|
|
7705
|
-
"<button class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\">{{ yes }}</button>\n" +
|
|
7706
|
-
"<button class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\">{{ no }}</button>\n" +
|
|
7760
|
+
"<button class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\" ng-disabled=\"isDisabled\">{{ yes }}</button>\n" +
|
|
7761
|
+
"<button class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\" ng-disabled=\"isDisabled\">{{ no }}</button>\n" +
|
|
7707
7762
|
"<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\" ng-disabled=\"isDisabled\" type=\"button\">{{ state }}</button>\n" +
|
|
7708
7763
|
"</div>\n" +
|
|
7709
7764
|
"</div>\n" +
|