nice-elements 1.9.3 → 1.9.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 +7 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +164 -112
- 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 +26 -0
- 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;
|
|
@@ -3653,25 +3679,25 @@ angular.module('niceElements')
|
|
|
3653
3679
|
};
|
|
3654
3680
|
});
|
|
3655
3681
|
|
|
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
|
-
};
|
|
3682
|
+
'use strict';
|
|
3683
|
+
|
|
3684
|
+
/**
|
|
3685
|
+
* @ngdoc directive
|
|
3686
|
+
* @name niceElements.directive:niceIcon
|
|
3687
|
+
* @description
|
|
3688
|
+
* # niceIcon
|
|
3689
|
+
*/
|
|
3690
|
+
angular.module('niceElements')
|
|
3691
|
+
.directive('niceIcon', function () {
|
|
3692
|
+
return {
|
|
3693
|
+
templateUrl: 'src/components/nice-icon/nice-icon.html',
|
|
3694
|
+
restrict: 'E',
|
|
3695
|
+
replace: true,
|
|
3696
|
+
scope: {
|
|
3697
|
+
icon: '@',
|
|
3698
|
+
size: '=',
|
|
3699
|
+
},
|
|
3700
|
+
};
|
|
3675
3701
|
});
|
|
3676
3702
|
angular.module('niceElements')
|
|
3677
3703
|
.directive('niceInput', function () {
|
|
@@ -3968,42 +3994,42 @@ angular.module('niceElements')
|
|
|
3968
3994
|
|
|
3969
3995
|
var messageElements = [];
|
|
3970
3996
|
|
|
3971
|
-
var notify = function(args, t){
|
|
3997
|
+
var notify = function (args, t) {
|
|
3972
3998
|
|
|
3973
|
-
if (typeof args !== 'object'){
|
|
3974
|
-
args = {message:args};
|
|
3999
|
+
if (typeof args !== 'object') {
|
|
4000
|
+
args = { message: args };
|
|
3975
4001
|
}
|
|
3976
4002
|
|
|
3977
4003
|
args.template = args.template ? args.template : 'src/components/nice-notification/nice-notification.html';
|
|
3978
4004
|
args.delay = !angular.isUndefined(args.delay) ? args.delay : delay;
|
|
3979
4005
|
args.type = t ? t : '';
|
|
3980
4006
|
|
|
3981
|
-
$http.get(args.template,{cache: $templateCache}).success(function(template) {
|
|
4007
|
+
$http.get(args.template, { cache: $templateCache }).success(function (template) {
|
|
3982
4008
|
|
|
3983
4009
|
var scope = $rootScope.$new();
|
|
3984
4010
|
scope.message = $sce.trustAsHtml(args.message);
|
|
3985
4011
|
scope.title = $sce.trustAsHtml(args.title);
|
|
3986
|
-
scope.t = args.type.substr(0,1);
|
|
4012
|
+
scope.t = args.type.substr(0, 1);
|
|
3987
4013
|
scope.delay = args.delay;
|
|
3988
4014
|
|
|
3989
|
-
if (typeof args.scope === 'object'){
|
|
3990
|
-
for (var key in args.scope){
|
|
4015
|
+
if (typeof args.scope === 'object') {
|
|
4016
|
+
for (var key in args.scope) {
|
|
3991
4017
|
scope[key] = args.scope[key];
|
|
3992
4018
|
}
|
|
3993
4019
|
}
|
|
3994
4020
|
|
|
3995
|
-
var reposite = function() {
|
|
4021
|
+
var reposite = function () {
|
|
3996
4022
|
var j = 0;
|
|
3997
4023
|
var k = 0;
|
|
3998
4024
|
var lastTop = startTop;
|
|
3999
4025
|
var lastRight = startRight;
|
|
4000
|
-
for(var i = messageElements.length - 1; i >= 0; i
|
|
4026
|
+
for (var i = messageElements.length - 1; i >= 0; i--) {
|
|
4001
4027
|
var element = messageElements[i];
|
|
4002
4028
|
var elHeight = parseInt(element[0].offsetHeight);
|
|
4003
4029
|
var elWidth = parseInt(element[0].offsetWidth);
|
|
4004
4030
|
if ((top + elHeight) > window.innerHeight) {
|
|
4005
4031
|
lastTop = startTop;
|
|
4006
|
-
k
|
|
4032
|
+
k++;
|
|
4007
4033
|
j = 0;
|
|
4008
4034
|
}
|
|
4009
4035
|
var top = lastTop + (j === 0 ? 0 : verticalSpacing);
|
|
@@ -4013,22 +4039,22 @@ angular.module('niceElements')
|
|
|
4013
4039
|
element.css('right', right + 'px');
|
|
4014
4040
|
|
|
4015
4041
|
lastTop = top + elHeight;
|
|
4016
|
-
j
|
|
4042
|
+
j++;
|
|
4017
4043
|
}
|
|
4018
4044
|
};
|
|
4019
4045
|
|
|
4020
4046
|
var templateElement = $compile(template)(scope);
|
|
4021
4047
|
templateElement.addClass(args.type);
|
|
4022
|
-
templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function(e){
|
|
4048
|
+
templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function (e) {
|
|
4023
4049
|
e = e.originalEvent || e;
|
|
4024
|
-
if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)){
|
|
4050
|
+
if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)) {
|
|
4025
4051
|
templateElement.remove();
|
|
4026
4052
|
messageElements.splice(messageElements.indexOf(templateElement), 1);
|
|
4027
4053
|
reposite();
|
|
4028
4054
|
}
|
|
4029
4055
|
});
|
|
4030
4056
|
|
|
4031
|
-
$timeout(function() {
|
|
4057
|
+
$timeout(function () {
|
|
4032
4058
|
templateElement.addClass('killed');
|
|
4033
4059
|
templateElement.remove();
|
|
4034
4060
|
messageElements.splice(messageElements.indexOf(templateElement), 1);
|
|
@@ -4040,34 +4066,34 @@ angular.module('niceElements')
|
|
|
4040
4066
|
|
|
4041
4067
|
$timeout(reposite);
|
|
4042
4068
|
|
|
4043
|
-
}).error(function(data){
|
|
4044
|
-
throw new Error('Template ('+args.template+') could not be loaded. ' + data);
|
|
4069
|
+
}).error(function (data) {
|
|
4070
|
+
throw new Error('Template (' + args.template + ') could not be loaded. ' + data);
|
|
4045
4071
|
});
|
|
4046
4072
|
|
|
4047
4073
|
};
|
|
4048
4074
|
|
|
4049
|
-
notify.config = function(args){
|
|
4050
|
-
|
|
4051
|
-
|
|
4075
|
+
notify.config = function (args) {
|
|
4076
|
+
startTop = args.top ? args.top : startTop;
|
|
4077
|
+
verticalSpacing = args.verticalSpacing ? args.verticalSpacing : verticalSpacing;
|
|
4052
4078
|
};
|
|
4053
4079
|
|
|
4054
|
-
notify.primary = function() {
|
|
4080
|
+
notify.primary = function () {
|
|
4055
4081
|
this(args, '');
|
|
4056
4082
|
};
|
|
4057
4083
|
|
|
4058
|
-
notify.error = function(args) {
|
|
4084
|
+
notify.error = function (args) {
|
|
4059
4085
|
this(args, 'error');
|
|
4060
4086
|
};
|
|
4061
4087
|
|
|
4062
|
-
notify.success = function(args) {
|
|
4088
|
+
notify.success = function (args) {
|
|
4063
4089
|
this(args, 'success');
|
|
4064
4090
|
};
|
|
4065
4091
|
|
|
4066
|
-
notify.info = function(args) {
|
|
4092
|
+
notify.info = function (args) {
|
|
4067
4093
|
this(args, 'info');
|
|
4068
4094
|
};
|
|
4069
4095
|
|
|
4070
|
-
notify.warning = function(args) {
|
|
4096
|
+
notify.warning = function (args) {
|
|
4071
4097
|
this(args, 'warning');
|
|
4072
4098
|
};
|
|
4073
4099
|
|
|
@@ -4498,7 +4524,7 @@ angular.module('niceElements')
|
|
|
4498
4524
|
* # niceProgressBar
|
|
4499
4525
|
*/
|
|
4500
4526
|
angular.module('niceElements')
|
|
4501
|
-
.directive('niceProgressBar', function() {
|
|
4527
|
+
.directive('niceProgressBar', function () {
|
|
4502
4528
|
return {
|
|
4503
4529
|
restrict: 'E',
|
|
4504
4530
|
replace: true,
|
|
@@ -4513,29 +4539,29 @@ angular.module('niceElements')
|
|
|
4513
4539
|
help: '@'
|
|
4514
4540
|
},
|
|
4515
4541
|
|
|
4516
|
-
controller: function($scope, $element, $timeout) {
|
|
4542
|
+
controller: function ($scope, $element, $timeout) {
|
|
4517
4543
|
$scope.width = 0;
|
|
4518
|
-
$scope.resize = function(){
|
|
4519
|
-
$timeout(function() {
|
|
4544
|
+
$scope.resize = function () {
|
|
4545
|
+
$timeout(function () {
|
|
4520
4546
|
$scope.width = $element[0].getElementsByClassName("progress")[0].offsetWidth;
|
|
4521
|
-
},100);
|
|
4547
|
+
}, 100);
|
|
4522
4548
|
};
|
|
4523
|
-
window.onresize = function() {
|
|
4549
|
+
window.onresize = function () {
|
|
4524
4550
|
$scope.resize();
|
|
4525
4551
|
};
|
|
4526
4552
|
$scope.resize();
|
|
4527
4553
|
|
|
4528
|
-
|
|
4529
4554
|
|
|
4530
|
-
|
|
4555
|
+
|
|
4556
|
+
$scope.$watch("value", function (valueNew, valueOld) {
|
|
4531
4557
|
$scope.calculate();
|
|
4532
4558
|
});
|
|
4533
4559
|
|
|
4534
|
-
$scope.$watch("max", function(valueNew, valueOld){
|
|
4560
|
+
$scope.$watch("max", function (valueNew, valueOld) {
|
|
4535
4561
|
$scope.calculate();
|
|
4536
4562
|
});
|
|
4537
4563
|
|
|
4538
|
-
$scope.calculate = function(){
|
|
4564
|
+
$scope.calculate = function () {
|
|
4539
4565
|
$scope.percentage = ($scope.value / $scope.max) * 100;
|
|
4540
4566
|
};
|
|
4541
4567
|
|
|
@@ -5007,6 +5033,11 @@ angular.module('niceElements')
|
|
|
5007
5033
|
}
|
|
5008
5034
|
};
|
|
5009
5035
|
|
|
5036
|
+
// ------------------------ Button clicked ------------------------
|
|
5037
|
+
$scope.buttonClicked = function () {
|
|
5038
|
+
if (!$scope.loading && $scope.model != '') $scope.clear();
|
|
5039
|
+
if (!$scope.loading && $scope.model == '') $scope.onFocus();
|
|
5040
|
+
}
|
|
5010
5041
|
|
|
5011
5042
|
// ------------------------ If search button is clicked set focus or make request ------------------------
|
|
5012
5043
|
$scope.search = function () {
|
|
@@ -5022,6 +5053,7 @@ angular.module('niceElements')
|
|
|
5022
5053
|
// ------------------------ Clear search ------------------------
|
|
5023
5054
|
$scope.clear = function () {
|
|
5024
5055
|
$scope.model = "";
|
|
5056
|
+
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
5025
5057
|
};
|
|
5026
5058
|
|
|
5027
5059
|
|
|
@@ -5422,7 +5454,7 @@ angular.module('niceElements')
|
|
|
5422
5454
|
$timeout(function () {
|
|
5423
5455
|
// file size must be smaller than XMB.
|
|
5424
5456
|
if (fileSize > (scope.maxFileSize * 1000000)) {
|
|
5425
|
-
scope.error = gettextCatalog.getString(
|
|
5457
|
+
scope.error = gettextCatalog.getString("File must be smaller than {{size}}MB", { size: scope.maxFileSize }, "Nice");
|
|
5426
5458
|
scope.loading = false;
|
|
5427
5459
|
scope.imageSource = null;
|
|
5428
5460
|
return;
|
|
@@ -5562,24 +5594,24 @@ angular.module('niceElements')
|
|
|
5562
5594
|
isInline: '=',
|
|
5563
5595
|
help: '@'
|
|
5564
5596
|
},
|
|
5565
|
-
controller: function($scope, gettextCatalog) {
|
|
5597
|
+
controller: function ($scope, gettextCatalog) {
|
|
5566
5598
|
if (!$scope.yes) { $scope.yes = gettextCatalog.getString('Yes', null, "Nice"); }
|
|
5567
5599
|
if (!$scope.no) { $scope.no = gettextCatalog.getString('No', null, "Nice"); }
|
|
5568
5600
|
if (!$scope.title) { $scope.title = ''; }
|
|
5569
5601
|
if (!$scope.fieldWidth) { $scope.fieldWidth = 'col-sm-8'; }
|
|
5570
5602
|
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];
|
|
5603
|
+
if (!angular.isDefined($scope.model) && !angular.isDefined($scope.options)) $scope.model = !angular.isDefined($scope.defaultFalse);
|
|
5604
|
+
if (!angular.isDefined($scope.modelValue) && angular.isDefined($scope.options)) $scope.modelValue = $scope.options[0];
|
|
5573
5605
|
|
|
5574
5606
|
$scope.defaultFalse = angular.isDefined($scope.defaultFalse);
|
|
5575
5607
|
$scope.noMargin = angular.isDefined($scope.noMargin);
|
|
5576
5608
|
|
|
5577
5609
|
$scope.buttonClass = "";
|
|
5578
|
-
|
|
5610
|
+
|
|
5579
5611
|
|
|
5580
5612
|
// ------------------------- Set overlay button position based on passed state in $scope.model -------------------------
|
|
5581
|
-
$scope.setButtonPosition = function(state) {
|
|
5582
|
-
if(state) {
|
|
5613
|
+
$scope.setButtonPosition = function (state) {
|
|
5614
|
+
if (state) {
|
|
5583
5615
|
$scope.buttonClass = "yesno-button-yes";
|
|
5584
5616
|
} else {
|
|
5585
5617
|
$scope.buttonClass = "yesno-button-no";
|
|
@@ -5587,48 +5619,48 @@ angular.module('niceElements')
|
|
|
5587
5619
|
};
|
|
5588
5620
|
|
|
5589
5621
|
// ------------------------- Watch for changes from outside -------------------------
|
|
5590
|
-
$scope.$watch('model', function(value_new, value_old){
|
|
5591
|
-
if(angular.isDefined($scope.model)){
|
|
5622
|
+
$scope.$watch('model', function (value_new, value_old) {
|
|
5623
|
+
if (angular.isDefined($scope.model)) {
|
|
5592
5624
|
$scope.setButtonLabel($scope.model);
|
|
5593
5625
|
$scope.setButtonPosition($scope.model);
|
|
5594
5626
|
}
|
|
5595
5627
|
});
|
|
5596
5628
|
|
|
5597
5629
|
// ------------------------- Watch for model value -------------------------
|
|
5598
|
-
$scope.$watch('modelValue', function(value_new, value_old){
|
|
5599
|
-
if($scope.options){
|
|
5630
|
+
$scope.$watch('modelValue', function (value_new, value_old) {
|
|
5631
|
+
if ($scope.options) {
|
|
5600
5632
|
$scope.model = $scope.modelValue == $scope.options[0];
|
|
5601
5633
|
}
|
|
5602
5634
|
});
|
|
5603
5635
|
|
|
5604
5636
|
// ------------------------- Set button label -------------------------
|
|
5605
|
-
$scope.setButtonLabel = function(state){
|
|
5637
|
+
$scope.setButtonLabel = function (state) {
|
|
5606
5638
|
if (state) {
|
|
5607
5639
|
$scope.state = $scope.yes;
|
|
5608
5640
|
} else {
|
|
5609
5641
|
$scope.state = $scope.no;
|
|
5610
5642
|
}
|
|
5611
5643
|
};
|
|
5612
|
-
|
|
5644
|
+
|
|
5613
5645
|
// ------------------------- Set width -------------------------
|
|
5614
|
-
$scope.setWidth = function(width, el){
|
|
5646
|
+
$scope.setWidth = function (width, el) {
|
|
5615
5647
|
el.style.width = width;
|
|
5616
5648
|
};
|
|
5617
|
-
|
|
5649
|
+
|
|
5618
5650
|
|
|
5619
5651
|
// ------------------------- Switch -------------------------
|
|
5620
|
-
$scope.switch = function(){
|
|
5621
|
-
if(!$scope.isDisabled){
|
|
5652
|
+
$scope.switch = function () {
|
|
5653
|
+
if (!$scope.isDisabled) {
|
|
5622
5654
|
$scope.model = !$scope.model;
|
|
5623
|
-
|
|
5624
|
-
if($scope.options){
|
|
5625
|
-
if($scope.model){
|
|
5655
|
+
|
|
5656
|
+
if ($scope.options) {
|
|
5657
|
+
if ($scope.model) {
|
|
5626
5658
|
$scope.modelValue = $scope.options[0];
|
|
5627
5659
|
} else {
|
|
5628
5660
|
$scope.modelValue = $scope.options[1];
|
|
5629
5661
|
}
|
|
5630
5662
|
}
|
|
5631
|
-
|
|
5663
|
+
|
|
5632
5664
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
5633
5665
|
$scope.formYesno.$setDirty();
|
|
5634
5666
|
}
|
|
@@ -5690,7 +5722,7 @@ angular.module('niceElements')
|
|
|
5690
5722
|
.service('NiceService', function () {
|
|
5691
5723
|
var service = {
|
|
5692
5724
|
name: "Nice elements",
|
|
5693
|
-
version: "1.9.
|
|
5725
|
+
version: "1.9.4",
|
|
5694
5726
|
getHeader: function () {
|
|
5695
5727
|
return {};
|
|
5696
5728
|
}
|
|
@@ -5766,7 +5798,7 @@ angular.module('niceElements')
|
|
|
5766
5798
|
};
|
|
5767
5799
|
});
|
|
5768
5800
|
|
|
5769
|
-
angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
5801
|
+
angular.module('niceElements').run(['$templateCache', function ($templateCache) {
|
|
5770
5802
|
'use strict';
|
|
5771
5803
|
|
|
5772
5804
|
$templateCache.put('src/components/nice-button-toggle/nice-button-toggle.html',
|
|
@@ -5923,12 +5955,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5923
5955
|
"<input type=\"text\" class=\"form-control\" ng-model=\"modelDate\" ng-blur=\"dateBlur($event)\" ng-disabled=\"isDisabled\">\n" +
|
|
5924
5956
|
"<nice-popup placement=\"bottom\">\n" +
|
|
5925
5957
|
"<nice-popup-target>\n" +
|
|
5926
|
-
"<
|
|
5958
|
+
"<span class=\"input-group-btn\">\n" +
|
|
5959
|
+
"<button class=\"btn btn-default btn-right\" type=\"button\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
|
|
5927
5960
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
5928
5961
|
"</button>\n" +
|
|
5962
|
+
"</span>\n" +
|
|
5929
5963
|
"</nice-popup-target>\n" +
|
|
5930
5964
|
"<nice-popup-content>\n" +
|
|
5931
|
-
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.dateModel\" on-change=\"dateChanged()\" no-margin=\"true\"></nice-date>\n" +
|
|
5965
|
+
"<nice-date is-inline=\"true\" inline=\"true\" model=\"inner.dateModel\" on-change=\"dateChanged()\" no-margin=\"true\" is-disabled=\"isDisabled\"></nice-date>\n" +
|
|
5932
5966
|
"</nice-popup-content>\n" +
|
|
5933
5967
|
"</nice-popup>\n" +
|
|
5934
5968
|
"</div>\n" +
|
|
@@ -5936,12 +5970,14 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5936
5970
|
"<input type=\"text\" class=\"form-control\" ng-model=\"modelTime\" ng-blur=\"timeBlur($event)\" ng-disabled=\"isDisabled\">\n" +
|
|
5937
5971
|
"<nice-popup placement=\"bottom\">\n" +
|
|
5938
5972
|
"<nice-popup-target>\n" +
|
|
5939
|
-
"<
|
|
5973
|
+
"<span class=\"input-group-btn\">\n" +
|
|
5974
|
+
"<button class=\"btn btn-default btn-right\" type=\"button\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
|
|
5940
5975
|
"<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
5941
5976
|
"</button>\n" +
|
|
5977
|
+
"</span>\n" +
|
|
5942
5978
|
"</nice-popup-target>\n" +
|
|
5943
5979
|
"<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" +
|
|
5980
|
+
"<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
5981
|
"</nice-popup-content>\n" +
|
|
5946
5982
|
"</nice-popup>\n" +
|
|
5947
5983
|
"</div>\n" +
|
|
@@ -5977,8 +6013,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
5977
6013
|
"<div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
|
|
5978
6014
|
"<div class=\"nice-date-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-show=\"!inline\" ng-click=\"toggleOpen()\">\n" +
|
|
5979
6015
|
"<input type=\"text\" class=\"form-control\" value=\"{{ model | niceDate:time }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
|
|
5980
|
-
"<span class=\"input-group-
|
|
6016
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6017
|
+
"<button class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
|
|
5981
6018
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6019
|
+
"</button>\n" +
|
|
5982
6020
|
"</span>\n" +
|
|
5983
6021
|
"</div>\n" +
|
|
5984
6022
|
"<div ng-class=\"{ 'nice-date-dropdown-wrapper': !inline }\">\n" +
|
|
@@ -6038,9 +6076,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6038
6076
|
"<div ng-form=\"formDatetimePicker\"></div>\n" +
|
|
6039
6077
|
"<div class=\"input-group\" id=\"dropdown{{randNum}}\">\n" +
|
|
6040
6078
|
"<input type=\"text\" class=\"form-control\" value=\"{{ value }}\" ng-click=\"openDtp()\" ng-disabled=\"isDisabled\">\n" +
|
|
6041
|
-
"<span class=\"input-group-
|
|
6079
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6080
|
+
"<button class=\"btn btn-default\" ng-click=\"openDtp()\">\n" +
|
|
6042
6081
|
"<nice-icon ng-if=\"date == 'true'\" icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6043
6082
|
"<nice-icon ng-if=\"date != 'true'\" icon=\"icon-clock\"></nice-icon>\n" +
|
|
6083
|
+
"</button>\n" +
|
|
6044
6084
|
"</span>\n" +
|
|
6045
6085
|
"</div>\n" +
|
|
6046
6086
|
"<div ng-show=\"isOpen\">\n" +
|
|
@@ -6060,9 +6100,9 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6060
6100
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6061
6101
|
"<div class=\"nice-daterange-picker-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-click=\"open()\">\n" +
|
|
6062
6102
|
"<input type=\"text\" class=\"form-control\" value=\"{{ modelFormat }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
|
|
6063
|
-
"<
|
|
6103
|
+
"<button class=\"btn input-group-addon\" ng-disabled=\"isDisabled\">\n" +
|
|
6064
6104
|
"<nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6065
|
-
"</
|
|
6105
|
+
"</button>\n" +
|
|
6066
6106
|
"</div>\n" +
|
|
6067
6107
|
"<div class=\"nice-daterange-picker-wrapper\">\n" +
|
|
6068
6108
|
"<div class=\"dtp-wrapper\" ng-if=\"isOpen\">\n" +
|
|
@@ -6103,9 +6143,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6103
6143
|
"<div class=\"dropdown-toggle\" id=\"dropdown{{randNum}}\" role=\"button\" ng-click=\"openDtpRange()\">\n" +
|
|
6104
6144
|
"<div class=\"input-group\">\n" +
|
|
6105
6145
|
"<input type=\"text\" class=\"form-control\" value=\"{{value}}\" ng-disabled=\"isDisabled\" ng-click=\"openDtpRange()\">\n" +
|
|
6106
|
-
"<span class=\"input-group-
|
|
6146
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6147
|
+
"<button class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\">\n" +
|
|
6107
6148
|
"<nice-icon ng-if=\"date != 'false'\" icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6108
6149
|
"<nice-icon ng-if=\"date == 'false'\" icon=\"icon-clock\"></nice-icon>\n" +
|
|
6150
|
+
"</button>\n" +
|
|
6109
6151
|
"</span>\n" +
|
|
6110
6152
|
"</div>\n" +
|
|
6111
6153
|
"</div>\n" +
|
|
@@ -6229,19 +6271,23 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6229
6271
|
"<nice-icon ng-if=\"!internal.search\" class=\"icon\" icon=\"icon-search\"></nice-icon>\n" +
|
|
6230
6272
|
"<nice-icon ng-if=\"internal.search\" class=\"icon\" icon=\"icon-x\" ng-click=\"clearSearch()\"></nice-icon>\n" +
|
|
6231
6273
|
"</div>\n" +
|
|
6274
|
+
"<div class=\"nice-dropdown-actions\" ng-if=\"multiple\">\n" +
|
|
6275
|
+
"<button class=\"btn btn-default btn-sm\" ng-click=\"selectAll()\" translate translate-context=\"Nice\">All</button>\n" +
|
|
6276
|
+
"<button class=\"btn btn-default btn-sm\" ng-click=\"selectNone()\" translate translate-context=\"Nice\">None</button>\n" +
|
|
6277
|
+
"</div>\n" +
|
|
6232
6278
|
"<div class=\"nice-dropdown-items\" aria-labelledby=\"nice-dropdown-{{ id }}\" role=\"listbox\">\n" +
|
|
6233
6279
|
"<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" +
|
|
6280
|
+
"<button role=\"option\" class=\"nice-dropdown-item null-item\" ng-if=\"nullable && internalList.length != 0\" ng-click=\"handleSelected(null, -1)\" ng-disabled=\"isDisabled\">\n" +
|
|
6235
6281
|
"{{ nullableText }}\n" +
|
|
6236
6282
|
"</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" +
|
|
6283
|
+
"<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
6284
|
"<div class=\"choice-checkbox\" ng-if=\"multiple\" role=\"menuitemcheckbox\"><i class=\"fa fa-check\"></i></div>\n" +
|
|
6239
6285
|
"<div class=\"choice-option\" ng-transclude=\"option\" ng-class=\"{ 'multiple-item': multiple }\">{{ item[objValue] }}</div>\n" +
|
|
6240
6286
|
"</button>\n" +
|
|
6241
6287
|
"</div>\n" +
|
|
6242
6288
|
"</div>\n" +
|
|
6243
6289
|
"</div>\n" +
|
|
6244
|
-
"<button class=\"btn btn-primary btn-icon add-btn\" type=\"button\" ng-if=\"addButtonFunction && !isDisabled\" ng-click=\"addButtonFunction()\">\n" +
|
|
6290
|
+
"<button class=\"btn btn-primary btn-icon add-btn\" type=\"button\" ng-if=\"addButtonFunction && !isDisabled\" ng-click=\"addButtonFunction()\" ng-disabled=\"isDisabled\">\n" +
|
|
6245
6291
|
"<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
|
|
6246
6292
|
"</button>\n" +
|
|
6247
6293
|
"</div>\n" +
|
|
@@ -6535,13 +6581,17 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6535
6581
|
"<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6536
6582
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6537
6583
|
"<div class=\"input-group\">\n" +
|
|
6538
|
-
"<
|
|
6584
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6585
|
+
"<button class=\"btn btn-default btn-left\" ng-click=\"sub()\" type=\"button\" ng-disabled=\"(model <= min) || isDisabled\" tabindex=\"-1\">\n" +
|
|
6539
6586
|
"<nice-icon icon=\"icon-minus\"></nice-icon>\n" +
|
|
6540
6587
|
"</button>\n" +
|
|
6588
|
+
"</span>\n" +
|
|
6541
6589
|
"<input class=\"value form-control\" ng-model=\"model\" type=\"number\" min=\"{{ min }}\" max=\"{{ max }}\" ng-change=\"handleChange()\" ng-disabled=\"isDisabled\">\n" +
|
|
6542
|
-
"<
|
|
6590
|
+
"<span class=\"input-group-btn\">\n" +
|
|
6591
|
+
"<button class=\"btn btn-default btn-right\" ng-click=\"add()\" type=\"button\" ng-disabled=\"(model >= max) || isDisabled\" tabindex=\"-1\">\n" +
|
|
6543
6592
|
"<nice-icon icon=\"icon-plus\"></nice-icon>\n" +
|
|
6544
6593
|
"</button>\n" +
|
|
6594
|
+
"</span>\n" +
|
|
6545
6595
|
"</div>\n" +
|
|
6546
6596
|
"</div>\n" +
|
|
6547
6597
|
"</div>\n" +
|
|
@@ -6556,13 +6606,13 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6556
6606
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6557
6607
|
"<div class=\"input-group\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
|
|
6558
6608
|
"<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
|
-
"<
|
|
6609
|
+
"<button class=\"btn input-group-addon\" ng-click=\"search()\" ng-if=\"!model\" ng-disabled=\"isDisabled\">\n" +
|
|
6560
6610
|
"<nice-icon ng-show=\"!loading\" icon=\"icon-search\"></nice-icon>\n" +
|
|
6561
6611
|
"<nice-loader ng-if=\"loading\"></nice-loader>\n" +
|
|
6562
|
-
"</
|
|
6563
|
-
"<
|
|
6612
|
+
"</button>\n" +
|
|
6613
|
+
"<button class=\"btn input-group-addon\" ng-click=\"remove()\" ng-if=\"model\" ng-disabled=\"isDisabled\">\n" +
|
|
6564
6614
|
"<nice-icon ng-show=\"!loading\" icon=\"icon-x\"></nice-icon>\n" +
|
|
6565
|
-
"</
|
|
6615
|
+
"</button>\n" +
|
|
6566
6616
|
"</div>\n" +
|
|
6567
6617
|
"</div>\n" +
|
|
6568
6618
|
"</div>\n" +
|
|
@@ -6590,11 +6640,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6590
6640
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
|
|
6591
6641
|
"<div class=\"nice-search-button input-group\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
|
|
6592
6642
|
"<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
|
|
6643
|
+
"<button class=\"btn input-group-addon\" ng-disabled=\"isDisabled\" ng-click=\"buttonClicked()\">\n" +
|
|
6644
|
+
"<nice-icon ng-show=\"!loading && model != ''\" icon=\"icon-x\"></nice-icon>\n" +
|
|
6645
|
+
"<nice-icon ng-show=\"!loading && model == ''\" icon=\"icon-search\"></nice-icon>\n" +
|
|
6596
6646
|
"<nice-loader ng-if=\"loading\"></nice-loader>\n" +
|
|
6597
|
-
"</
|
|
6647
|
+
"</button>\n" +
|
|
6598
6648
|
"</div>\n" +
|
|
6599
6649
|
"<div class=\"nice-search-dropdown-wrapper\">\n" +
|
|
6600
6650
|
"<div class=\"nice-search-dropdown\" ng-if=\"showDropdown && isOpen\">\n" +
|
|
@@ -7609,8 +7659,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7609
7659
|
" 'disabled': isDisabled\n" +
|
|
7610
7660
|
" }\">\n" +
|
|
7611
7661
|
"<input type=\"text\" class=\"form-control\" ng-model=\"modelString\" ng-keyup=\"$event.keyCode == 13 && validateDate()\" ng-blur=\"validateDate()\">\n" +
|
|
7612
|
-
"<span class=\"input-group-
|
|
7662
|
+
"<span class=\"input-group-btn\">\n" +
|
|
7663
|
+
"<button class=\"btn btn-default btn-right\" ng-click=\"open = !open\">\n" +
|
|
7613
7664
|
"<nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
7665
|
+
"</button>\n" +
|
|
7614
7666
|
"</span>\n" +
|
|
7615
7667
|
"</div>\n" +
|
|
7616
7668
|
"<div class=\"nice-time-picker-dropdown\" ng-if=\"open\">\n" +
|
|
@@ -7702,8 +7754,8 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7702
7754
|
"<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7703
7755
|
"<div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
7704
7756
|
"<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" +
|
|
7757
|
+
"<button class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\" ng-disabled=\"isDisabled\">{{ yes }}</button>\n" +
|
|
7758
|
+
"<button class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\" type=\"button\" ng-disabled=\"isDisabled\">{{ no }}</button>\n" +
|
|
7707
7759
|
"<button class=\"yesno-button btn btn-primary\" ng-class=\"buttonClass\" ng-click=\"switch()\" ng-disabled=\"isDisabled\" type=\"button\">{{ state }}</button>\n" +
|
|
7708
7760
|
"</div>\n" +
|
|
7709
7761
|
"</div>\n" +
|