nice-elements 1.7.3 → 1.7.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 +10 -0
- package/README.md +6 -5
- package/bower.json +1 -1
- package/dist/nice.js +218 -256
- package/dist/nice.min.js +1 -1
- package/dist/style.css +26 -11
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-calendar/nice-calendar.html +9 -12
- package/src/components/nice-choice/nice-choice.html +3 -6
- package/src/components/nice-comment/nice-comment.html +5 -15
- package/src/components/nice-comment/nice-comment.js +7 -6
- package/src/components/nice-comment/nice-comment.scss +13 -9
- package/src/components/nice-date/nice-date.html +11 -14
- package/src/components/nice-date-input/nice-date-input.html +2 -5
- package/src/components/nice-date-range/nice-date-range.html +2 -5
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +2 -5
- package/src/components/nice-datetime-picker/nice-datetime-picker.js +42 -41
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +3 -8
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +19 -18
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +3 -6
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +1 -1
- package/src/components/nice-dropdown/nice-dropdown.html +2 -6
- package/src/components/nice-dropdown/nice-dropdown.js +1 -2
- package/src/components/nice-dropdown/nice-dropdown.scss +3 -2
- package/src/components/nice-dropdown-date/nice-dropdown-date.html +7 -33
- package/src/components/nice-dropdown-date/nice-dropdown-date.scss +15 -15
- package/src/components/nice-dropdown-old/nice-dropdown-old.html +3 -13
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +1 -1
- package/src/components/nice-help/nice-help.html +0 -1
- package/src/components/nice-help/nice-help.js +1 -0
- package/src/components/nice-icon/nice-icon.html +1 -1
- package/src/components/nice-icon/nice-icon.js +1 -0
- package/src/components/nice-input/nice-input.html +2 -5
- package/src/components/nice-label/nice-label.html +3 -6
- package/src/components/nice-number/nice-number.html +7 -10
- package/src/components/nice-number/nice-number.js +11 -11
- package/src/components/nice-percent/nice-percent.html +5 -22
- package/src/components/nice-percent/nice-percent.js +12 -12
- package/src/components/nice-progress-bar/nice-progress-bar.html +2 -5
- package/src/components/nice-quantity/nice-quantity.html +2 -5
- package/src/components/nice-search/nice-search.html +2 -5
- package/src/components/nice-search/nice-search.js +32 -32
- package/src/components/nice-search2/nice-search2.html +2 -5
- package/src/components/nice-slot/nice-slot.html +3 -6
- package/src/components/nice-slot/nice-slot.js +1 -1
- package/src/components/nice-time-picker/nice-time-picker.html +2 -5
- package/src/components/nice-title/nice-title.html +4 -0
- package/src/components/nice-title/nice-title.js +21 -0
- package/src/components/nice-upload/nice-upload.html +2 -5
- package/src/components/nice-yesno/nice-yesno.html +5 -8
- package/src/styles/_nice-common.scss +12 -1
- package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/_nice-time-picker.scssc +0 -0
- package/.sass-cache/1d4d0ffb237c3d9343c8307bb3646a3468e01635/nice-time-picker.scssc +0 -0
- package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/_nice-comment.scssc +0 -0
- package/.sass-cache/1f6e4ee3597ab85647886bc9c4e8109aa78717f7/nice-comment.scssc +0 -0
- package/.sass-cache/1fa02acb98a7cebbbaaccd8ef62dedeb80075746/nice-quantity.scssc +0 -0
- package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/_nice-date-range.scssc +0 -0
- package/.sass-cache/1fa94ee530c99ae186c7bd3283815b253c159498/nice-date-range.scssc +0 -0
- package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/_nice-button.scssc +0 -0
- package/.sass-cache/2406fb0232b759324e272b7c77657baf27c90e42/nice-button.scssc +0 -0
- package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/_nice-steps.scssc +0 -0
- package/.sass-cache/31b728a8c63158f4e90f2433807d8683ba9c2c31/nice-steps.scssc +0 -0
- package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/_nice-input.scssc +0 -0
- package/.sass-cache/37204b4bf5d558273e6880c7a4e167f7861ab03f/nice-input.scssc +0 -0
- package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/_nice-calendar.scssc +0 -0
- package/.sass-cache/431ac0ca4bdfd08ba071d03a2ca7da0d436b3b83/nice-calendar.scssc +0 -0
- package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/_nice-notification.scssc +0 -0
- package/.sass-cache/459f898bda19afea4cd8d91d5c10187053da875e/nice-notification.scssc +0 -0
- package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/_nice-datetimerange-picker.scssc +0 -0
- package/.sass-cache/4930ed1ec4125e07b44755f9054b0955c5d670c1/nice-datetimerange-picker.scssc +0 -0
- package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/_nice-yesno.scssc +0 -0
- package/.sass-cache/50821918d2051e6c5077819410ba21c223fa5436/nice-yesno.scssc +0 -0
- package/.sass-cache/52335f6e13d042b07835d519f4267df952f94036/nice-dropdown-old.scssc +0 -0
- package/.sass-cache/52f492b94dd9f4468e58d8aa11ba26ac9cdcbbcf/nice-progress-bar.scssc +0 -0
- package/.sass-cache/6629f6f7b13f350c585c990e5699145891af0805/nice-help.scssc +0 -0
- package/.sass-cache/6dfd23eda68e4cff55e32e19d3bc5f0e6095bda9/nice-search2.scssc +0 -0
- package/.sass-cache/7870950c279970f0acdfb180a33c0d63a93fc5b0/nice-upload.scssc +0 -0
- package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/_nice-button-toggle.scssc +0 -0
- package/.sass-cache/8262cded9a15ef6944463029ea13840a5c6a0a1c/nice-button-toggle.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_bootstrap-variables.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice-common.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_nice.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/_variables.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/main.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/mian.scssc +0 -0
- package/.sass-cache/857ba4c3c78aaab6e58c5b00a12da6c65d66676d/style.scssc +0 -0
- package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/_nice-date.scssc +0 -0
- package/.sass-cache/986d90a9d8ae3a4a5aa6f15810cce470ee21c1e4/nice-date.scssc +0 -0
- package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/_nice-number.scssc +0 -0
- package/.sass-cache/9d06f237d2d27ccd53e7f33d4b297c0d8eb0b63f/nice-number.scssc +0 -0
- package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/_nice-checkbox.scssc +0 -0
- package/.sass-cache/a03093fb7751330f3265c5ea28ca531de7f3d934/nice-checkbox.scssc +0 -0
- package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/_nice-dropdown-date.scssc +0 -0
- package/.sass-cache/a1b06abbd8698084475db896d8ff4a7f1265c271/nice-dropdown-date.scssc +0 -0
- package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/_nice-choice.scssc +0 -0
- package/.sass-cache/b19ce123b04f298b9f73064dd4bb3769bb7dac52/nice-choice.scssc +0 -0
- package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/_nice-datetimerange-picker-2.scssc +0 -0
- package/.sass-cache/ca90f8692023a08ca2b41d94fdfed54ba626bd71/nice-datetimerange-picker-2.scssc +0 -0
- package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_mixins.scssc +0 -0
- package/.sass-cache/cecda35f57530d4aeece9f6e4b62149aefebc5d0/_variables.scssc +0 -0
- package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/_nice-loader.scssc +0 -0
- package/.sass-cache/d6e688001eb343b628b15651efd3d3f216ea3904/nice-loader.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_alerts.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_background-variant.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_border-radius.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_buttons.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_center-block.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_clearfix.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_forms.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_gradients.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid-framework.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_grid.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_hide-text.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_image.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_labels.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_list-group.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-divider.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_nav-vertical-align.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_opacity.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_pagination.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_panels.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_progress-bar.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-filter.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_reset-text.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_resize.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_responsive-visibility.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_size.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_tab-focus.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_table-row.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-emphasis.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_text-overflow.scssc +0 -0
- package/.sass-cache/ea51e3b8d20bcedb108131c0024346d6e689f0ac/_vendor-prefixes.scssc +0 -0
- package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/_nice-datetime-picker.scssc +0 -0
- package/.sass-cache/f490af71b12507baba9bcbb0dd054fe1ecf75736/nice-datetime-picker.scssc +0 -0
- package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/_nice-search.scssc +0 -0
- package/.sass-cache/f5acd1dc0d835dc1887b3ac8ec2eecf82b650935/nice-search.scssc +0 -0
- package/.sass-cache/fd9f4f9e07e96510c3ea7c8543d71e342ea61d29/_nice-dropdown.scssc +0 -0
- package/.sass-cache/fd9f4f9e07e96510c3ea7c8543d71e342ea61d29/nice-dropdown.scssc +0 -0
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
.nice-comment{
|
|
2
|
-
.btn-comment-save{
|
|
1
|
+
.nice-comment {
|
|
2
|
+
.btn-comment-save {
|
|
3
3
|
position: absolute;
|
|
4
4
|
right: 20px;
|
|
5
5
|
top: 4px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.btn-comment-cancel{
|
|
8
|
+
.btn-comment-cancel {
|
|
9
9
|
position: absolute;
|
|
10
10
|
right: 20px;
|
|
11
11
|
top: 40px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
.form-control[disabled] {
|
|
15
|
+
background: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
textarea {
|
|
15
19
|
min-height: 34px !important;
|
|
16
20
|
height: 34px;
|
|
17
21
|
box-shadow: 0 0 0;
|
|
18
22
|
|
|
19
|
-
&:focus{
|
|
23
|
+
&:focus {
|
|
20
24
|
box-shadow: 0 0 0;
|
|
25
|
+
border-color: transparent;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
border-radius: $nice-border-radius;
|
|
@@ -26,11 +31,10 @@
|
|
|
26
31
|
-webkit-user-select: none;
|
|
27
32
|
padding: 6px 0px;
|
|
28
33
|
|
|
29
|
-
&.editing{
|
|
30
|
-
padding: 6px
|
|
31
|
-
border-color: $nice-base-color;
|
|
34
|
+
&.editing {
|
|
35
|
+
padding: 6px;
|
|
32
36
|
color: $nice-font-color;
|
|
33
37
|
-webkit-user-select: initial;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
|
-
}
|
|
40
|
+
}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
<div class="nice-date-background" ng-click="toggleOpen()" ng-if="isOpen && !inline"></div>
|
|
3
3
|
|
|
4
4
|
<div class="row">
|
|
5
|
-
<!-------------------------
|
|
6
|
-
<
|
|
7
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
8
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
9
|
-
</div>
|
|
5
|
+
<!------------------------- Title ------------------------->
|
|
6
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
10
7
|
|
|
11
8
|
<!------------------------- Field ------------------------->
|
|
12
9
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
@@ -14,7 +11,7 @@
|
|
|
14
11
|
|
|
15
12
|
<!------------------------------ Input ------------------------------>
|
|
16
13
|
<div class="nice-date-button input-group" ng-class="{ 'open': isOpen }" ng-show="!inline" ng-click="toggleOpen()">
|
|
17
|
-
<input type="text" class="form-control" value="{{ model | niceDate:time }}" readonly="readonly" />
|
|
14
|
+
<input type="text" class="form-control" value="{{ model | niceDate:time }}" readonly="readonly" ng-disabled="isDisabled" />
|
|
18
15
|
<span class="input-group-addon clickable">
|
|
19
16
|
<!-- <i class="fa fa-calendar"></i> -->
|
|
20
17
|
<nice-icon icon="icon-calendar"></nice-icon>
|
|
@@ -28,14 +25,14 @@
|
|
|
28
25
|
<div class="nice-date-date" ng-if="date" role="grid">
|
|
29
26
|
<div class="nice-date-header">
|
|
30
27
|
<span>
|
|
31
|
-
<select class="year-picker" ng-model="innerDate.year" ng-change="handleDateChange()" ng-options="year for year in years">
|
|
28
|
+
<select class="year-picker" ng-model="innerDate.year" ng-change="handleDateChange()" ng-options="year for year in years" ng-disabled="isDisabled">
|
|
32
29
|
</select>,
|
|
33
|
-
<select class="month-picker" ng-model="innerDate.month" ng-change="handleDateChange()" ng-options="month.value as month.name for month in months">
|
|
30
|
+
<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">
|
|
34
31
|
</select>
|
|
35
32
|
</span>
|
|
36
|
-
<button class="btn btn-default-naked" ng-click="previous()"><i class="fa fa-angle-left"></i></button>
|
|
37
|
-
<button class="btn btn-default-naked" ng-click="today()"><i class="fa fa-circle"></i></button>
|
|
38
|
-
<button class="btn btn-default-naked" ng-click="next()"><i class="fa fa-angle-right"></i></button>
|
|
33
|
+
<button class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="previous()"><i class="fa fa-angle-left"></i></button>
|
|
34
|
+
<button class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="today()"><i class="fa fa-circle"></i></button>
|
|
35
|
+
<button class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="next()"><i class="fa fa-angle-right"></i></button>
|
|
39
36
|
</div>
|
|
40
37
|
|
|
41
38
|
<div class="nice-date-week names">
|
|
@@ -50,7 +47,7 @@
|
|
|
50
47
|
'weekend': day.isWeekday,
|
|
51
48
|
'disabled': day.isDisabled,
|
|
52
49
|
'between': isBetween(day.date, model, nextDate)
|
|
53
|
-
}" ng-click="select(day)" ng-repeat="day in week.days">
|
|
50
|
+
}" ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
|
|
54
51
|
{{ day.number }}
|
|
55
52
|
</button>
|
|
56
53
|
</div>
|
|
@@ -61,13 +58,13 @@
|
|
|
61
58
|
<nice-icon icon="icon-clock"></nice-icon>
|
|
62
59
|
|
|
63
60
|
<div class="time-picker time-picker-hour">
|
|
64
|
-
<select ng-disabled="isDisabled" ng-model="innerDate.hour" ng-change="timeChange()" ng-options="hour as hour for hour in hours track by hour"></select>
|
|
61
|
+
<select ng-disabled="isDisabled" ng-model="innerDate.hour" ng-change="timeChange()" ng-options="hour as hour for hour in hours track by hour" ng-disabled="isDisabled"></select>
|
|
65
62
|
</div>
|
|
66
63
|
|
|
67
64
|
<div class="divider">:</div>
|
|
68
65
|
|
|
69
66
|
<div class="time-picker time-picker-minute">
|
|
70
|
-
<select ng-disabled="isDisabled" ng-model="innerDate.minute" ng-change="timeChange()" ng-options="minute as minute for minute in minutes track by minute"></select>
|
|
67
|
+
<select ng-disabled="isDisabled" ng-model="innerDate.minute" ng-change="timeChange()" ng-options="minute as minute for minute in minutes track by minute" ng-disabled="isDisabled"></select>
|
|
71
68
|
</div>
|
|
72
69
|
</div>
|
|
73
70
|
</div>
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<div class="nice-component nice-date-input" ng-form="niceDateInputForm" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline, 'error': niceDateInputForm.$invalid }">
|
|
2
2
|
<div class="row">
|
|
3
|
-
<!-------------------------
|
|
4
|
-
<
|
|
5
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
6
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
7
|
-
</div>
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
8
5
|
|
|
9
6
|
<!------------------------- Field ------------------------->
|
|
10
7
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<ng-form class="nice-component nice-date-range" ng-class="{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }" name="form">
|
|
2
2
|
<div class="row">
|
|
3
|
-
<!-------------------------
|
|
4
|
-
<
|
|
5
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
6
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
7
|
-
</div>
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
8
5
|
|
|
9
6
|
<!------------------------- Field ------------------------->
|
|
10
7
|
<div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
<div class="nice-dtp-background" ng-click="closeDtp(true)" ng-if="isOpen"></div>
|
|
3
3
|
|
|
4
4
|
<div class="row">
|
|
5
|
-
<!-------------------------
|
|
6
|
-
<
|
|
7
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
8
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
9
|
-
</div>
|
|
5
|
+
<!------------------------- Title ------------------------->
|
|
6
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
10
7
|
|
|
11
8
|
<!------------------------- Field ------------------------->
|
|
12
9
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
@@ -35,53 +35,54 @@ angular.module('niceElements').directive('niceDatetimePicker', function () {
|
|
|
35
35
|
onChange: '&?'
|
|
36
36
|
},
|
|
37
37
|
controller: function ($scope, gettextCatalog) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
console.warn("[NICE ELEMENTS] nice-datetime-picker component is deprecated!");
|
|
39
|
+
$scope.date = $scope.date == 'true' || $scope.date == true;
|
|
40
|
+
$scope.time = $scope.time == 'true' || $scope.time == true;
|
|
41
|
+
$scope.noMargin === 'true' || $scope.noMargin === true;
|
|
42
|
+
$scope.enableOkButtons === 'true' || $scope.enableOkButtons === true;
|
|
43
|
+
$scope.lang = $scope.lang || 'en';
|
|
44
|
+
$scope.okText = $scope.okText || gettextCatalog.getString('OK', null, 'Nice');
|
|
45
|
+
$scope.cancelText = $scope.cancelText || gettextCatalog.getString('Cancel', null, 'Nice');
|
|
46
|
+
$scope.weekStart = parseInt($scope.weekStart) || 1;
|
|
47
|
+
$scope.width = parseInt($scope.width) || 300;
|
|
48
|
+
$scope.isOpen = false;
|
|
49
|
+
$scope.internalDate = moment($scope.model) || moment();
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
51
|
+
if (!$scope.format) {
|
|
52
|
+
if ($scope.date && !$scope.time) {
|
|
53
|
+
$scope.format = 'D.M.YYYY';
|
|
54
|
+
} else if (!$scope.date && $scope.time) {
|
|
55
|
+
$scope.format = 'HH:mm';
|
|
56
|
+
} else {
|
|
57
|
+
$scope.format = 'D.M.YYYY • H:mm';
|
|
58
58
|
}
|
|
59
|
+
}
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
$scope.openDtp = function () {
|
|
62
|
+
if (!$scope.isDisabled) {
|
|
63
|
+
$scope.isOpen = true;
|
|
64
|
+
$scope.$broadcast('dtp-open-click');
|
|
65
|
+
}
|
|
66
|
+
};
|
|
66
67
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
$scope.closeDtp = function (response) {
|
|
69
|
+
$scope.isOpen = false;
|
|
70
|
+
$scope.$broadcast('dtp-close-click');
|
|
71
|
+
};
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
$scope.$on('dateSelected', function () {
|
|
74
|
+
$scope.formDatetimePicker.$setDirty();
|
|
75
|
+
});
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
$scope.$watch('internalDate', function (newDate) {
|
|
78
|
+
$scope.model = moment(newDate);
|
|
79
|
+
$scope.value = moment(newDate).format($scope.format);
|
|
80
|
+
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
81
|
+
});
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
83
|
+
$scope.$watch('model', function (newModel, oldModel) {
|
|
84
|
+
$scope.value = moment(newModel).format($scope.format);
|
|
85
|
+
});
|
|
86
86
|
}
|
|
87
|
+
}
|
|
87
88
|
});
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
<div class="nice-dtp-background" ng-click="cancelClick()" ng-if="showDtpRange"></div>
|
|
3
3
|
|
|
4
4
|
<div class="row">
|
|
5
|
-
<!-------------------------
|
|
6
|
-
<
|
|
7
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
8
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
9
|
-
</div>
|
|
5
|
+
<!------------------------- Title ------------------------->
|
|
6
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
10
7
|
|
|
11
8
|
<!------------------------- Field ------------------------->
|
|
12
9
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
@@ -16,13 +13,11 @@
|
|
|
16
13
|
<div class="dropdown">
|
|
17
14
|
<div class="dropdown-toggle" id="dropdown{{randNum}}" role="button" ng-click="openDtpRange()">
|
|
18
15
|
<div class="input-group">
|
|
19
|
-
<input type="text" class="form-control" value="{{value}}" ng-click="openDtpRange()">
|
|
16
|
+
<input type="text" class="form-control" value="{{value}}" ng-disabled="isDisabled" ng-click="openDtpRange()">
|
|
20
17
|
<span class="input-group-addon clickable">
|
|
21
|
-
<!-- <i class="fa" ng-class="{'fa-clock-o': date=='false', 'fa-calendar': date!='false'}"></i> -->
|
|
22
18
|
<nice-icon ng-if="date != 'false'" icon="icon-calendar"></nice-icon>
|
|
23
19
|
<nice-icon ng-if="date == 'false'" icon="icon-clock"></nice-icon>
|
|
24
20
|
</span>
|
|
25
|
-
|
|
26
21
|
</div>
|
|
27
22
|
</div>
|
|
28
23
|
</div>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* # niceDatetimerangePicker
|
|
8
8
|
*/
|
|
9
9
|
angular.module('niceElements')
|
|
10
|
-
.directive('niceDatetimerangePicker', function(gettextCatalog) {
|
|
10
|
+
.directive('niceDatetimerangePicker', function (gettextCatalog) {
|
|
11
11
|
return {
|
|
12
12
|
scope: {
|
|
13
13
|
modelStart: '=', // binding model
|
|
@@ -37,7 +37,8 @@ angular.module('niceElements')
|
|
|
37
37
|
},
|
|
38
38
|
templateUrl: 'src/components/nice-datetimerange-picker/nice-datetimerange-picker.html',
|
|
39
39
|
link: {
|
|
40
|
-
pre: function($scope) {
|
|
40
|
+
pre: function ($scope) {
|
|
41
|
+
console.warn("[NICE ELEMENTS] nice-datetimerange-picker component is deprecated!");
|
|
41
42
|
// Default parameters
|
|
42
43
|
var params = {
|
|
43
44
|
title: '',
|
|
@@ -59,18 +60,18 @@ angular.module('niceElements')
|
|
|
59
60
|
enableOkButtons: false
|
|
60
61
|
};
|
|
61
62
|
|
|
62
|
-
if($scope.formatOutput === undefined) $scope.formatOutput = false;
|
|
63
|
+
if ($scope.formatOutput === undefined) $scope.formatOutput = false;
|
|
63
64
|
|
|
64
|
-
var setLabelValue = function(){
|
|
65
|
+
var setLabelValue = function () {
|
|
65
66
|
var _from = moment($scope.internalStart).format(params.format);
|
|
66
67
|
var _to = moment($scope.internalEnd).format(params.format);
|
|
67
68
|
$scope.value = _from + ' - ' + _to;
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
var initCurrentDates = function () {
|
|
71
|
-
if (typeof($scope.modelStart) === 'undefined' || $scope.modelStart === null) {
|
|
72
|
+
if (typeof ($scope.modelStart) === 'undefined' || $scope.modelStart === null) {
|
|
72
73
|
var _start = moment().subtract(1, 'days');
|
|
73
|
-
if($scope.formatOutput) _start = _start.format(params.modelFormat);
|
|
74
|
+
if ($scope.formatOutput) _start = _start.format(params.modelFormat);
|
|
74
75
|
$scope.modelStart = _start;
|
|
75
76
|
|
|
76
77
|
} else {
|
|
@@ -97,9 +98,9 @@ angular.module('niceElements')
|
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
// initialize dateEnd
|
|
100
|
-
if (typeof($scope.modelEnd) === 'undefined' || $scope.modelEnd === null) {
|
|
101
|
+
if (typeof ($scope.modelEnd) === 'undefined' || $scope.modelEnd === null) {
|
|
101
102
|
var _end = moment();
|
|
102
|
-
if($scope.formatOutput) _end = _end.format(params.modelFormat);
|
|
103
|
+
if ($scope.formatOutput) _end = _end.format(params.modelFormat);
|
|
103
104
|
$scope.modelEnd = _end;
|
|
104
105
|
|
|
105
106
|
} else {
|
|
@@ -168,14 +169,14 @@ angular.module('niceElements')
|
|
|
168
169
|
}
|
|
169
170
|
};
|
|
170
171
|
|
|
171
|
-
$scope.okClick = function(){
|
|
172
|
+
$scope.okClick = function () {
|
|
172
173
|
setLabelValue();
|
|
173
174
|
var _start = moment($scope.internalStart, params.modelFormat);
|
|
174
|
-
if($scope.formatOutput) _start = _start.format(params.modelFormat);
|
|
175
|
+
if ($scope.formatOutput) _start = _start.format(params.modelFormat);
|
|
175
176
|
$scope.modelStart = _start;
|
|
176
177
|
|
|
177
178
|
var _end = moment($scope.internalEnd, params.modelFormat);
|
|
178
|
-
if($scope.formatOutput) _end = _end.format(params.modelFormat);
|
|
179
|
+
if ($scope.formatOutput) _end = _end.format(params.modelFormat);
|
|
179
180
|
$scope.modelEnd = _end;
|
|
180
181
|
|
|
181
182
|
//$scope.modelStart = angular.copy($scope.internalStart);
|
|
@@ -185,21 +186,21 @@ angular.module('niceElements')
|
|
|
185
186
|
if ($scope.onChange) $scope.onChange({ modelStart: $scope.modelStart, modelEnd: $scope.modelEnd });
|
|
186
187
|
};
|
|
187
188
|
|
|
188
|
-
$scope.cancelClick = function(){
|
|
189
|
+
$scope.cancelClick = function () {
|
|
189
190
|
$scope.showDtpRange = false;
|
|
190
191
|
//$scope.internalStart = angular.copy($scope.modelStart);
|
|
191
192
|
//$scope.internalEnd = angular.copy($scope.modelEnd);
|
|
192
193
|
var _start = moment($scope.modelStart);
|
|
193
|
-
if($scope.formatOutput) _start = _start.format(params.modelFormat);
|
|
194
|
+
if ($scope.formatOutput) _start = _start.format(params.modelFormat);
|
|
194
195
|
var _end = moment($scope.modelEnd);
|
|
195
|
-
if($scope.formatOutput) _end = _end.format(params.modelFormat);
|
|
196
|
+
if ($scope.formatOutput) _end = _end.format(params.modelFormat);
|
|
196
197
|
|
|
197
198
|
$scope.internalStart = _start;
|
|
198
199
|
$scope.internalEnd = _end;
|
|
199
200
|
setLabelValue();
|
|
200
201
|
};
|
|
201
202
|
|
|
202
|
-
$scope.selectLastNDays = function(days){
|
|
203
|
+
$scope.selectLastNDays = function (days) {
|
|
203
204
|
$scope.dateStart = moment().subtract(days, 'days');
|
|
204
205
|
$scope.dateEnd = moment();
|
|
205
206
|
$scope.internalStart = $scope.dateStart;
|
|
@@ -207,7 +208,7 @@ angular.module('niceElements')
|
|
|
207
208
|
setLabelValue();
|
|
208
209
|
};
|
|
209
210
|
|
|
210
|
-
$scope.selectLastMonth = function(){
|
|
211
|
+
$scope.selectLastMonth = function () {
|
|
211
212
|
$scope.dateStart = moment().subtract(1, 'months');
|
|
212
213
|
$scope.dateEnd = moment();
|
|
213
214
|
$scope.internalStart = $scope.dateStart;
|
|
@@ -215,7 +216,7 @@ angular.module('niceElements')
|
|
|
215
216
|
setLabelValue();
|
|
216
217
|
};
|
|
217
218
|
|
|
218
|
-
$scope.selectThisMonth = function(){
|
|
219
|
+
$scope.selectThisMonth = function () {
|
|
219
220
|
$scope.dateStart = moment().date(1).hours(0).minutes(0).seconds(0).milliseconds(0);
|
|
220
221
|
$scope.dateEnd = moment().endOf('month');
|
|
221
222
|
$scope.internalStart = $scope.dateStart;
|
|
@@ -235,7 +236,7 @@ angular.module('niceElements')
|
|
|
235
236
|
setLabelValue();
|
|
236
237
|
});
|
|
237
238
|
|
|
238
|
-
$scope.$watchGroup(['modelStart', 'modelEnd'], function(){
|
|
239
|
+
$scope.$watchGroup(['modelStart', 'modelEnd'], function () {
|
|
239
240
|
initCurrentDates();
|
|
240
241
|
});
|
|
241
242
|
|
|
@@ -2,16 +2,13 @@
|
|
|
2
2
|
<div class="nice-dtp-background" ng-click="close()" ng-if="isOpen"></div>
|
|
3
3
|
|
|
4
4
|
<div class="row">
|
|
5
|
-
<!-------------------------
|
|
6
|
-
<
|
|
7
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
8
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
9
|
-
</div>
|
|
5
|
+
<!------------------------- Title ------------------------->
|
|
6
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
10
7
|
|
|
11
8
|
<!------------------------- Field ------------------------->
|
|
12
9
|
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
13
10
|
<div class="nice-daterange-picker-button input-group" ng-class="{ 'open': isOpen }" ng-click="open()">
|
|
14
|
-
<input type="text" class="form-control" value="{{ modelFormat }}" readonly="readonly" />
|
|
11
|
+
<input type="text" class="form-control" value="{{ modelFormat }}" readonly="readonly" ng-disabled="isDisabled" />
|
|
15
12
|
<!-- <div class="form-control" title="{{ modelFormat }}">{{ modelFormat }}</div> -->
|
|
16
13
|
<span class="input-group-addon clickable">
|
|
17
14
|
<nice-icon icon="icon-calendar"></nice-icon>
|
|
@@ -14,7 +14,7 @@ angular.module('niceElements')
|
|
|
14
14
|
endDate: '=', // binding model
|
|
15
15
|
formatString: '@', // default: 'D.M.YYYY • H:mm', format for input label string
|
|
16
16
|
modelFormat: '@',
|
|
17
|
-
time: '
|
|
17
|
+
time: '=?', // default: false, is time picker enabled?
|
|
18
18
|
minDate: '@', // default: undefined
|
|
19
19
|
maxDate: '@', // default: undefined
|
|
20
20
|
title: '@', // default: ''
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
<div class="nice-component nice-dropdown" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
2
|
<div class="row">
|
|
3
|
-
<!-------------------------
|
|
4
|
-
<
|
|
5
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
6
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
9
5
|
|
|
10
6
|
<!------------------------- Field ------------------------->
|
|
11
7
|
<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 }}">
|
|
@@ -29,7 +29,7 @@ angular.module('niceElements')
|
|
|
29
29
|
objKey: '@?', // Optional - default is 'id'. Used only when returnOnlyKey=true.
|
|
30
30
|
selectedIsKey: '@?',
|
|
31
31
|
nullable: '@', // No selection is possible
|
|
32
|
-
required: '
|
|
32
|
+
required: '=', // Model cannot be NULL
|
|
33
33
|
noMargin: '@', // margin-bottom: 0px
|
|
34
34
|
multiple: '@', // Can select multiple items
|
|
35
35
|
help: '@',
|
|
@@ -56,7 +56,6 @@ angular.module('niceElements')
|
|
|
56
56
|
if (!$scope.selectedText) { $scope.selectedText = gettextCatalog.getString("selected", null, "Nice"); }
|
|
57
57
|
if (!$scope.addButtonFunction) { $scope.addButtonFunction = null; }
|
|
58
58
|
$scope.nullable = $scope.nullable === 'true' || $scope.nullable === true;
|
|
59
|
-
$scope.required = $scope.required === 'true' || $scope.required === true;
|
|
60
59
|
$scope.noMargin = $scope.noMargin === 'true' || $scope.noMargin === true;
|
|
61
60
|
$scope.multiple = $scope.multiple === 'true' || $scope.multiple === true;
|
|
62
61
|
$scope.clearOnSelect = $scope.clearOnSelect === 'true' || $scope.clearOnSelect === true;
|
|
@@ -189,12 +189,12 @@
|
|
|
189
189
|
&:disabled {
|
|
190
190
|
cursor: not-allowed;
|
|
191
191
|
background: $nice-dropdown-disabled-bg !important;
|
|
192
|
-
border-color:
|
|
192
|
+
border-color: var(--nice-border-color);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
&:hover {
|
|
196
196
|
background: $nice-dropdown-hover-bg;
|
|
197
|
-
border-color:
|
|
197
|
+
border-color: var(--nice-border-color);
|
|
198
198
|
color: $nice-dropdown-hover-color;
|
|
199
199
|
}
|
|
200
200
|
|
|
@@ -202,6 +202,7 @@
|
|
|
202
202
|
&:focus {
|
|
203
203
|
background: $nice-focus-bg !important;
|
|
204
204
|
color: $nice-focus-color !important;
|
|
205
|
+
border-color: var(--nice-border-color);
|
|
205
206
|
@extend .nice-focus;
|
|
206
207
|
}
|
|
207
208
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
<div class="nice-component nice-dropdown-date" ng-form="dropdownDateForm" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
2
|
<div class="row">
|
|
3
|
-
<!-------------------------
|
|
4
|
-
<
|
|
5
|
-
<div class="nice-title-text">{{ title }}<span ng-if="required">*</span></div>
|
|
6
|
-
<nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
|
|
7
|
-
</div>
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title title="title" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
8
5
|
|
|
9
6
|
<!------------------------- Field ------------------------->
|
|
10
|
-
<div class="nice-field col-xs-12"
|
|
11
|
-
ng-class="[
|
|
7
|
+
<div class="nice-field col-xs-12" ng-class="[
|
|
12
8
|
fieldWidth ? fieldWidth : 'col-sm-8',
|
|
13
9
|
{
|
|
14
10
|
'has-warning': !isDisabled && dropdownDateForm.$invalid && dropdownDateForm.$dirty,
|
|
@@ -17,39 +13,17 @@
|
|
|
17
13
|
]">
|
|
18
14
|
<div class="form-inline">
|
|
19
15
|
<div class="input-group nice-dropdown-date-day">
|
|
20
|
-
<select
|
|
21
|
-
ng-model="dateFields.day"
|
|
22
|
-
class="form-control"
|
|
23
|
-
ng-options="day for day in days"
|
|
24
|
-
ng-change="checkDate()"
|
|
25
|
-
ng-disabled="isDisabled"
|
|
26
|
-
required="true"
|
|
27
|
-
></select>
|
|
16
|
+
<select ng-model="dateFields.day" class="form-control" ng-options="day for day in days" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
28
17
|
</div>
|
|
29
18
|
|
|
30
19
|
<div class="input-group nice-dropdown-date-month">
|
|
31
|
-
<select
|
|
32
|
-
ng-model="dateFields.month"
|
|
33
|
-
class="form-control"
|
|
34
|
-
ng-options="month.value as month.name for month in months"
|
|
35
|
-
ng-change="checkDate()"
|
|
36
|
-
ng-disabled="isDisabled"
|
|
37
|
-
required="true"
|
|
38
|
-
></select>
|
|
20
|
+
<select ng-model="dateFields.month" class="form-control" ng-options="month.value as month.name for month in months" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
39
21
|
</div>
|
|
40
22
|
|
|
41
23
|
<div class="input-group nice-dropdown-date-year">
|
|
42
|
-
<select
|
|
43
|
-
ng-model="dateFields.year"
|
|
44
|
-
class="form-control"
|
|
45
|
-
ng-options="year for year in years"
|
|
46
|
-
ng-change="checkDate()"
|
|
47
|
-
ng-disabled="isDisabled"
|
|
48
|
-
required="true"
|
|
49
|
-
></select>
|
|
24
|
+
<select ng-model="dateFields.year" class="form-control" ng-options="year for year in years" ng-change="checkDate()" ng-disabled="isDisabled" required="true"></select>
|
|
50
25
|
</div>
|
|
51
26
|
</div>
|
|
52
27
|
</div>
|
|
53
28
|
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
29
|
+
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.nice-dropdown-date{
|
|
1
|
+
.nice-dropdown-date {
|
|
2
2
|
display: block;
|
|
3
3
|
|
|
4
4
|
.form-inline {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
float: left;
|
|
12
12
|
position: relative;
|
|
13
13
|
|
|
14
|
-
&:after{
|
|
14
|
+
&:after {
|
|
15
15
|
content: " ";
|
|
16
16
|
position: absolute;
|
|
17
17
|
top: 50%;
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
margin-right: 10px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.nice-dropdown-date-day{
|
|
34
|
+
.nice-dropdown-date-day {
|
|
35
35
|
width: 30%;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.nice-dropdown-date-month{
|
|
38
|
+
.nice-dropdown-date-month {
|
|
39
39
|
width: 40%;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.nice-dropdown-date-year{
|
|
42
|
+
.nice-dropdown-date-year {
|
|
43
43
|
width: 30%;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -55,24 +55,24 @@
|
|
|
55
55
|
z-index: 2;
|
|
56
56
|
background: transparent;
|
|
57
57
|
|
|
58
|
-
&:disabled{
|
|
58
|
+
&:disabled {
|
|
59
59
|
cursor: not-allowed;
|
|
60
60
|
background: $nice-dropdown-disabled-bg !important;
|
|
61
|
-
border-color:
|
|
61
|
+
border-color: var(--nice-border-color);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
&:hover{
|
|
65
|
-
|
|
66
|
-
border-color:
|
|
64
|
+
&:hover {
|
|
65
|
+
background: $nice-dropdown-hover-bg;
|
|
66
|
+
border-color: var(--nice-border-color);
|
|
67
67
|
color: $nice-dropdown-hover-color;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
&:active,
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
&:active,
|
|
71
|
+
&:focus {
|
|
72
|
+
background: $nice-focus-bg !important;
|
|
73
73
|
color: $nice-focus-color !important;
|
|
74
|
-
-
|
|
75
|
-
|
|
74
|
+
border-color: var(--nice-border-color);
|
|
75
|
+
@extend .nice-focus;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|