nice-elements 1.13.3 → 1.13.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 +12 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +286 -134
- package/dist/nice.min.js +1 -1
- package/dist/style.css +108 -74
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-alert/nice-alert.js +3 -2
- package/src/components/nice-calendar/nice-calendar.html +105 -12
- package/src/components/nice-calendar/nice-calendar.js +118 -47
- package/src/components/nice-calendar/nice-calendar.scss +137 -95
- package/src/components/nice-checkbox/nice-checkbox.html +1 -1
- package/src/components/nice-choice/nice-choice.html +1 -1
- package/src/components/nice-choice/nice-choice.js +1 -0
- package/src/components/nice-comment/nice-comment.html +1 -1
- package/src/components/nice-comment/nice-comment.js +1 -0
- package/src/components/nice-date/nice-date.html +18 -9
- package/src/components/nice-date/nice-date.js +67 -36
- package/src/components/nice-date/nice-date.scss +21 -27
- package/src/components/nice-date-input/nice-date-input.html +1 -1
- package/src/components/nice-date-input/nice-date-input.js +1 -0
- package/src/components/nice-date-range/nice-date-range.html +1 -1
- package/src/components/nice-date-range/nice-date-range.js +1 -0
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +1 -1
- package/src/components/nice-datetime-picker/nice-datetime-picker.js +1 -0
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +1 -1
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +1 -0
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +1 -1
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +1 -0
- package/src/components/nice-dropdown/nice-dropdown.html +1 -1
- package/src/components/nice-dropdown/nice-dropdown.js +1 -0
- package/src/components/nice-dropdown-date/nice-dropdown-date.html +1 -1
- package/src/components/nice-dropdown-date/nice-dropdown-date.js +1 -0
- package/src/components/nice-dropdown-old/nice-dropdown-old.html +1 -1
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +1 -0
- package/src/components/nice-dtp/nice-dtp.js +1 -0
- package/src/components/nice-input/nice-input.html +44 -4
- package/src/components/nice-input/nice-input.js +6 -2
- package/src/components/nice-label/nice-label.html +1 -1
- package/src/components/nice-label/nice-label.js +1 -0
- package/src/components/nice-number/nice-number.html +1 -1
- package/src/components/nice-number/nice-number.js +1 -0
- package/src/components/nice-options/nice-options.html +1 -1
- package/src/components/nice-options/nice-options.js +1 -0
- package/src/components/nice-percent/nice-percent.html +1 -1
- package/src/components/nice-percent/nice-percent.js +1 -0
- package/src/components/nice-progress-bar/nice-progress-bar.html +1 -1
- package/src/components/nice-progress-bar/nice-progress-bar.js +1 -0
- package/src/components/nice-quantity/nice-quantity.html +1 -1
- package/src/components/nice-quantity/nice-quantity.js +1 -0
- package/src/components/nice-search/nice-search.html +1 -1
- package/src/components/nice-search/nice-search.js +1 -0
- package/src/components/nice-search2/nice-search2.html +1 -1
- package/src/components/nice-search2/nice-search2.js +1 -0
- package/src/components/nice-slot/nice-slot.html +1 -1
- package/src/components/nice-slot/nice-slot.js +1 -0
- package/src/components/nice-time-picker/nice-time-picker.html +1 -1
- package/src/components/nice-time-picker/nice-time-picker.js +1 -0
- package/src/components/nice-toggle/nice-toggle.html +1 -1
- package/src/components/nice-upload/nice-upload.html +1 -1
- package/src/components/nice-upload/nice-upload.js +1 -0
- package/src/components/nice-wrapper/nice-wrapper.js +1 -0
- package/src/components/nice-yesno/nice-yesno.html +1 -1
- package/src/components/nice-yesno/nice-yesno.js +1 -0
- package/src/services/nice-service.js +1 -1
- package/src/styles/_nice-common.scss +11 -1
package/dist/nice.js
CHANGED
|
@@ -19,10 +19,11 @@ angular.module('niceElements')
|
|
|
19
19
|
icon: '@?',
|
|
20
20
|
type: '@?',
|
|
21
21
|
niceTitle: '@?',
|
|
22
|
+
description: '@?',
|
|
22
23
|
message: '@?',
|
|
23
24
|
fitContent: '=?',
|
|
24
|
-
iconCenter: '
|
|
25
|
-
largeIcon: '
|
|
25
|
+
iconCenter: '=?',
|
|
26
|
+
largeIcon: '=?'
|
|
26
27
|
},
|
|
27
28
|
controller: function ($scope) {
|
|
28
29
|
if (!$scope.type) $scope.type = "error";
|
|
@@ -235,6 +236,7 @@ angular.module('niceElements')
|
|
|
235
236
|
templateUrl: "src/components/nice-calendar/nice-calendar.html",
|
|
236
237
|
scope: {
|
|
237
238
|
niceTitle: '@',
|
|
239
|
+
description: '@?',
|
|
238
240
|
title: '@',
|
|
239
241
|
fieldWidth: '@',
|
|
240
242
|
labelWidth: '@',
|
|
@@ -255,9 +257,31 @@ angular.module('niceElements')
|
|
|
255
257
|
},
|
|
256
258
|
link: function (scope, element) {
|
|
257
259
|
// ------------------ Init default values ------------------
|
|
260
|
+
scope.innerDate = moment();
|
|
258
261
|
scope.selectStart = true;
|
|
259
262
|
scope.popupText = gettextCatalog.getString("Select start date", null, "Nice");
|
|
260
263
|
|
|
264
|
+
scope.years = [];
|
|
265
|
+
const year = moment().year() - 100;
|
|
266
|
+
for (let i = 0; i < 200; i++) {
|
|
267
|
+
scope.years.push(year + i);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
scope.months = [
|
|
271
|
+
{ value: 0, name: gettextCatalog.getString("January", null, "Nice") },
|
|
272
|
+
{ value: 1, name: gettextCatalog.getString("February", null, "Nice") },
|
|
273
|
+
{ value: 2, name: gettextCatalog.getString("March", null, "Nice") },
|
|
274
|
+
{ value: 3, name: gettextCatalog.getString("April", null, "Nice") },
|
|
275
|
+
{ value: 4, name: gettextCatalog.getString("May", null, "Nice") },
|
|
276
|
+
{ value: 5, name: gettextCatalog.getString("June", null, "Nice") },
|
|
277
|
+
{ value: 6, name: gettextCatalog.getString("July", null, "Nice") },
|
|
278
|
+
{ value: 7, name: gettextCatalog.getString("August", null, "Nice") },
|
|
279
|
+
{ value: 8, name: gettextCatalog.getString("September", null, "Nice") },
|
|
280
|
+
{ value: 9, name: gettextCatalog.getString("October", null, "Nice") },
|
|
281
|
+
{ value: 10, name: gettextCatalog.getString("November", null, "Nice") },
|
|
282
|
+
{ value: 11, name: gettextCatalog.getString("December", null, "Nice") }
|
|
283
|
+
];
|
|
284
|
+
|
|
261
285
|
scope.hours = [
|
|
262
286
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
|
|
263
287
|
];
|
|
@@ -320,11 +344,11 @@ angular.module('niceElements')
|
|
|
320
344
|
scope.endDateMinute = moment(scope.endDate).minutes();
|
|
321
345
|
}
|
|
322
346
|
}
|
|
323
|
-
|
|
324
|
-
scope.
|
|
347
|
+
|
|
348
|
+
scope.innerDate = angular.copy(moment(scope.startDate));
|
|
325
349
|
const start = angular.copy(moment(scope.startDate));
|
|
326
350
|
_removeTimeWithDate(start.date(0));
|
|
327
|
-
_buildMonth(
|
|
351
|
+
_buildMonth();
|
|
328
352
|
}
|
|
329
353
|
|
|
330
354
|
bootstrap();
|
|
@@ -381,7 +405,7 @@ angular.module('niceElements')
|
|
|
381
405
|
}
|
|
382
406
|
}
|
|
383
407
|
|
|
384
|
-
|
|
408
|
+
scope.handleUpdate();
|
|
385
409
|
}
|
|
386
410
|
};
|
|
387
411
|
|
|
@@ -440,31 +464,44 @@ angular.module('niceElements')
|
|
|
440
464
|
|
|
441
465
|
|
|
442
466
|
scope.handleUpdate = function () {
|
|
467
|
+
scope.startDate.seconds(0).millisecond(0);
|
|
468
|
+
scope.endDate.seconds(59).milliseconds(999);
|
|
443
469
|
if (scope.onChange) scope.onChange({ model: { startDate: scope.startDate, endDate: scope.endDate }, element: element });
|
|
444
470
|
};
|
|
445
471
|
|
|
472
|
+
scope.yearSelectChange = function () {
|
|
473
|
+
scope.innerDate = scope.innerDate.year(scope.selectedYear);
|
|
474
|
+
_buildMonth();
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
scope.monthSelectChange = function () {
|
|
478
|
+
scope.innerDate = scope.innerDate.month(scope.selectedMonth);
|
|
479
|
+
_buildMonth();
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
// ------------------ Go to today ------------------
|
|
483
|
+
scope.today = function () {
|
|
484
|
+
scope.innerDate = moment();
|
|
485
|
+
_buildMonth();
|
|
486
|
+
};
|
|
446
487
|
|
|
447
488
|
// ------------------ Go to next month ------------------
|
|
448
489
|
scope.next = function () {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
scope.month.month(scope.month.month() + 1);
|
|
452
|
-
_buildMonth(scope, next, scope.month);
|
|
490
|
+
scope.innerDate = scope.innerDate.add(1, "month");
|
|
491
|
+
_buildMonth();
|
|
453
492
|
};
|
|
454
493
|
|
|
455
494
|
|
|
456
495
|
// ------------------ Go to previous month ------------------
|
|
457
496
|
scope.previous = function () {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
scope.month.month(scope.month.month() - 1);
|
|
461
|
-
_buildMonth(scope, previous, scope.month);
|
|
497
|
+
scope.innerDate = scope.innerDate.subtract(1, "month");
|
|
498
|
+
_buildMonth();
|
|
462
499
|
};
|
|
463
500
|
|
|
464
501
|
|
|
465
502
|
// ------------------ Check if dates are equal without time ------------------
|
|
466
503
|
scope.isSameDay = function (date1, date2) {
|
|
467
|
-
if(!date1 || !date2) return false;
|
|
504
|
+
if (!date1 || !date2) return false;
|
|
468
505
|
const d1 = _removeTime(angular.copy(date1));
|
|
469
506
|
const d2 = _removeTime(angular.copy(date2));
|
|
470
507
|
return d1.isSame(d2);
|
|
@@ -473,7 +510,7 @@ angular.module('niceElements')
|
|
|
473
510
|
|
|
474
511
|
// ------------------ Check if date is between start and end date ------------------
|
|
475
512
|
scope.isBetweenRange = function (date) {
|
|
476
|
-
if(!scope.endDate || !scope.startDate) return false;
|
|
513
|
+
if (!scope.endDate || !scope.startDate) return false;
|
|
477
514
|
return (date.isBefore(moment(scope.endDate)) && date.isAfter(moment(scope.startDate)));
|
|
478
515
|
};
|
|
479
516
|
|
|
@@ -523,45 +560,80 @@ angular.module('niceElements')
|
|
|
523
560
|
return date.day(0).hour(0).minute(0).second(0).millisecond(0);
|
|
524
561
|
}
|
|
525
562
|
|
|
563
|
+
// ------------------ Build month ------------------
|
|
564
|
+
function _buildMonth() {
|
|
565
|
+
scope.selectedYear = scope.innerDate.year();
|
|
566
|
+
scope.selectedMonth = scope.innerDate.month();
|
|
526
567
|
|
|
568
|
+
scope.days = [];
|
|
527
569
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
570
|
+
// 1. Get the first day of the currently viewed month
|
|
571
|
+
const firstDayOfMonth = new Date(
|
|
572
|
+
scope.innerDate.year(),
|
|
573
|
+
scope.innerDate.month(),
|
|
574
|
+
1
|
|
575
|
+
);
|
|
576
|
+
|
|
577
|
+
// 2. Calculate the offset (0 = Sunday, 1 = Monday, etc.)
|
|
578
|
+
// If your calendar starts on Monday, we adjust the JS Sunday (0) to 7
|
|
579
|
+
let startOffset = firstDayOfMonth.getDay();
|
|
580
|
+
if (startOffset === 0) startOffset = 7; // Treat Sunday as 7
|
|
581
|
+
startOffset -= 1; // Adjust so Monday = 0
|
|
582
|
+
|
|
583
|
+
// 3. We always want to show a standard 6-week grid (42 days)
|
|
584
|
+
// We start the loop from 1 minus the offset
|
|
585
|
+
for (let d = 1 - startOffset; d <= 42 - startOffset; d++) {
|
|
586
|
+
scope.days.push(
|
|
587
|
+
_buildDay(
|
|
588
|
+
scope.innerDate.year(),
|
|
589
|
+
scope.innerDate.month(),
|
|
590
|
+
d
|
|
591
|
+
)
|
|
592
|
+
);
|
|
538
593
|
}
|
|
539
594
|
}
|
|
540
595
|
|
|
596
|
+
// ------------------ Build day ------------------
|
|
597
|
+
function _buildDay(year, month, day) {
|
|
598
|
+
const today = moment();
|
|
599
|
+
const date = moment().year(year).month(month).date(day);
|
|
600
|
+
return {
|
|
601
|
+
id: date.toString(),
|
|
602
|
+
date: date,
|
|
603
|
+
year: date.year(),
|
|
604
|
+
month: date.month(),
|
|
605
|
+
day: date.date(),
|
|
606
|
+
dayInWeek: date.day(),
|
|
607
|
+
isCurrentMonth: date.month() == scope.innerDate.month(),
|
|
608
|
+
isWeekday: date.day() == 0 || date.day() == 6,
|
|
609
|
+
isToday: _isSameDay(moment(), date),
|
|
610
|
+
selected: _isSameDay(scope.innerDate, date),
|
|
611
|
+
today: _isSameDay(today, date),
|
|
612
|
+
highlighted: _isHighlighted(date),
|
|
613
|
+
isDisabled: _isDisabledDate(date),
|
|
614
|
+
text: date.format('dddd, D.M.YYYY'),
|
|
615
|
+
name: date.format('D'),
|
|
616
|
+
};
|
|
617
|
+
}
|
|
541
618
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
number: date.date(),
|
|
549
|
-
isCurrentMonth: date.month() === month.month(),
|
|
550
|
-
isToday: date.isSame(new Date(), "day"),
|
|
551
|
-
isWeekday: date.weekday() == 0 || date.weekday() == 6,
|
|
552
|
-
date: date
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
if (scope.minDate) day.isDisabled = date.isBefore(moment(scope.minDate));
|
|
556
|
-
if (scope.maxDate) day.isDisabled = date.isAfter(moment(scope.maxDate));
|
|
557
|
-
if (scope.minDate && scope.maxDate) day.isDisabled = !date.isBetween(moment(scope.minDate), moment(scope.maxDate));
|
|
619
|
+
function _isDisabledDate(date) {
|
|
620
|
+
// console.log(date.format('D.M.YYYY'), scope.minDate.format('D.M.YYYY'), scope.maxDate.format('D.M.YYYY'));
|
|
621
|
+
if (scope.minDate && date.isBefore(scope.minDate)) return true;
|
|
622
|
+
if (scope.maxDate && date.isAfter(scope.maxDate)) return true;
|
|
623
|
+
return false;
|
|
624
|
+
}
|
|
558
625
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
626
|
+
function _isHighlighted(date) {
|
|
627
|
+
// if (props.highlightTo && isWithinInterval(date, { end: props.highlightTo, start: selected.value })) return true;
|
|
628
|
+
return false;
|
|
629
|
+
}
|
|
563
630
|
|
|
564
|
-
|
|
631
|
+
function _isSameDay(date1, date2) {
|
|
632
|
+
return (
|
|
633
|
+
date1.date() == date2.date() &&
|
|
634
|
+
date1.month() == date2.month() &&
|
|
635
|
+
date1.year() == date2.year()
|
|
636
|
+
);
|
|
565
637
|
}
|
|
566
638
|
}
|
|
567
639
|
};
|
|
@@ -622,6 +694,7 @@ angular.module('niceElements')
|
|
|
622
694
|
restrict: 'E',
|
|
623
695
|
scope: {
|
|
624
696
|
niceTitle: '@',
|
|
697
|
+
description: '@?',
|
|
625
698
|
title: '@',
|
|
626
699
|
model: '=',
|
|
627
700
|
list: '=',
|
|
@@ -836,6 +909,7 @@ angular.module('niceElements')
|
|
|
836
909
|
model: '=',
|
|
837
910
|
title: '@?',
|
|
838
911
|
niceTitle: '@?',
|
|
912
|
+
description: '@?',
|
|
839
913
|
isDisabled: '=',
|
|
840
914
|
placeholder: '@',
|
|
841
915
|
noTextLabel: '@',
|
|
@@ -913,6 +987,7 @@ angular.module('niceElements')
|
|
|
913
987
|
maxDate: '=', // default: undefined
|
|
914
988
|
niceTitle: '@',
|
|
915
989
|
title: '@', // default: ''
|
|
990
|
+
description: '@?',
|
|
916
991
|
noMargin: '@', // default: false, if noMargin==true then entire directive can be injected inside other divs
|
|
917
992
|
fieldWidth: '@', // default: 'col-sm-8', bootstrap classes that defines width of field
|
|
918
993
|
labelWidth: '@', // default: 'col-sm-4', bootstrap classes that defines width of label
|
|
@@ -1054,6 +1129,7 @@ angular.module('niceElements')
|
|
|
1054
1129
|
model: '=',
|
|
1055
1130
|
niceTitle: '@',
|
|
1056
1131
|
title: '@',
|
|
1132
|
+
description: '@?',
|
|
1057
1133
|
fieldWidth: '@',
|
|
1058
1134
|
format: '@',
|
|
1059
1135
|
min: '@',
|
|
@@ -1131,6 +1207,7 @@ angular.module('niceElements')
|
|
|
1131
1207
|
templateUrl: 'src/components/nice-date/nice-date.html',
|
|
1132
1208
|
scope: {
|
|
1133
1209
|
niceTitle: '@',
|
|
1210
|
+
description: '@?',
|
|
1134
1211
|
title: '@', // default: ''
|
|
1135
1212
|
noMargin: '@', // default: false, if noMargin==true then entire directive can be injected inside other divs
|
|
1136
1213
|
fieldWidth: '@', // default: 'col-sm-8', bootstrap classes that defines width of field
|
|
@@ -1373,47 +1450,77 @@ angular.module('niceElements')
|
|
|
1373
1450
|
|
|
1374
1451
|
|
|
1375
1452
|
// ------------------ Build month ------------------
|
|
1376
|
-
$scope._buildMonth = function
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1453
|
+
$scope._buildMonth = function() {
|
|
1454
|
+
$scope.days = [];
|
|
1455
|
+
|
|
1456
|
+
// 1. Get the first day of the currently viewed month
|
|
1457
|
+
const firstDayOfMonth = new Date(
|
|
1458
|
+
$scope.innerDate.year,
|
|
1459
|
+
$scope.innerDate.month,
|
|
1460
|
+
1
|
|
1461
|
+
);
|
|
1462
|
+
|
|
1463
|
+
// 2. Calculate the offset (0 = Sunday, 1 = Monday, etc.)
|
|
1464
|
+
// If your calendar starts on Monday, we adjust the JS Sunday (0) to 7
|
|
1465
|
+
let startOffset = firstDayOfMonth.getDay();
|
|
1466
|
+
if (startOffset === 0) startOffset = 7; // Treat Sunday as 7
|
|
1467
|
+
startOffset -= 1; // Adjust so Monday = 0
|
|
1468
|
+
|
|
1469
|
+
// 3. We always want to show a standard 6-week grid (42 days)
|
|
1470
|
+
// We start the loop from 1 minus the offset
|
|
1471
|
+
for (let d = 1 - startOffset; d <= 42 - startOffset; d++) {
|
|
1472
|
+
$scope.days.push(
|
|
1473
|
+
_buildDay(
|
|
1474
|
+
$scope.innerDate.year,
|
|
1475
|
+
$scope.innerDate.month,
|
|
1476
|
+
d
|
|
1477
|
+
)
|
|
1478
|
+
);
|
|
1388
1479
|
}
|
|
1389
1480
|
};
|
|
1390
1481
|
|
|
1482
|
+
// ------------------ Build day ------------------
|
|
1483
|
+
function _buildDay(year, month, day) {
|
|
1484
|
+
const today = moment();
|
|
1485
|
+
const date = moment().year(year).month(month).date(day);
|
|
1486
|
+
return {
|
|
1487
|
+
id: date.toString(),
|
|
1488
|
+
date: date,
|
|
1489
|
+
year: date.year(),
|
|
1490
|
+
month: date.month(),
|
|
1491
|
+
day: date.date(),
|
|
1492
|
+
dayInWeek: date.day(),
|
|
1493
|
+
isCurrentMonth: date.month() == $scope.innerDate.month,
|
|
1494
|
+
isWeekday: date.day() == 0 || date.day() == 6,
|
|
1495
|
+
isToday: _isSameDay(moment(), date),
|
|
1496
|
+
selected: _isSameDay($scope.innerDate.date, date),
|
|
1497
|
+
today: _isSameDay(today, date),
|
|
1498
|
+
highlighted: _isHighlighted(date),
|
|
1499
|
+
isDisabled: _isDisabledDate(date),
|
|
1500
|
+
text: date.format('dddd, D.M.YYYY'),
|
|
1501
|
+
name: date.format('D'),
|
|
1502
|
+
};
|
|
1503
|
+
}
|
|
1391
1504
|
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
number: date.date(),
|
|
1399
|
-
isCurrentMonth: $scope.isSameMonth(date, $scope.innerDate.date),
|
|
1400
|
-
isToday: date.isSame(new Date(), "day"),
|
|
1401
|
-
isWeekday: date.weekday() == 6 || date.weekday() == 0,
|
|
1402
|
-
value: date.format('D.M.YYYY'),
|
|
1403
|
-
date: date
|
|
1404
|
-
};
|
|
1405
|
-
|
|
1406
|
-
if ($scope.minDate) day.isDisabled = date.isBefore($scope.minDate);
|
|
1407
|
-
if ($scope.maxDate) day.isDisabled = date.isAfter($scope.maxDate);
|
|
1408
|
-
if ($scope.minDate && $scope.maxDate) day.isDisabled = !date.isBetween($scope.minDate, $scope.maxDate);
|
|
1505
|
+
function _isDisabledDate(date) {
|
|
1506
|
+
// console.log(date.format('D.M.YYYY'), $scope.minDate.format('D.M.YYYY'), $scope.maxDate.format('D.M.YYYY'));
|
|
1507
|
+
if ($scope.minDate && date.isBefore($scope.minDate)) return true;
|
|
1508
|
+
if ($scope.maxDate && date.isAfter($scope.maxDate)) return true;
|
|
1509
|
+
return false;
|
|
1510
|
+
}
|
|
1409
1511
|
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1512
|
+
function _isHighlighted(date) {
|
|
1513
|
+
// if (props.highlightTo && isWithinInterval(date, { end: props.highlightTo, start: selected.value })) return true;
|
|
1514
|
+
return false;
|
|
1515
|
+
}
|
|
1414
1516
|
|
|
1415
|
-
|
|
1416
|
-
|
|
1517
|
+
function _isSameDay(date1, date2) {
|
|
1518
|
+
return (
|
|
1519
|
+
date1.date() == date2.date() &&
|
|
1520
|
+
date1.month() == date2.month() &&
|
|
1521
|
+
date1.year() == date2.year()
|
|
1522
|
+
);
|
|
1523
|
+
}
|
|
1417
1524
|
|
|
1418
1525
|
|
|
1419
1526
|
// ------------------ Watch for model change ------------------
|
|
@@ -1493,6 +1600,7 @@ angular.module('niceElements').directive('niceDatetimePicker', function () {
|
|
|
1493
1600
|
cancelText: '@',
|
|
1494
1601
|
shortTime: '@', // default: false,
|
|
1495
1602
|
niceTitle: '@',
|
|
1603
|
+
description: '@?',
|
|
1496
1604
|
title: '@', // default: ''
|
|
1497
1605
|
noMargin: '@', // default: false, if noMargin==true then entire directive can be injected inside other divs
|
|
1498
1606
|
fieldWidth: '@', // default: 'col-sm-8', bootstrap classes that defines width of field
|
|
@@ -1575,6 +1683,7 @@ angular.module('niceElements')
|
|
|
1575
1683
|
minDate: '@', // default: undefined
|
|
1576
1684
|
maxDate: '@', // default: undefined
|
|
1577
1685
|
niceTitle: '@',
|
|
1686
|
+
description: '@?',
|
|
1578
1687
|
title: '@', // default: ''
|
|
1579
1688
|
noMargin: '@', // default: false, if noMargin==true then entire directive can be injected inside other divs
|
|
1580
1689
|
fieldWidth: '@', // default: 'col-sm-8', bootstrap classes that defines width of field
|
|
@@ -1759,6 +1868,7 @@ angular.module('niceElements')
|
|
|
1759
1868
|
cancelText: '@',
|
|
1760
1869
|
shortTime: '@', // default: false,
|
|
1761
1870
|
niceTitle: '@',
|
|
1871
|
+
description: '@?',
|
|
1762
1872
|
title: '@', // default: ''
|
|
1763
1873
|
noMargin: '@', // default: false, if noMargin==true then entire directive can be injected inside other divs
|
|
1764
1874
|
fieldWidth: '@', // default: 'col-sm-8', bootstrap classes that defines width of field
|
|
@@ -1997,6 +2107,7 @@ angular.module('niceElements')
|
|
|
1997
2107
|
scope: {
|
|
1998
2108
|
model: '=',
|
|
1999
2109
|
niceTitle: '@',
|
|
2110
|
+
description: '@?',
|
|
2000
2111
|
title: '@',
|
|
2001
2112
|
fieldWidth: '@',
|
|
2002
2113
|
labelWidth: '@',
|
|
@@ -2129,6 +2240,7 @@ angular.module('niceElements')
|
|
|
2129
2240
|
transclude: true,
|
|
2130
2241
|
scope: {
|
|
2131
2242
|
niceTitle: '@',
|
|
2243
|
+
description: '@?',
|
|
2132
2244
|
title: '@', // Title of the field
|
|
2133
2245
|
model: '=', // Aka model
|
|
2134
2246
|
list: '=', // List of options
|
|
@@ -2463,6 +2575,7 @@ angular.module('niceElements')
|
|
|
2463
2575
|
},
|
|
2464
2576
|
scope: {
|
|
2465
2577
|
niceTitle: '@',
|
|
2578
|
+
description: '@?',
|
|
2466
2579
|
title: '@', // Title of the field
|
|
2467
2580
|
model: '=', // Aka model
|
|
2468
2581
|
list: '=', // List of options
|
|
@@ -2993,6 +3106,7 @@ angular.module('niceElements')
|
|
|
2993
3106
|
cancelText: '@',
|
|
2994
3107
|
shortTime: '@', // default: false,
|
|
2995
3108
|
niceTitle: '@',
|
|
3109
|
+
description: '@?',
|
|
2996
3110
|
title: '@', // default: ''
|
|
2997
3111
|
noMargin: '@', // default: false, if noMargin==true then entire directive can be injected inside other divs
|
|
2998
3112
|
fieldWidth: '@', // default: 'col-sm-8', bootstrap classes that defines width of field
|
|
@@ -3889,8 +4003,8 @@ angular.module('niceElements')
|
|
|
3889
4003
|
isDisabled: '=',
|
|
3890
4004
|
type: '@',
|
|
3891
4005
|
title: '@?',
|
|
3892
|
-
description: '@?',
|
|
3893
4006
|
niceTitle: '@?',
|
|
4007
|
+
description: '@?',
|
|
3894
4008
|
regex: '@?',
|
|
3895
4009
|
regexRaw: '@?',
|
|
3896
4010
|
regexError: '@?',
|
|
@@ -3921,7 +4035,8 @@ angular.module('niceElements')
|
|
|
3921
4035
|
multilanguage: '=?', // Multiple languages object
|
|
3922
4036
|
multilanguageField: '@?', // Multiple languages field name
|
|
3923
4037
|
multilanguageDisabled: '=', // Multiple languages field disabled
|
|
3924
|
-
autocomplete: "@?"
|
|
4038
|
+
autocomplete: "@?",
|
|
4039
|
+
disableTrim: "@?"
|
|
3925
4040
|
},
|
|
3926
4041
|
controller: function ($scope, $attrs, $rootScope, $element, ngDialog) {
|
|
3927
4042
|
if (!$attrs.type) { $attrs.type = 'text'; }
|
|
@@ -3936,6 +4051,7 @@ angular.module('niceElements')
|
|
|
3936
4051
|
if (!$attrs.symbol) { $attrs.symbol = ''; }
|
|
3937
4052
|
if (!$attrs.help) { $attrs.help = ''; }
|
|
3938
4053
|
if (!$attrs.name) { $attrs.name = ''; }
|
|
4054
|
+
if (!$attrs.disableTrim) { $attrs.disableTrim = false; }
|
|
3939
4055
|
if (!$attrs.minDecimalsCutZeros) { $attrs.minDecimalsCutZeros = 0; }
|
|
3940
4056
|
$attrs.hideValid = $attrs.hideValid === 'true' || $attrs.hideValid === true;
|
|
3941
4057
|
$attrs.showValid = $attrs.showValid === 'true' || $attrs.showValid === true;
|
|
@@ -3982,6 +4098,8 @@ angular.module('niceElements')
|
|
|
3982
4098
|
$scope.inputMode = "email";
|
|
3983
4099
|
// TODO: get rid of the errors
|
|
3984
4100
|
$scope.regexexp = new RegExp('^[_a-zA-Z0-9]+(.[_a-zA-Z0-9]+)*@[a-zA-Z0-9]+(.[a-zA-Z0-9]+)+(.[a-zA-Z]{2,4})');
|
|
4101
|
+
} else {
|
|
4102
|
+
$scope.internalType = "text";
|
|
3985
4103
|
}
|
|
3986
4104
|
|
|
3987
4105
|
if (angular.isDefined($scope.valid)) {
|
|
@@ -4147,6 +4265,7 @@ angular.module('niceElements')
|
|
|
4147
4265
|
labelWidth: '@',
|
|
4148
4266
|
value: '@',
|
|
4149
4267
|
niceTitle: '@',
|
|
4268
|
+
description: '@?',
|
|
4150
4269
|
title: '@',
|
|
4151
4270
|
noMargin: '@',
|
|
4152
4271
|
isInline: '=',
|
|
@@ -4363,6 +4482,7 @@ angular.module('niceElements')
|
|
|
4363
4482
|
isDisabled: '=',
|
|
4364
4483
|
title: '@?',
|
|
4365
4484
|
niceTitle: '@?',
|
|
4485
|
+
description: '@?',
|
|
4366
4486
|
min: '@',
|
|
4367
4487
|
max: '@',
|
|
4368
4488
|
defaultValue: '@',
|
|
@@ -4552,6 +4672,7 @@ angular.module('niceElements')
|
|
|
4552
4672
|
scope: {
|
|
4553
4673
|
model: '=',
|
|
4554
4674
|
niceTitle: '@',
|
|
4675
|
+
description: '@?',
|
|
4555
4676
|
isDisabled: '=',
|
|
4556
4677
|
fieldWidth: '@',
|
|
4557
4678
|
labelWidth: '@',
|
|
@@ -4624,6 +4745,7 @@ angular.module('niceElements')
|
|
|
4624
4745
|
isDisabled: '=',
|
|
4625
4746
|
title: '@?',
|
|
4626
4747
|
niceTitle: '@?',
|
|
4748
|
+
description: '@?',
|
|
4627
4749
|
required: '=',
|
|
4628
4750
|
fieldWidth: '@',
|
|
4629
4751
|
labelWidth: '@',
|
|
@@ -4869,6 +4991,7 @@ angular.module('niceElements')
|
|
|
4869
4991
|
templateUrl: 'src/components/nice-progress-bar/nice-progress-bar.html',
|
|
4870
4992
|
scope: {
|
|
4871
4993
|
niceTitle: '@',
|
|
4994
|
+
description: '@?',
|
|
4872
4995
|
title: '@',
|
|
4873
4996
|
noMargin: '@',
|
|
4874
4997
|
value: '=',
|
|
@@ -4924,6 +5047,7 @@ angular.module('niceElements')
|
|
|
4924
5047
|
restrict: 'E',
|
|
4925
5048
|
scope: {
|
|
4926
5049
|
niceTitle: '@',
|
|
5050
|
+
description: '@?',
|
|
4927
5051
|
title: '@',
|
|
4928
5052
|
model: '=',
|
|
4929
5053
|
min: '=?',
|
|
@@ -4986,6 +5110,7 @@ angular.module('niceElements')
|
|
|
4986
5110
|
isDisabled: '=',
|
|
4987
5111
|
title: '@?',
|
|
4988
5112
|
niceTitle: '@?',
|
|
5113
|
+
description: '@?',
|
|
4989
5114
|
placeholder: '@',
|
|
4990
5115
|
required: '=',
|
|
4991
5116
|
fieldWidth: '@',
|
|
@@ -5231,6 +5356,7 @@ angular.module('niceElements')
|
|
|
5231
5356
|
showDropdown: '=',
|
|
5232
5357
|
title: '@?',
|
|
5233
5358
|
niceTitle: '@?',
|
|
5359
|
+
description: '@?',
|
|
5234
5360
|
placeholder: '@',
|
|
5235
5361
|
fieldWidth: '@',
|
|
5236
5362
|
labelWidth: '@',
|
|
@@ -5497,6 +5623,7 @@ angular.module('niceElements')
|
|
|
5497
5623
|
fieldWidth: '@',
|
|
5498
5624
|
labelWidth: '@',
|
|
5499
5625
|
niceTitle: '@',
|
|
5626
|
+
description: '@?',
|
|
5500
5627
|
title: '@',
|
|
5501
5628
|
noMargin: '@',
|
|
5502
5629
|
isInline: '=',
|
|
@@ -5606,6 +5733,7 @@ angular.module('niceElements')
|
|
|
5606
5733
|
scope: {
|
|
5607
5734
|
model: '=',
|
|
5608
5735
|
niceTitle: '@',
|
|
5736
|
+
description: '@?',
|
|
5609
5737
|
title: '@',
|
|
5610
5738
|
isDisabled: '=',
|
|
5611
5739
|
noMargin: '@',
|
|
@@ -5834,6 +5962,7 @@ angular.module('niceElements')
|
|
|
5834
5962
|
scope: {
|
|
5835
5963
|
model: '=',
|
|
5836
5964
|
niceTitle: '@',
|
|
5965
|
+
description: '@?',
|
|
5837
5966
|
title: '@',
|
|
5838
5967
|
text: '@',
|
|
5839
5968
|
fieldWidth: '@',
|
|
@@ -6113,6 +6242,7 @@ angular.module('niceElements')
|
|
|
6113
6242
|
},
|
|
6114
6243
|
scope: {
|
|
6115
6244
|
niceTitle: '@',
|
|
6245
|
+
description: '@?',
|
|
6116
6246
|
title: '@',
|
|
6117
6247
|
subtitle: '@',
|
|
6118
6248
|
collapsable: '=',
|
|
@@ -6156,6 +6286,7 @@ angular.module('niceElements')
|
|
|
6156
6286
|
yes: '@',
|
|
6157
6287
|
no: '@',
|
|
6158
6288
|
niceTitle: '@',
|
|
6289
|
+
description: '@?',
|
|
6159
6290
|
title: '@',
|
|
6160
6291
|
isDisabled: '=',
|
|
6161
6292
|
fieldWidth: '@',
|
|
@@ -6548,7 +6679,7 @@ angular.module('niceElements')
|
|
|
6548
6679
|
.service('NiceService', function ($rootScope) {
|
|
6549
6680
|
const service = {
|
|
6550
6681
|
name: "Nice elements",
|
|
6551
|
-
version: "1.13.
|
|
6682
|
+
version: "1.13.5",
|
|
6552
6683
|
getHeader: function () {
|
|
6553
6684
|
return {};
|
|
6554
6685
|
},
|
|
@@ -6672,7 +6803,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6672
6803
|
"<div class=\"nice-component nice-calendar\" ng-form=\"formCalendar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
6673
6804
|
" <div class=\"row\">\n" +
|
|
6674
6805
|
" \n" +
|
|
6675
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6806
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6676
6807
|
"\n" +
|
|
6677
6808
|
" \n" +
|
|
6678
6809
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -6680,13 +6811,33 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6680
6811
|
"\n" +
|
|
6681
6812
|
" <div class=\"nice-calendar-wrapper\">\n" +
|
|
6682
6813
|
" <div class=\"nice-calendar-weeks\">\n" +
|
|
6683
|
-
" <div class=\"header\">\n" +
|
|
6684
|
-
"
|
|
6685
|
-
" <
|
|
6686
|
-
"
|
|
6814
|
+
" <div class=\"nice-calendar-header\">\n" +
|
|
6815
|
+
" \n" +
|
|
6816
|
+
" <div class=\"nice-calendar-header-selects\">\n" +
|
|
6817
|
+
" \n" +
|
|
6818
|
+
" <select class=\"year-select\" ng-model=\"selectedYear\" ng-change=\"yearSelectChange()\" ng-options=\"year for year in years\" ng-disabled=\"isDisabled\"></select>\n" +
|
|
6819
|
+
" <span>,</span>\n" +
|
|
6820
|
+
" \n" +
|
|
6821
|
+
" <select class=\"month-select\" ng-model=\"selectedMonth\" ng-change=\"monthSelectChange()\" ng-options=\"month.value as month.name for month in months\" ng-disabled=\"isDisabled\"></select>\n" +
|
|
6822
|
+
" </div>\n" +
|
|
6823
|
+
"\n" +
|
|
6824
|
+
" \n" +
|
|
6825
|
+
" <button title=\"{{ 'Previous month' | translate:'Nice' }}\" type=\"button\" class=\"btn\" ng-click=\"previous()\" ng-disabled=\"isDisabled\">\n" +
|
|
6826
|
+
" <i class=\"fa fa-angle-left\"></i>\n" +
|
|
6827
|
+
" </button>\n" +
|
|
6828
|
+
"\n" +
|
|
6829
|
+
" \n" +
|
|
6830
|
+
" <button title=\"{{ 'Today' | translate:'Nice' }}\" type=\"button\" class=\"btn\" ng-click=\"today()\" ng-disabled=\"isDisabled\">\n" +
|
|
6831
|
+
" <nice-icon icon=\"icon-circle\"></nice-icon>\n" +
|
|
6832
|
+
" </button>\n" +
|
|
6833
|
+
"\n" +
|
|
6834
|
+
" \n" +
|
|
6835
|
+
" <button title=\"{{ 'Next month' | translate:'Nice' }}\" type=\"button\" class=\"btn\" ng-click=\"next()\" ng-disabled=\"isDisabled\">\n" +
|
|
6836
|
+
" <i class=\"fa fa-angle-right\"></i>\n" +
|
|
6837
|
+
" </button>\n" +
|
|
6687
6838
|
" </div>\n" +
|
|
6688
6839
|
"\n" +
|
|
6689
|
-
" <div class=\"
|
|
6840
|
+
" <div class=\"nice-calendar-days nice-calendar-days-header\">\n" +
|
|
6690
6841
|
" <span class=\"day\" translate translate-context=\"Nice\">Mon</span>\n" +
|
|
6691
6842
|
" <span class=\"day\" translate translate-context=\"Nice\">Tue</span>\n" +
|
|
6692
6843
|
" <span class=\"day\" translate translate-context=\"Nice\">Wed</span>\n" +
|
|
@@ -6696,9 +6847,9 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6696
6847
|
" <span class=\"day weekend\" translate translate-context=\"Nice\">Sun</span>\n" +
|
|
6697
6848
|
" </div>\n" +
|
|
6698
6849
|
"\n" +
|
|
6699
|
-
" <div class=\"
|
|
6700
|
-
" <button type=\"button\" class=\"day\" type=\"button\" title=\"{{ day.
|
|
6701
|
-
" today: day.isToday,\n" +
|
|
6850
|
+
" <div class=\"nice-calendar-days\">\n" +
|
|
6851
|
+
" <button type=\"button\" class=\"day\" type=\"button\" title=\"{{ day.text }}\" ng-class=\"{\n" +
|
|
6852
|
+
" 'today': day.isToday,\n" +
|
|
6702
6853
|
" 'different-month': !day.isCurrentMonth,\n" +
|
|
6703
6854
|
" 'start-selected': isSameDay(day.date, startDate),\n" +
|
|
6704
6855
|
" 'end-selected': isSameDay(day.date, endDate),\n" +
|
|
@@ -6711,23 +6862,23 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6711
6862
|
" (color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||\n" +
|
|
6712
6863
|
" (color && isSameDay(day.date, startDate)) && {'background-color': color } ||\n" +
|
|
6713
6864
|
" (color && isSameDay(day.date, endDate)) && {'background-color': color }\n" +
|
|
6714
|
-
" \" ng-click=\"select(day)\" ng-repeat=\"day in
|
|
6715
|
-
" {{ day.
|
|
6865
|
+
" \" ng-click=\"select(day)\" ng-repeat=\"day in days\" ng-disabled=\"isDisabled\">\n" +
|
|
6866
|
+
" <span>{{ day.name }}</span>\n" +
|
|
6716
6867
|
" <p class=\"popup\" ng-if=\"!hideHover\">{{ popupText }}</p>\n" +
|
|
6717
6868
|
" </button>\n" +
|
|
6718
6869
|
" </div>\n" +
|
|
6870
|
+
"\n" +
|
|
6871
|
+
" \n" +
|
|
6719
6872
|
" </div>\n" +
|
|
6720
6873
|
"\n" +
|
|
6721
6874
|
"\n" +
|
|
6722
6875
|
" <div class=\"nice-calendar-time\" ng-if=\"time\">\n" +
|
|
6723
6876
|
" <div class=\"time-picker\">\n" +
|
|
6724
|
-
" <select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-hour\" ng-model=\"startDateHour\"
|
|
6725
|
-
" </select>\n" +
|
|
6877
|
+
" <select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-hour\" ng-model=\"startDateHour\" g-change=\"startHourChange(startDateHour)\" ng-options=\"hour for hour in hours\" ng-disabled=\"isDisabled\"></select>\n" +
|
|
6726
6878
|
" </div>\n" +
|
|
6727
6879
|
"\n" +
|
|
6728
6880
|
" <div class=\"time-picker\">\n" +
|
|
6729
|
-
" <select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-minute\" ng-model=\"startDateMinute\" ng-change=\"startMinuteChange(startDateMinute)\" ng-options=\"minute for minute in minutes\" ng-disabled=\"isDisabled\">\n" +
|
|
6730
|
-
" </select>\n" +
|
|
6881
|
+
" <select title=\"{{ 'Select start time' | translate:'Nice' }}\" class=\"time-picker-minute\" ng-model=\"startDateMinute\" ng-change=\"startMinuteChange(startDateMinute)\" ng-options=\"minute for minute in minutes\" ng-disabled=\"isDisabled\"></select>\n" +
|
|
6731
6882
|
" </div>\n" +
|
|
6732
6883
|
"\n" +
|
|
6733
6884
|
" <div class=\"time-picker-icon\">\n" +
|
|
@@ -6777,7 +6928,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6777
6928
|
" <nice-icon ng-if=\"!model && indeterminate\" class=\"nice-checkbox-check\" icon=\"icon-minus\"></nice-icon>\n" +
|
|
6778
6929
|
" </button>\n" +
|
|
6779
6930
|
" <div class=\"nice-checkbox-info\" ng-transclude>\n" +
|
|
6780
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"niceDescription\" label-width=\"col-xs-12\"></nice-title>\n" +
|
|
6931
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" description=\"niceDescription\" label-width=\"col-xs-12\"></nice-title>\n" +
|
|
6781
6932
|
" \n" +
|
|
6782
6933
|
" \n" +
|
|
6783
6934
|
" </div>\n" +
|
|
@@ -6789,7 +6940,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6789
6940
|
"<div class=\"nice-component nice-choice\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formChoice\">\n" +
|
|
6790
6941
|
" <div class=\"row\">\n" +
|
|
6791
6942
|
" \n" +
|
|
6792
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6943
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6793
6944
|
"\n" +
|
|
6794
6945
|
" \n" +
|
|
6795
6946
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
@@ -6812,7 +6963,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6812
6963
|
"<div class=\"nice-component nice-comment\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
6813
6964
|
" <div class=\"row\">\n" +
|
|
6814
6965
|
" \n" +
|
|
6815
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6966
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6816
6967
|
"\n" +
|
|
6817
6968
|
" \n" +
|
|
6818
6969
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" ng-click=\"edit()\">\n" +
|
|
@@ -6827,7 +6978,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6827
6978
|
"<ng-form class=\"nice-component nice-date-input\" name=\"niceDateInputForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline, 'error': niceDateInputForm.$invalid, 'nice-date-input-no-date': !date }\">\n" +
|
|
6828
6979
|
" <div class=\"row\">\n" +
|
|
6829
6980
|
" \n" +
|
|
6830
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6981
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6831
6982
|
"\n" +
|
|
6832
6983
|
" \n" +
|
|
6833
6984
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -6888,7 +7039,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6888
7039
|
"<ng-form class=\"nice-component nice-date-range\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
6889
7040
|
" <div class=\"row\">\n" +
|
|
6890
7041
|
" \n" +
|
|
6891
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7042
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6892
7043
|
"\n" +
|
|
6893
7044
|
" \n" +
|
|
6894
7045
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
@@ -6910,7 +7061,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6910
7061
|
"\n" +
|
|
6911
7062
|
" <div class=\"row\">\n" +
|
|
6912
7063
|
" \n" +
|
|
6913
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7064
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6914
7065
|
"\n" +
|
|
6915
7066
|
" \n" +
|
|
6916
7067
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -6940,31 +7091,31 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6940
7091
|
" <span class=\"nice-date-header-comma\">,</span>\n" +
|
|
6941
7092
|
" <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" +
|
|
6942
7093
|
" </span>\n" +
|
|
6943
|
-
" <button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"previous()\">\n" +
|
|
7094
|
+
" <button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"previous()\" title=\"{{ 'Previous month' | translate:'Nice' }}\">\n" +
|
|
6944
7095
|
" <nice-icon icon=\"icon-chevron-left\"></nice-icon>\n" +
|
|
6945
7096
|
" </button>\n" +
|
|
6946
|
-
" <button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"today()\">\n" +
|
|
7097
|
+
" <button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"today()\" title=\"{{ 'Today' | translate:'Nice' }}\">\n" +
|
|
6947
7098
|
" <nice-icon icon=\"icon-circle\"></nice-icon>\n" +
|
|
6948
7099
|
" </button>\n" +
|
|
6949
|
-
" <button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"next()\">\n" +
|
|
7100
|
+
" <button type=\"button\" class=\"btn btn-default-naked\" ng-disabled=\"isDisabled\" ng-click=\"next()\" title=\"{{ 'Next month' | translate:'Nice' }}\">\n" +
|
|
6950
7101
|
" <nice-icon icon=\"icon-chevron-right\"></nice-icon>\n" +
|
|
6951
7102
|
" </button>\n" +
|
|
6952
7103
|
" </div>\n" +
|
|
6953
7104
|
"\n" +
|
|
6954
|
-
" <div class=\"nice-date-
|
|
7105
|
+
" <div class=\"nice-date-grid nice-date-grid-names\">\n" +
|
|
6955
7106
|
" <span class=\"nice-date-day\" ng-class=\"{ 'weekend': $index == 6 || $index == 5 }\" ng-repeat=\"day in weekdays\">{{ day }}</span>\n" +
|
|
6956
7107
|
" </div>\n" +
|
|
6957
7108
|
"\n" +
|
|
6958
|
-
" <div class=\"nice-date-
|
|
6959
|
-
" <button type=\"button\" class=\"nice-date-day\" role=\"gridcell\" title=\"{{ day.
|
|
7109
|
+
" <div class=\"nice-date-grid\">\n" +
|
|
7110
|
+
" <button type=\"button\" class=\"nice-date-day\" role=\"gridcell\" title=\"{{ day.text }}\" ng-class=\"{\n" +
|
|
6960
7111
|
" 'today': day.isToday,\n" +
|
|
6961
7112
|
" 'different-month': !day.isCurrentMonth,\n" +
|
|
6962
7113
|
" 'selected': isSameDay(model, day.date),\n" +
|
|
6963
7114
|
" 'weekend': day.isWeekday,\n" +
|
|
6964
7115
|
" 'disabled': day.isDisabled,\n" +
|
|
6965
7116
|
" 'between': isBetween(day.date, model, nextDate)\n" +
|
|
6966
|
-
" }\" ng-click=\"select(day)\" ng-repeat=\"day in
|
|
6967
|
-
" {{ day.
|
|
7117
|
+
" }\" ng-click=\"select(day)\" ng-repeat=\"day in days\" ng-disabled=\"isDisabled\">\n" +
|
|
7118
|
+
" <span>{{ day.name }}</span>\n" +
|
|
6968
7119
|
" </button>\n" +
|
|
6969
7120
|
" </div>\n" +
|
|
6970
7121
|
" </div>\n" +
|
|
@@ -6997,7 +7148,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6997
7148
|
"\n" +
|
|
6998
7149
|
" <div class=\"row\">\n" +
|
|
6999
7150
|
" \n" +
|
|
7000
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7151
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7001
7152
|
"\n" +
|
|
7002
7153
|
" \n" +
|
|
7003
7154
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -7031,7 +7182,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7031
7182
|
"\n" +
|
|
7032
7183
|
" <div class=\"row\">\n" +
|
|
7033
7184
|
" \n" +
|
|
7034
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7185
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7035
7186
|
"\n" +
|
|
7036
7187
|
" \n" +
|
|
7037
7188
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -7080,7 +7231,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7080
7231
|
"\n" +
|
|
7081
7232
|
" <div class=\"row\">\n" +
|
|
7082
7233
|
" \n" +
|
|
7083
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7234
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7084
7235
|
"\n" +
|
|
7085
7236
|
" \n" +
|
|
7086
7237
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -7138,7 +7289,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7138
7289
|
"<div class=\"nice-component nice-dropdown-date\" ng-form=\"dropdownDateForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7139
7290
|
" <div class=\"row\">\n" +
|
|
7140
7291
|
" \n" +
|
|
7141
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7292
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7142
7293
|
"\n" +
|
|
7143
7294
|
" \n" +
|
|
7144
7295
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[\n" +
|
|
@@ -7171,7 +7322,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7171
7322
|
"<div class=\"nice-component nice-dropdown-old\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7172
7323
|
" <div class=\"row\">\n" +
|
|
7173
7324
|
" \n" +
|
|
7174
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7325
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7175
7326
|
"\n" +
|
|
7176
7327
|
" \n" +
|
|
7177
7328
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
@@ -7220,7 +7371,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7220
7371
|
"<div class=\"nice-component nice-dropdown\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\" ng-form=\"formDropdown\">\n" +
|
|
7221
7372
|
" <div class=\"row\">\n" +
|
|
7222
7373
|
" \n" +
|
|
7223
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7374
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7224
7375
|
"\n" +
|
|
7225
7376
|
" \n" +
|
|
7226
7377
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[ fieldWidth ? fieldWidth : 'col-sm-8', { 'open': isOpen, 'nice-disabled': isDisabled || emptyList } ]\" click-outside=\"close()\" is-open=\"{{ isOpen }}\">\n" +
|
|
@@ -7414,7 +7565,8 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7414
7565
|
" 'nice-disabled': isDisabled\n" +
|
|
7415
7566
|
" }\">\n" +
|
|
7416
7567
|
" <textarea ng-if=\"textArea\" class=\"form-control\" ng-model=\"$parent.internalModel\" id=\"{{ id }}\" tabindex=\"{{ tabIndex }}\" placeholder=\"{{ placeholder }}\" rows=\"{{ textAreaLines }}\" max=\"{{ max }}\" min=\"{{ min }}\" autocomplete=\"{{ autocomplete }}\" ng-minlength=\"minlength\" ng-maxlength=\"maxlength\" ng-required=\"required\" ng-pattern=\"regexexp\" ng-disabled=\"isDisabled\"></textarea>\n" +
|
|
7417
|
-
"
|
|
7568
|
+
"\n" +
|
|
7569
|
+
" <input ng-if=\"!textArea\" class=\"form-control\" type=\"{{ internalType }}\" inputmode=\"{{ inputMode }}\" ng-model=\"$parent.internalModel\" name=\"{{ name }}\" id=\"{{ id }}\" tabindex=\"{{ tabIndex }}\" placeholder=\"{{ placeholder }}\" max=\"{{ max }}\" min=\"{{ min }}\" autocomplete=\"{{ autocomplete }}\" ng-minlength=\"minlength\" ng-maxlength=\"maxlength\" ng-required=\"required\" ng-keypress=\"keypress($event)\" ng-pattern=\"regexexp\" ng-disabled=\"isDisabled\" ng-trim=\"{{ !disableTrim }}\">\n" +
|
|
7418
7570
|
"\n" +
|
|
7419
7571
|
" <div class=\"input-group-addon\" ng-if=\"symbol\">{{ symbol }}</div>\n" +
|
|
7420
7572
|
" <button type=\"button\" class=\"input-group-btn\" ng-if=\"!multilanguageDisabled && multilanguageField\" ng-click=\"openMultilanguage()\">\n" +
|
|
@@ -7454,7 +7606,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7454
7606
|
"<div class=\"nice-component nice-label\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7455
7607
|
" <div class=\"row\">\n" +
|
|
7456
7608
|
" \n" +
|
|
7457
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7609
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7458
7610
|
"\n" +
|
|
7459
7611
|
" \n" +
|
|
7460
7612
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
|
|
@@ -7496,7 +7648,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7496
7648
|
"<div class=\"nice-component nice-number\" ng-form=\"niceNumberForm\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7497
7649
|
" <div ng-class=\"{'row' : !disableRow}\">\n" +
|
|
7498
7650
|
" \n" +
|
|
7499
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7651
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7500
7652
|
"\n" +
|
|
7501
7653
|
" \n" +
|
|
7502
7654
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -7541,7 +7693,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7541
7693
|
"<div class=\"nice-component nice-options\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline, 'nice-disabled': isDisabled }\" ng-form=\"formNiceOptions\">\n" +
|
|
7542
7694
|
" <div class=\"row\">\n" +
|
|
7543
7695
|
" \n" +
|
|
7544
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7696
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7545
7697
|
"\n" +
|
|
7546
7698
|
" \n" +
|
|
7547
7699
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8']\">\n" +
|
|
@@ -7562,7 +7714,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7562
7714
|
"<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
7563
7715
|
" <div class=\"row\">\n" +
|
|
7564
7716
|
" \n" +
|
|
7565
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7717
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7566
7718
|
"\n" +
|
|
7567
7719
|
" \n" +
|
|
7568
7720
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
@@ -7610,7 +7762,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7610
7762
|
"<div class=\"nice-component nice-progress-bar\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7611
7763
|
" <div class=\"row\">\n" +
|
|
7612
7764
|
" \n" +
|
|
7613
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7765
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7614
7766
|
"\n" +
|
|
7615
7767
|
" \n" +
|
|
7616
7768
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
@@ -7630,7 +7782,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7630
7782
|
"<div class=\"nice-component nice-quantity\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7631
7783
|
" <div class=\"row\">\n" +
|
|
7632
7784
|
" \n" +
|
|
7633
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7785
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7634
7786
|
"\n" +
|
|
7635
7787
|
" \n" +
|
|
7636
7788
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -7657,7 +7809,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7657
7809
|
"<ng-form class=\"nice-component nice-input nice-search\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline}\" name=\"form\">\n" +
|
|
7658
7810
|
" <div class=\"row\">\n" +
|
|
7659
7811
|
" \n" +
|
|
7660
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7812
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7661
7813
|
"\n" +
|
|
7662
7814
|
" \n" +
|
|
7663
7815
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -7705,7 +7857,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7705
7857
|
"<ng-form class=\"nice-component nice-input nice-search2\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
7706
7858
|
" <div class=\"row\">\n" +
|
|
7707
7859
|
" \n" +
|
|
7708
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7860
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7709
7861
|
"\n" +
|
|
7710
7862
|
" \n" +
|
|
7711
7863
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
|
|
@@ -7742,7 +7894,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7742
7894
|
"<div class=\"nice-component nice-slot\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
7743
7895
|
" <div class=\"row\">\n" +
|
|
7744
7896
|
" \n" +
|
|
7745
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7897
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7746
7898
|
"\n" +
|
|
7747
7899
|
" \n" +
|
|
7748
7900
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-xs-8'\">\n" +
|
|
@@ -9139,7 +9291,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
9139
9291
|
"<div class=\"nice-component nice-time-picker\" ng-form=\"forma\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
|
|
9140
9292
|
" <div class=\"row\">\n" +
|
|
9141
9293
|
" \n" +
|
|
9142
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9294
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9143
9295
|
"\n" +
|
|
9144
9296
|
" \n" +
|
|
9145
9297
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
@@ -9205,7 +9357,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
9205
9357
|
"<div class=\"nice-component nice-toggle\" ng-class=\"{ 'margin-bottom-0': noMargin, 'title-right': titleRight, 'nice-component-inline': isInline, 'nice-component-block': isBlock, 'active': inverted ? !model : model }\" ng-form=\"formToggle\">\n" +
|
|
9206
9358
|
" <div class=\"row\">\n" +
|
|
9207
9359
|
" \n" +
|
|
9208
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9360
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9209
9361
|
"\n" +
|
|
9210
9362
|
" \n" +
|
|
9211
9363
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -9222,7 +9374,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
9222
9374
|
"<ng-form class=\"nice-component nice-upload\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
9223
9375
|
" <div class=\"row\">\n" +
|
|
9224
9376
|
" \n" +
|
|
9225
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9377
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9226
9378
|
"\n" +
|
|
9227
9379
|
" \n" +
|
|
9228
9380
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
@@ -9308,7 +9460,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
9308
9460
|
"<div class=\"nice-component nice-yesno\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"formYesno\">\n" +
|
|
9309
9461
|
" <div class=\"row\">\n" +
|
|
9310
9462
|
" \n" +
|
|
9311
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9463
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
9312
9464
|
"\n" +
|
|
9313
9465
|
" \n" +
|
|
9314
9466
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|