nice-elements 1.10.9 → 1.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +98 -92
- package/dist/nice.min.js +1 -1
- package/dist/style.css +38 -45
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +1 -1
- package/package.json +6 -6
- package/src/components/nice-button/nice-button.html +1 -1
- package/src/components/nice-button/nice-button.js +2 -2
- package/src/components/nice-date/nice-date.html +12 -8
- package/src/components/nice-date/nice-date.js +25 -23
- package/src/components/nice-date/nice-date.scss +51 -48
- package/src/services/nice-service.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.10.11 (18.10.2024)
|
|
4
|
+
|
|
5
|
+
- fixed nice button loading prop
|
|
6
|
+
|
|
7
|
+
## v1.10.10 (16.10.2024)
|
|
8
|
+
|
|
9
|
+
- worked on nice-date component build month weeks
|
|
10
|
+
- updated decimal.js, font-awesome, moment, @eslint/js and eslint
|
|
11
|
+
- created nice date example page
|
|
12
|
+
|
|
3
13
|
## v1.10.9 (14.10.2024)
|
|
4
14
|
|
|
5
15
|
- added inverted prop to nice toggle component
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.10.
|
|
3
|
+
# Nice elements v1.10.11
|
|
4
4
|
|
|
5
5
|
Nice elements is an AngularJS v1.5.8 module that contains nice form elements like inputs, choice fields, search, toggle, dropdown, etc.
|
|
6
6
|
|
package/bower.json
CHANGED
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
|
}
|
|
@@ -50,12 +50,12 @@ angular.module('niceElements')
|
|
|
50
50
|
},
|
|
51
51
|
controller: function ($q, $scope, $transclude) {
|
|
52
52
|
if ($scope.addClass != undefined) console.warn("[NICE ELEMENTS] Nice button: add-class attribute is deprecated")
|
|
53
|
+
if ($scope.niceLoading == undefined) $scope.niceLoading = false;
|
|
53
54
|
if (!$scope.niceType) $scope.niceType = "button";
|
|
54
55
|
$scope.showSlot = $transclude().length > 0;
|
|
55
|
-
$scope.niceLoading = false;
|
|
56
56
|
|
|
57
57
|
$scope.click = function () {
|
|
58
|
-
if ($scope.niceLoading === false && $scope.niceDisabled !== true) {
|
|
58
|
+
if ($scope.niceLoading === false && $scope.niceDisabled !== true && $scope.niceClick) {
|
|
59
59
|
$scope.niceLoading = true;
|
|
60
60
|
|
|
61
61
|
$q.when($scope.niceClick()).finally(function () {
|
|
@@ -661,14 +661,14 @@ angular.module('niceElements')
|
|
|
661
661
|
* # clickOutside
|
|
662
662
|
*/
|
|
663
663
|
angular.module('niceElements')
|
|
664
|
-
.directive('clickOutside', function($document, $parse, $timeout){
|
|
664
|
+
.directive('clickOutside', function ($document, $parse, $timeout) {
|
|
665
665
|
return {
|
|
666
666
|
restrict: 'A',
|
|
667
667
|
link: function ($scope, elem, attr) {
|
|
668
668
|
$scope.isOpen = false;
|
|
669
669
|
|
|
670
670
|
// watch for is open
|
|
671
|
-
attr.$observe('isOpen', function(value){
|
|
671
|
+
attr.$observe('isOpen', function (value) {
|
|
672
672
|
$scope.isOpen = value == 'true';
|
|
673
673
|
});
|
|
674
674
|
|
|
@@ -723,7 +723,7 @@ angular.module('niceElements')
|
|
|
723
723
|
// if we have got this far, then we are good to go with processing the command passed in via the click-outside attribute
|
|
724
724
|
$timeout(function () {
|
|
725
725
|
fn = $parse(attr['clickOutside']);
|
|
726
|
-
fn($scope, {event: e});
|
|
726
|
+
fn($scope, { event: e });
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
729
|
}
|
|
@@ -757,7 +757,7 @@ angular.module('niceElements')
|
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
759
|
};
|
|
760
|
-
});
|
|
760
|
+
});
|
|
761
761
|
'use strict';
|
|
762
762
|
|
|
763
763
|
/**
|
|
@@ -1088,8 +1088,8 @@ angular.module('niceElements')
|
|
|
1088
1088
|
];
|
|
1089
1089
|
|
|
1090
1090
|
$scope.years = [];
|
|
1091
|
-
|
|
1092
|
-
for (
|
|
1091
|
+
const year = moment().year() - 100;
|
|
1092
|
+
for (let i = 0; i < 200; i++) {
|
|
1093
1093
|
$scope.years.push(year + i);
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
@@ -1115,8 +1115,8 @@ angular.module('niceElements')
|
|
|
1115
1115
|
// Setup popper
|
|
1116
1116
|
// https://popper.js.org/docs/v2/constructors/
|
|
1117
1117
|
$scope.setupPopper = function () {
|
|
1118
|
-
|
|
1119
|
-
|
|
1118
|
+
const button = $element[0].getElementsByClassName('nice-date-button')[0];
|
|
1119
|
+
const tooltip = $element[0].getElementsByClassName('nice-date-dropdown-wrapper')[0];
|
|
1120
1120
|
$scope.popper = Popper.createPopper(button, tooltip, {
|
|
1121
1121
|
strategy: 'fixed',
|
|
1122
1122
|
placement: 'bottom-start',
|
|
@@ -1133,33 +1133,37 @@ angular.module('niceElements')
|
|
|
1133
1133
|
|
|
1134
1134
|
$timeout(function () {
|
|
1135
1135
|
if (!$scope.inline) $scope.setupPopper();
|
|
1136
|
-
});
|
|
1136
|
+
}, 100);
|
|
1137
1137
|
|
|
1138
1138
|
|
|
1139
1139
|
// ------------------ Time changes ------------------
|
|
1140
1140
|
$scope.timeChange = function () {
|
|
1141
|
-
|
|
1141
|
+
const selectedDate = angular.copy($scope.model);
|
|
1142
1142
|
selectedDate = $scope._removeTime(selectedDate);
|
|
1143
1143
|
selectedDate.hours($scope.innerDate.hour);
|
|
1144
1144
|
selectedDate.minutes($scope.innerDate.minute);
|
|
1145
1145
|
$scope.innerDate.value = $scope.formatDate(selectedDate);
|
|
1146
1146
|
|
|
1147
1147
|
$scope.model = angular.copy(selectedDate);
|
|
1148
|
-
|
|
1149
|
-
|
|
1148
|
+
$timeout(function () {
|
|
1149
|
+
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
1150
|
+
$scope.forma.$setDirty();
|
|
1151
|
+
})
|
|
1150
1152
|
};
|
|
1151
1153
|
|
|
1152
1154
|
|
|
1153
1155
|
// ------------------ Day was selected ------------------
|
|
1154
1156
|
$scope.select = function (day) {
|
|
1155
1157
|
if (!day.isDisabled) {
|
|
1156
|
-
|
|
1158
|
+
const selectedDate = angular.copy(day.date);
|
|
1157
1159
|
selectedDate.hours($scope.innerDate.hour);
|
|
1158
1160
|
selectedDate.minutes($scope.innerDate.minute);
|
|
1159
1161
|
|
|
1160
1162
|
$scope.model = angular.copy(selectedDate);
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
+
$timeout(function () {
|
|
1164
|
+
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
1165
|
+
$scope.forma.$setDirty();
|
|
1166
|
+
});
|
|
1163
1167
|
}
|
|
1164
1168
|
};
|
|
1165
1169
|
|
|
@@ -1258,12 +1262,10 @@ angular.module('niceElements')
|
|
|
1258
1262
|
|
|
1259
1263
|
// ------------------ Build month ------------------
|
|
1260
1264
|
$scope._buildMonth = function () {
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
date.add(1, "w");
|
|
1265
|
+
let done = false;
|
|
1266
|
+
const date = angular.copy($scope.innerDate.date).startOf("month").startOf('week');
|
|
1267
|
+
let monthIndex = date.month();
|
|
1268
|
+
let count = 0;
|
|
1267
1269
|
|
|
1268
1270
|
$scope.weeks = [];
|
|
1269
1271
|
while (!done) {
|
|
@@ -1277,9 +1279,9 @@ angular.module('niceElements')
|
|
|
1277
1279
|
|
|
1278
1280
|
// ------------------ Build week ------------------
|
|
1279
1281
|
$scope._buildWeek = function (date) {
|
|
1280
|
-
|
|
1281
|
-
for (
|
|
1282
|
-
|
|
1282
|
+
const days = [];
|
|
1283
|
+
for (let i = 0; i < 7; i++) {
|
|
1284
|
+
const day = {
|
|
1283
1285
|
name: date.format("dd"),
|
|
1284
1286
|
number: date.date(),
|
|
1285
1287
|
isCurrentMonth: $scope.isSameMonth(date, $scope.innerDate.date),
|
|
@@ -1304,7 +1306,7 @@ angular.module('niceElements')
|
|
|
1304
1306
|
|
|
1305
1307
|
// ------------------ Watch for model change ------------------
|
|
1306
1308
|
$scope.$watchGroup(["model", 'minDate', 'maxDate', 'nextDate'], function (value) {
|
|
1307
|
-
$scope.
|
|
1309
|
+
$scope.bootstrap();
|
|
1308
1310
|
});
|
|
1309
1311
|
|
|
1310
1312
|
|
|
@@ -1323,7 +1325,7 @@ angular.module('niceElements')
|
|
|
1323
1325
|
|
|
1324
1326
|
|
|
1325
1327
|
// ------------------ Bootstrap ------------------
|
|
1326
|
-
$scope.
|
|
1328
|
+
$scope.bootstrap = function () {
|
|
1327
1329
|
$scope.setInnerDate(moment($scope.model));
|
|
1328
1330
|
$scope.getTime();
|
|
1329
1331
|
|
|
@@ -1335,7 +1337,7 @@ angular.module('niceElements')
|
|
|
1335
1337
|
$scope._buildMonth();
|
|
1336
1338
|
};
|
|
1337
1339
|
|
|
1338
|
-
$scope.
|
|
1340
|
+
$scope.bootstrap();
|
|
1339
1341
|
|
|
1340
1342
|
|
|
1341
1343
|
// ------------------ Toggle open ------------------
|
|
@@ -2820,10 +2822,10 @@ angular.module('niceElements')
|
|
|
2820
2822
|
if ($scope.searchFunction) {
|
|
2821
2823
|
$scope.handleSearch();
|
|
2822
2824
|
}
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
+
|
|
2826
|
+
|
|
2825
2827
|
// ----------------------------------- Handle add button function -----------------------------------
|
|
2826
|
-
$scope.handleAddButton = function($event) {
|
|
2828
|
+
$scope.handleAddButton = function ($event) {
|
|
2827
2829
|
let element = $event.target;
|
|
2828
2830
|
while (true) {
|
|
2829
2831
|
if (element.nodeName == 'BUTTON') {
|
|
@@ -3878,7 +3880,7 @@ angular.module('niceElements')
|
|
|
3878
3880
|
}
|
|
3879
3881
|
|
|
3880
3882
|
$scope.$watch('model', function (value_new, value_old) {
|
|
3881
|
-
if ($scope.type == "number" && value_old && value_old[value_old.length-1] == ".") {
|
|
3883
|
+
if ($scope.type == "number" && value_old && value_old[value_old.length - 1] == ".") {
|
|
3882
3884
|
|
|
3883
3885
|
} else {
|
|
3884
3886
|
$scope.internalModel = angular.copy($scope.model);
|
|
@@ -3906,9 +3908,9 @@ angular.module('niceElements')
|
|
|
3906
3908
|
}
|
|
3907
3909
|
});
|
|
3908
3910
|
|
|
3909
|
-
$scope.handleChange = function() {
|
|
3911
|
+
$scope.handleChange = function () {
|
|
3910
3912
|
if ($scope.onChange) {
|
|
3911
|
-
$timeout(function() {
|
|
3913
|
+
$timeout(function () {
|
|
3912
3914
|
$scope.onChange({ model: $scope.model });
|
|
3913
3915
|
})
|
|
3914
3916
|
}
|
|
@@ -4104,42 +4106,42 @@ angular.module('niceElements')
|
|
|
4104
4106
|
|
|
4105
4107
|
var messageElements = [];
|
|
4106
4108
|
|
|
4107
|
-
var notify = function(args, t){
|
|
4109
|
+
var notify = function (args, t) {
|
|
4108
4110
|
|
|
4109
|
-
if (typeof args !== 'object'){
|
|
4110
|
-
args = {message:args};
|
|
4111
|
+
if (typeof args !== 'object') {
|
|
4112
|
+
args = { message: args };
|
|
4111
4113
|
}
|
|
4112
4114
|
|
|
4113
4115
|
args.template = args.template ? args.template : 'src/components/nice-notification/nice-notification.html';
|
|
4114
4116
|
args.delay = !angular.isUndefined(args.delay) ? args.delay : delay;
|
|
4115
4117
|
args.type = t ? t : '';
|
|
4116
4118
|
|
|
4117
|
-
$http.get(args.template,{cache: $templateCache}).success(function(template) {
|
|
4119
|
+
$http.get(args.template, { cache: $templateCache }).success(function (template) {
|
|
4118
4120
|
|
|
4119
4121
|
var scope = $rootScope.$new();
|
|
4120
4122
|
scope.message = $sce.trustAsHtml(args.message);
|
|
4121
4123
|
scope.title = $sce.trustAsHtml(args.title);
|
|
4122
|
-
scope.t = args.type.substr(0,1);
|
|
4124
|
+
scope.t = args.type.substr(0, 1);
|
|
4123
4125
|
scope.delay = args.delay;
|
|
4124
4126
|
|
|
4125
|
-
if (typeof args.scope === 'object'){
|
|
4126
|
-
for (var key in args.scope){
|
|
4127
|
+
if (typeof args.scope === 'object') {
|
|
4128
|
+
for (var key in args.scope) {
|
|
4127
4129
|
scope[key] = args.scope[key];
|
|
4128
4130
|
}
|
|
4129
4131
|
}
|
|
4130
4132
|
|
|
4131
|
-
var reposite = function() {
|
|
4133
|
+
var reposite = function () {
|
|
4132
4134
|
var j = 0;
|
|
4133
4135
|
var k = 0;
|
|
4134
4136
|
var lastTop = startTop;
|
|
4135
4137
|
var lastRight = startRight;
|
|
4136
|
-
for(var i = messageElements.length - 1; i >= 0; i
|
|
4138
|
+
for (var i = messageElements.length - 1; i >= 0; i--) {
|
|
4137
4139
|
var element = messageElements[i];
|
|
4138
4140
|
var elHeight = parseInt(element[0].offsetHeight);
|
|
4139
4141
|
var elWidth = parseInt(element[0].offsetWidth);
|
|
4140
4142
|
if ((top + elHeight) > window.innerHeight) {
|
|
4141
4143
|
lastTop = startTop;
|
|
4142
|
-
k
|
|
4144
|
+
k++;
|
|
4143
4145
|
j = 0;
|
|
4144
4146
|
}
|
|
4145
4147
|
var top = lastTop + (j === 0 ? 0 : verticalSpacing);
|
|
@@ -4149,22 +4151,22 @@ angular.module('niceElements')
|
|
|
4149
4151
|
element.css('right', right + 'px');
|
|
4150
4152
|
|
|
4151
4153
|
lastTop = top + elHeight;
|
|
4152
|
-
j
|
|
4154
|
+
j++;
|
|
4153
4155
|
}
|
|
4154
4156
|
};
|
|
4155
4157
|
|
|
4156
4158
|
var templateElement = $compile(template)(scope);
|
|
4157
4159
|
templateElement.addClass(args.type);
|
|
4158
|
-
templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function(e){
|
|
4160
|
+
templateElement.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd click', function (e) {
|
|
4159
4161
|
e = e.originalEvent || e;
|
|
4160
|
-
if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)){
|
|
4162
|
+
if (e.type === 'click' || (e.propertyName === 'opacity' && e.elapsedTime >= 0.4)) {
|
|
4161
4163
|
templateElement.remove();
|
|
4162
4164
|
messageElements.splice(messageElements.indexOf(templateElement), 1);
|
|
4163
4165
|
reposite();
|
|
4164
4166
|
}
|
|
4165
4167
|
});
|
|
4166
4168
|
|
|
4167
|
-
$timeout(function() {
|
|
4169
|
+
$timeout(function () {
|
|
4168
4170
|
templateElement.addClass('killed');
|
|
4169
4171
|
templateElement.remove();
|
|
4170
4172
|
messageElements.splice(messageElements.indexOf(templateElement), 1);
|
|
@@ -4176,34 +4178,34 @@ angular.module('niceElements')
|
|
|
4176
4178
|
|
|
4177
4179
|
$timeout(reposite);
|
|
4178
4180
|
|
|
4179
|
-
}).error(function(data){
|
|
4180
|
-
throw new Error('Template ('+args.template+') could not be loaded. ' + data);
|
|
4181
|
+
}).error(function (data) {
|
|
4182
|
+
throw new Error('Template (' + args.template + ') could not be loaded. ' + data);
|
|
4181
4183
|
});
|
|
4182
4184
|
|
|
4183
4185
|
};
|
|
4184
4186
|
|
|
4185
|
-
notify.config = function(args){
|
|
4186
|
-
|
|
4187
|
-
|
|
4187
|
+
notify.config = function (args) {
|
|
4188
|
+
startTop = args.top ? args.top : startTop;
|
|
4189
|
+
verticalSpacing = args.verticalSpacing ? args.verticalSpacing : verticalSpacing;
|
|
4188
4190
|
};
|
|
4189
4191
|
|
|
4190
|
-
notify.primary = function() {
|
|
4192
|
+
notify.primary = function () {
|
|
4191
4193
|
this(args, '');
|
|
4192
4194
|
};
|
|
4193
4195
|
|
|
4194
|
-
notify.error = function(args) {
|
|
4196
|
+
notify.error = function (args) {
|
|
4195
4197
|
this(args, 'error');
|
|
4196
4198
|
};
|
|
4197
4199
|
|
|
4198
|
-
notify.success = function(args) {
|
|
4200
|
+
notify.success = function (args) {
|
|
4199
4201
|
this(args, 'success');
|
|
4200
4202
|
};
|
|
4201
4203
|
|
|
4202
|
-
notify.info = function(args) {
|
|
4204
|
+
notify.info = function (args) {
|
|
4203
4205
|
this(args, 'info');
|
|
4204
4206
|
};
|
|
4205
4207
|
|
|
4206
|
-
notify.warning = function(args) {
|
|
4208
|
+
notify.warning = function (args) {
|
|
4207
4209
|
this(args, 'warning');
|
|
4208
4210
|
};
|
|
4209
4211
|
|
|
@@ -4345,7 +4347,7 @@ angular.module('niceElements')
|
|
|
4345
4347
|
$scope.$watch("model", function (oldModel, newModel) {
|
|
4346
4348
|
$scope.check();
|
|
4347
4349
|
if ($scope.onChange && oldModel != newModel) {
|
|
4348
|
-
$timeout(function() {
|
|
4350
|
+
$timeout(function () {
|
|
4349
4351
|
$scope.onChange({ model: $scope.model });
|
|
4350
4352
|
})
|
|
4351
4353
|
}
|
|
@@ -4639,7 +4641,7 @@ angular.module('niceElements')
|
|
|
4639
4641
|
* # niceProgressBar
|
|
4640
4642
|
*/
|
|
4641
4643
|
angular.module('niceElements')
|
|
4642
|
-
.directive('niceProgressBar', function() {
|
|
4644
|
+
.directive('niceProgressBar', function () {
|
|
4643
4645
|
return {
|
|
4644
4646
|
restrict: 'E',
|
|
4645
4647
|
replace: true,
|
|
@@ -4655,29 +4657,29 @@ angular.module('niceElements')
|
|
|
4655
4657
|
help: '@'
|
|
4656
4658
|
},
|
|
4657
4659
|
|
|
4658
|
-
controller: function($scope, $element, $timeout) {
|
|
4660
|
+
controller: function ($scope, $element, $timeout) {
|
|
4659
4661
|
$scope.width = 0;
|
|
4660
|
-
$scope.resize = function(){
|
|
4661
|
-
$timeout(function() {
|
|
4662
|
+
$scope.resize = function () {
|
|
4663
|
+
$timeout(function () {
|
|
4662
4664
|
$scope.width = $element[0].getElementsByClassName("progress")[0].offsetWidth;
|
|
4663
|
-
},100);
|
|
4665
|
+
}, 100);
|
|
4664
4666
|
};
|
|
4665
|
-
window.onresize = function() {
|
|
4667
|
+
window.onresize = function () {
|
|
4666
4668
|
$scope.resize();
|
|
4667
4669
|
};
|
|
4668
4670
|
$scope.resize();
|
|
4669
4671
|
|
|
4670
|
-
|
|
4671
4672
|
|
|
4672
|
-
|
|
4673
|
+
|
|
4674
|
+
$scope.$watch("value", function (valueNew, valueOld) {
|
|
4673
4675
|
$scope.calculate();
|
|
4674
4676
|
});
|
|
4675
4677
|
|
|
4676
|
-
$scope.$watch("max", function(valueNew, valueOld){
|
|
4678
|
+
$scope.$watch("max", function (valueNew, valueOld) {
|
|
4677
4679
|
$scope.calculate();
|
|
4678
4680
|
});
|
|
4679
4681
|
|
|
4680
|
-
$scope.calculate = function(){
|
|
4682
|
+
$scope.calculate = function () {
|
|
4681
4683
|
$scope.percentage = ($scope.value / $scope.max) * 100;
|
|
4682
4684
|
};
|
|
4683
4685
|
|
|
@@ -5330,7 +5332,7 @@ angular.module('niceElements')
|
|
|
5330
5332
|
controller: function ($scope, $transclude) {
|
|
5331
5333
|
$scope.hasActions = $transclude().length > 0;
|
|
5332
5334
|
|
|
5333
|
-
$scope.setOrder = function(key) {
|
|
5335
|
+
$scope.setOrder = function (key) {
|
|
5334
5336
|
if (!$scope.canOrder) return;
|
|
5335
5337
|
if ($scope.order == "!" + key) {
|
|
5336
5338
|
$scope.order = null;
|
|
@@ -5342,18 +5344,18 @@ angular.module('niceElements')
|
|
|
5342
5344
|
if ($scope.orderChanged) $scope.orderChanged($scope.order);
|
|
5343
5345
|
}
|
|
5344
5346
|
|
|
5345
|
-
$scope.rowStyle = function(column, row) {
|
|
5347
|
+
$scope.rowStyle = function (column, row) {
|
|
5346
5348
|
if (!column.valueStyle) return;
|
|
5347
5349
|
return column.valueStyle(row[column.key], row);
|
|
5348
|
-
}
|
|
5349
|
-
|
|
5350
|
-
$scope.rowClass = function(column, row) {
|
|
5350
|
+
}
|
|
5351
|
+
|
|
5352
|
+
$scope.rowClass = function (column, row) {
|
|
5351
5353
|
if (!column.valueClass) return;
|
|
5352
5354
|
return column.valueClass(row[column.key], row);
|
|
5353
5355
|
}
|
|
5354
|
-
|
|
5355
|
-
$scope.handleFreeze = function(column, isFirst, isLast, index) {
|
|
5356
|
-
return {
|
|
5356
|
+
|
|
5357
|
+
$scope.handleFreeze = function (column, isFirst, isLast, index) {
|
|
5358
|
+
return {
|
|
5357
5359
|
'nice-table-freeze-left': ($scope.freezeFirst && isFirst) || column.freeze,
|
|
5358
5360
|
'nice-table-freeze-right': $scope.freezeLast && isLast && !$scope.hasActions
|
|
5359
5361
|
}
|
|
@@ -5970,7 +5972,7 @@ angular.module('niceElements')
|
|
|
5970
5972
|
.service('NiceService', function ($rootScope) {
|
|
5971
5973
|
var service = {
|
|
5972
5974
|
name: "Nice elements",
|
|
5973
|
-
version: "1.10.
|
|
5975
|
+
version: "1.10.11",
|
|
5974
5976
|
getHeader: function () {
|
|
5975
5977
|
return {};
|
|
5976
5978
|
},
|
|
@@ -6049,7 +6051,7 @@ angular.module('niceElements')
|
|
|
6049
6051
|
};
|
|
6050
6052
|
});
|
|
6051
6053
|
|
|
6052
|
-
angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
6054
|
+
angular.module('niceElements').run(['$templateCache', function ($templateCache) {
|
|
6053
6055
|
'use strict';
|
|
6054
6056
|
|
|
6055
6057
|
$templateCache.put('src/components/nice-button-toggle/nice-button-toggle.html',
|
|
@@ -6066,7 +6068,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6066
6068
|
|
|
6067
6069
|
|
|
6068
6070
|
$templateCache.put('src/components/nice-button/nice-button.html',
|
|
6069
|
-
"<button type=\"{{ niceType }}\" class=\"nice-component nice-button btn btn-primary\" ng-class=\"{ 'margin-bottom-0' : noMargin }\" ng-click=\"click()\" ng-disabled=\"niceDisabled == true\">\n" +
|
|
6071
|
+
"<button type=\"{{ niceType }}\" class=\"nice-component nice-button btn btn-primary\" ng-class=\"{ 'margin-bottom-0' : noMargin }\" ng-click=\"click()\" ng-disabled=\"niceDisabled == true || niceLoading == true\">\n" +
|
|
6070
6072
|
"<nice-icon icon=\"{{ icon }}\" ng-if=\"icon\" ng-class=\"{ 'opacity-0': niceLoading }\"></nice-icon>\n" +
|
|
6071
6073
|
"<span ng-if=\"showSlot\" ng-transclude ng-class=\"{ 'opacity-0': niceLoading }\"></span>\n" +
|
|
6072
6074
|
"<nice-loader ng-if=\"niceLoading\" fulldiv=\"true\" class=\"nice-button-loader\"></nice-loader>\n" +
|
|
@@ -6289,15 +6291,19 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6289
6291
|
"<div class=\"nice-date-date\" ng-if=\"date\" role=\"grid\">\n" +
|
|
6290
6292
|
"<div class=\"nice-date-header\">\n" +
|
|
6291
6293
|
"<span>\n" +
|
|
6292
|
-
"<select class=\"year-picker\" ng-model=\"innerDate.year\" ng-change=\"handleDateChange()\" ng-options=\"year for year in years\" ng-disabled=\"isDisabled\">\n" +
|
|
6293
|
-
"
|
|
6294
|
-
"<
|
|
6295
|
-
"<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" +
|
|
6296
|
-
"</select>\n" +
|
|
6294
|
+
"<select class=\"year-picker\" ng-model=\"innerDate.year\" ng-change=\"handleDateChange()\" ng-options=\"year for year in years\" ng-disabled=\"isDisabled\"></select>\n" +
|
|
6295
|
+
"<span class=\"nice-date-header-comma\">,</span>\n" +
|
|
6296
|
+
"<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\"></select>\n" +
|
|
6297
6297
|
"</span>\n" +
|
|
6298
|
-
"<button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"previous()\"
|
|
6299
|
-
"<
|
|
6300
|
-
"
|
|
6298
|
+
"<button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"previous()\">\n" +
|
|
6299
|
+
"<nice-icon icon=\"icon-chevron-left\"></nice-icon>\n" +
|
|
6300
|
+
"</button>\n" +
|
|
6301
|
+
"<button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"today()\">\n" +
|
|
6302
|
+
"<nice-icon icon=\"icon-circle\"></nice-icon>\n" +
|
|
6303
|
+
"</button>\n" +
|
|
6304
|
+
"<button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"next()\">\n" +
|
|
6305
|
+
"<nice-icon icon=\"icon-chevron-right\"></nice-icon>\n" +
|
|
6306
|
+
"</button>\n" +
|
|
6301
6307
|
"</div>\n" +
|
|
6302
6308
|
"<div class=\"nice-date-week names\">\n" +
|
|
6303
6309
|
"<span class=\"nice-date-day\" ng-class=\"{ 'weekend': $index == 6 || $index == 5 }\" ng-repeat=\"day in weekdays\">{{ day }}</span>\n" +
|
|
@@ -8153,5 +8159,5 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
8153
8159
|
"</div>\n" +
|
|
8154
8160
|
"</div>"
|
|
8155
8161
|
);
|
|
8156
|
-
|
|
8157
|
-
}]);
|
|
8162
|
+
|
|
8163
|
+
}]);
|