nice-elements 1.12.10 → 1.12.12

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.
Files changed (157) hide show
  1. package/.vscode/settings.json +18 -18
  2. package/CHANGELOG.md +589 -580
  3. package/LICENSE.md +21 -21
  4. package/README.md +102 -102
  5. package/bower.json +17 -17
  6. package/dist/nice.js +9200 -11639
  7. package/dist/nice.min.js +1 -1
  8. package/dist/style.css +12 -12
  9. package/dist/style.css.map +1 -1
  10. package/dist/style.min.css +8 -8
  11. package/eslint.config.mjs +32 -32
  12. package/package.json +44 -44
  13. package/src/components/nice-alert/nice-alert.html +6 -6
  14. package/src/components/nice-alert/nice-alert.js +29 -29
  15. package/src/components/nice-alert/nice-alert.scss +59 -59
  16. package/src/components/nice-avatar/nice-avatar.js +122 -122
  17. package/src/components/nice-avatar/nice-avatar.scss +4 -4
  18. package/src/components/nice-button/nice-button.html +4 -4
  19. package/src/components/nice-button/nice-button.js +41 -41
  20. package/src/components/nice-button/nice-button.scss +16 -16
  21. package/src/components/nice-button-toggle/nice-button-toggle.html +9 -9
  22. package/src/components/nice-button-toggle/nice-button-toggle.js +23 -23
  23. package/src/components/nice-button-toggle/nice-button-toggle.scss +2 -2
  24. package/src/components/nice-calendar/nice-calendar.html +91 -91
  25. package/src/components/nice-calendar/nice-calendar.js +346 -346
  26. package/src/components/nice-calendar/nice-calendar.scss +288 -288
  27. package/src/components/nice-checkbox/nice-checkbox.html +20 -9
  28. package/src/components/nice-checkbox/nice-checkbox.js +38 -37
  29. package/src/components/nice-checkbox/nice-checkbox.scss +120 -120
  30. package/src/components/nice-choice/nice-choice.html +18 -18
  31. package/src/components/nice-choice/nice-choice.js +211 -211
  32. package/src/components/nice-choice/nice-choice.scss +110 -110
  33. package/src/components/nice-comment/nice-comment.html +10 -10
  34. package/src/components/nice-comment/nice-comment.js +71 -71
  35. package/src/components/nice-comment/nice-comment.scss +39 -39
  36. package/src/components/nice-date/nice-date.html +82 -82
  37. package/src/components/nice-date/nice-date.js +350 -350
  38. package/src/components/nice-date/nice-date.scss +305 -305
  39. package/src/components/nice-date-input/nice-date-input.html +56 -56
  40. package/src/components/nice-date-input/nice-date-input.js +143 -143
  41. package/src/components/nice-date-input/nice-date-input.scss +55 -55
  42. package/src/components/nice-date-range/nice-date-range.html +15 -15
  43. package/src/components/nice-date-range/nice-date-range.js +78 -78
  44. package/src/components/nice-date-range/nice-date-range.scss +390 -390
  45. package/src/components/nice-datetime-picker/nice-datetime-picker.html +29 -29
  46. package/src/components/nice-datetime-picker/nice-datetime-picker.js +89 -89
  47. package/src/components/nice-datetime-picker/nice-datetime-picker.scss +428 -428
  48. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +55 -55
  49. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +248 -248
  50. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.scss +73 -73
  51. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +44 -44
  52. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +175 -175
  53. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +127 -127
  54. package/src/components/nice-dropdown/nice-dropdown.html +61 -61
  55. package/src/components/nice-dropdown/nice-dropdown.js +518 -517
  56. package/src/components/nice-dropdown/nice-dropdown.scss +262 -262
  57. package/src/components/nice-dropdown-date/nice-dropdown-date.html +28 -28
  58. package/src/components/nice-dropdown-date/nice-dropdown-date.js +132 -132
  59. package/src/components/nice-dropdown-date/nice-dropdown-date.scss +87 -87
  60. package/src/components/nice-dropdown-old/nice-dropdown-old.html +44 -44
  61. package/src/components/nice-dropdown-old/nice-dropdown-old.js +330 -330
  62. package/src/components/nice-dropdown-old/nice-dropdown-old.scss +129 -129
  63. package/src/components/nice-dtp/nice-dtp.html +91 -91
  64. package/src/components/nice-dtp/nice-dtp.js +835 -835
  65. package/src/components/nice-help/nice-help.html +6 -6
  66. package/src/components/nice-help/nice-help.js +58 -58
  67. package/src/components/nice-help/nice-help.scss +78 -78
  68. package/src/components/nice-input/nice-input.html +47 -47
  69. package/src/components/nice-input/nice-input.js +251 -251
  70. package/src/components/nice-input/nice-input.scss +130 -130
  71. package/src/components/nice-label/nice-label.html +10 -10
  72. package/src/components/nice-label/nice-label.js +32 -32
  73. package/src/components/nice-loader/nice-loader.html +6 -6
  74. package/src/components/nice-loader/nice-loader.js +28 -28
  75. package/src/components/nice-loader/nice-loader.scss +47 -47
  76. package/src/components/nice-no-data/nice-no-data.html +3 -3
  77. package/src/components/nice-no-data/nice-no-data.js +27 -27
  78. package/src/components/nice-no-data/nice-no-data.scss +26 -26
  79. package/src/components/nice-notification/nice-notification.html +3 -3
  80. package/src/components/nice-notification/nice-notification.js +124 -124
  81. package/src/components/nice-notification/nice-notification.scss +66 -66
  82. package/src/components/nice-number/nice-number.html +40 -40
  83. package/src/components/nice-number/nice-number.js +172 -172
  84. package/src/components/nice-number/nice-number.scss +18 -18
  85. package/src/components/nice-on-scroll/nice-on-scroll.js +17 -17
  86. package/src/components/nice-percent/nice-percent.html +24 -24
  87. package/src/components/nice-percent/nice-percent.js +95 -95
  88. package/src/components/nice-pill/nice-pill.html +3 -3
  89. package/src/components/nice-pill/nice-pill.js +29 -29
  90. package/src/components/nice-pill/nice-pill.scss +25 -25
  91. package/src/components/nice-popup/nice-popup.html +6 -6
  92. package/src/components/nice-popup/nice-popup.js +122 -122
  93. package/src/components/nice-popup/nice-popup.scss +43 -43
  94. package/src/components/nice-progress-bar/nice-progress-bar.html +15 -15
  95. package/src/components/nice-progress-bar/nice-progress-bar.js +55 -55
  96. package/src/components/nice-progress-bar/nice-progress-bar.scss +47 -47
  97. package/src/components/nice-quantity/nice-quantity.html +22 -22
  98. package/src/components/nice-quantity/nice-quantity.js +57 -57
  99. package/src/components/nice-quantity/nice-quantity.scss +51 -51
  100. package/src/components/nice-search/nice-search.html +44 -44
  101. package/src/components/nice-search/nice-search.js +243 -243
  102. package/src/components/nice-search/nice-search.scss +90 -90
  103. package/src/components/nice-search2/nice-search2.html +32 -32
  104. package/src/components/nice-search2/nice-search2.js +267 -267
  105. package/src/components/nice-search2/nice-search2.scss +80 -80
  106. package/src/components/nice-slot/nice-slot.html +10 -10
  107. package/src/components/nice-slot/nice-slot.js +31 -31
  108. package/src/components/nice-steps/nice-steps.scss +81 -81
  109. package/src/components/nice-svgs/nice-svgs.html +1332 -1332
  110. package/src/components/nice-svgs/nice-svgs.js +19 -19
  111. package/src/components/nice-table/nice-table.html +38 -38
  112. package/src/components/nice-table/nice-table.js +60 -60
  113. package/src/components/nice-table/nice-table.scss +112 -112
  114. package/src/components/nice-time-picker/nice-time-picker.html +43 -43
  115. package/src/components/nice-time-picker/nice-time-picker.js +85 -85
  116. package/src/components/nice-time-picker/nice-time-picker.scss +37 -37
  117. package/src/components/nice-title/nice-title.html +6 -6
  118. package/src/components/nice-title/nice-title.js +22 -22
  119. package/src/components/nice-toast/nice-toast.html +2 -2
  120. package/src/components/nice-toast/nice-toast.js +56 -56
  121. package/src/components/nice-toast/nice-toast.scss +74 -74
  122. package/src/components/nice-toggle/nice-toggle.html +12 -12
  123. package/src/components/nice-toggle/nice-toggle.js +57 -57
  124. package/src/components/nice-toggle/nice-toggle.scss +131 -131
  125. package/src/components/nice-upload/nice-upload.html +22 -22
  126. package/src/components/nice-upload/nice-upload.js +160 -160
  127. package/src/components/nice-upload/nice-upload.scss +85 -85
  128. package/src/components/nice-view/_nice-view.scss +63 -63
  129. package/src/components/nice-view/nice-view.html +12 -12
  130. package/src/components/nice-view/nice-view.js +29 -30
  131. package/src/components/nice-virtual-scroll/_nice-virtual-scroll.scss +17 -17
  132. package/src/components/nice-virtual-scroll/nice-virtual-scroll.html +12 -12
  133. package/src/components/nice-virtual-scroll/nice-virtual-scroll.js +70 -70
  134. package/src/components/nice-wrapper/_nice-wrapper.scss +87 -87
  135. package/src/components/nice-wrapper/nice-wrapper.html +12 -12
  136. package/src/components/nice-wrapper/nice-wrapper.js +44 -44
  137. package/src/components/nice-yesno/nice-yesno.html +14 -14
  138. package/src/components/nice-yesno/nice-yesno.js +111 -111
  139. package/src/components/nice-yesno/nice-yesno.scss +95 -95
  140. package/src/directives/nice-click-outside.js +105 -105
  141. package/src/directives/nice-infinite-loader.js +27 -27
  142. package/src/directives/nice-tooltip/_nice-tooltip.scss +55 -55
  143. package/src/directives/nice-tooltip/nice-tooltip.js +84 -84
  144. package/src/filters/nice-date.js +17 -17
  145. package/src/filters/nice-highlight.js +16 -16
  146. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.html +30 -30
  147. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.js +67 -67
  148. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.scss +19 -19
  149. package/src/nice.js +2 -2
  150. package/src/services/nice-service.js +22 -22
  151. package/src/styles/_bootstrap-variables.scss +178 -178
  152. package/src/styles/_nice-buttons.scss +612 -612
  153. package/src/styles/_nice-common.scss +479 -479
  154. package/src/styles/_nice-ngdialog.scss +85 -85
  155. package/src/styles/_nice-spacing.scss +283 -283
  156. package/src/styles/_nice.scss +75 -75
  157. package/src/styles/_variables.scss +194 -194
@@ -1,71 +1,71 @@
1
- 'use strict';
2
-
3
- /**
4
- * @ngdoc directive
5
- * @name niceElements.directive:niceComment
6
- * @description
7
- * # niceComment
8
- */
9
- angular.module('niceElements')
10
- .directive('niceComment', function ($timeout) {
11
- return {
12
- templateUrl: 'src/components/nice-comment/nice-comment.html',
13
- restrict: 'E',
14
- scope: {
15
- model: '=',
16
- title: '@?',
17
- niceTitle: '@?',
18
- isDisabled: '=',
19
- placeholder: '@',
20
- noTextLabel: '@',
21
- noMargin: '@',
22
- fieldWidth: '@',
23
- labelWidth: '@',
24
- help: '@',
25
- isInline: '=',
26
- rows: '@',
27
- required: '='
28
- },
29
- link: function postLink(scope, element, attrs) {
30
- if (scope.model == null) { scope.model = ''; }
31
- if (!attrs.placeholder) { attrs.placeholder = ''; }
32
- if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
33
- if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
34
- if (!attrs.help) { attrs.help = ''; }
35
- if (!attrs.rows) { attrs.rows = 1; }
36
- attrs.noTextLabel = attrs.noTextLabel === 'true' || attrs.noTextLabel === true;
37
-
38
- const textareas = element.find('textarea');
39
-
40
- scope.edit = function () {
41
- scope.editing = true;
42
- $timeout(function () {
43
- textareas[0].focus();
44
- });
45
- };
46
-
47
- textareas[0].addEventListener('keydown', autosize);
48
- autosize();
49
-
50
- function autosize() {
51
- const el = textareas[0];
52
- $timeout(function () {
53
- el.style.cssText = 'height:auto; padding:0';
54
-
55
- // for box-sizing other than "content-box" use:
56
- el.style.cssText = '-moz-box-sizing:content-box';
57
-
58
- // Fix height
59
- el.style.cssText = 'height:' + (el.scrollHeight + 2) + 'px';
60
- });
61
- }
62
- },
63
- controller: function ($scope) {
64
- $scope.editing = false;
65
-
66
- $scope.save = function () {
67
- $scope.editing = false;
68
- };
69
- }
70
- };
71
- });
1
+ 'use strict';
2
+
3
+ /**
4
+ * @ngdoc directive
5
+ * @name niceElements.directive:niceComment
6
+ * @description
7
+ * # niceComment
8
+ */
9
+ angular.module('niceElements')
10
+ .directive('niceComment', function ($timeout) {
11
+ return {
12
+ templateUrl: 'src/components/nice-comment/nice-comment.html',
13
+ restrict: 'E',
14
+ scope: {
15
+ model: '=',
16
+ title: '@?',
17
+ niceTitle: '@?',
18
+ isDisabled: '=',
19
+ placeholder: '@',
20
+ noTextLabel: '@',
21
+ noMargin: '@',
22
+ fieldWidth: '@',
23
+ labelWidth: '@',
24
+ help: '@',
25
+ isInline: '=',
26
+ rows: '@',
27
+ required: '='
28
+ },
29
+ link: function postLink(scope, element, attrs) {
30
+ if (scope.model == null) { scope.model = ''; }
31
+ if (!attrs.placeholder) { attrs.placeholder = ''; }
32
+ if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
33
+ if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
34
+ if (!attrs.help) { attrs.help = ''; }
35
+ if (!attrs.rows) { attrs.rows = 1; }
36
+ attrs.noTextLabel = attrs.noTextLabel === 'true' || attrs.noTextLabel === true;
37
+
38
+ const textareas = element.find('textarea');
39
+
40
+ scope.edit = function () {
41
+ scope.editing = true;
42
+ $timeout(function () {
43
+ textareas[0].focus();
44
+ });
45
+ };
46
+
47
+ textareas[0].addEventListener('keydown', autosize);
48
+ autosize();
49
+
50
+ function autosize() {
51
+ const el = textareas[0];
52
+ $timeout(function () {
53
+ el.style.cssText = 'height:auto; padding:0';
54
+
55
+ // for box-sizing other than "content-box" use:
56
+ el.style.cssText = '-moz-box-sizing:content-box';
57
+
58
+ // Fix height
59
+ el.style.cssText = 'height:' + (el.scrollHeight + 2) + 'px';
60
+ });
61
+ }
62
+ },
63
+ controller: function ($scope) {
64
+ $scope.editing = false;
65
+
66
+ $scope.save = function () {
67
+ $scope.editing = false;
68
+ };
69
+ }
70
+ };
71
+ });
@@ -1,40 +1,40 @@
1
- .nice-comment {
2
- .btn-comment-save {
3
- position: absolute;
4
- right: 20px;
5
- top: 4px;
6
- }
7
-
8
- .btn-comment-cancel {
9
- position: absolute;
10
- right: 20px;
11
- top: 40px;
12
- }
13
-
14
- .form-control[disabled] {
15
- background: transparent;
16
- }
17
-
18
- textarea {
19
- min-height: 34px !important;
20
- height: 34px;
21
- box-shadow: 0 0 0;
22
-
23
- &:focus {
24
- box-shadow: 0 0 0;
25
- border-color: transparent;
26
- }
27
-
28
- border-radius: $nice-border-radius;
29
- border-color: transparent;
30
- color: $nice-base-color;
31
- -webkit-user-select: none;
32
- padding: 6px 0px;
33
-
34
- &.editing {
35
- padding: 6px;
36
- color: $nice-font-color;
37
- -webkit-user-select: initial;
38
- }
39
- }
1
+ .nice-comment {
2
+ .btn-comment-save {
3
+ position: absolute;
4
+ right: 20px;
5
+ top: 4px;
6
+ }
7
+
8
+ .btn-comment-cancel {
9
+ position: absolute;
10
+ right: 20px;
11
+ top: 40px;
12
+ }
13
+
14
+ .form-control[disabled] {
15
+ background: transparent;
16
+ }
17
+
18
+ textarea {
19
+ min-height: 34px !important;
20
+ height: 34px;
21
+ box-shadow: 0 0 0;
22
+
23
+ &:focus {
24
+ box-shadow: 0 0 0;
25
+ border-color: transparent;
26
+ }
27
+
28
+ border-radius: $nice-border-radius;
29
+ border-color: transparent;
30
+ color: $nice-base-color;
31
+ -webkit-user-select: none;
32
+ padding: 6px 0px;
33
+
34
+ &.editing {
35
+ padding: 6px;
36
+ color: $nice-font-color;
37
+ -webkit-user-select: initial;
38
+ }
39
+ }
40
40
  }
@@ -1,83 +1,83 @@
1
- <div class="nice-component nice-date" ng-form="forma" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
2
- <div class="nice-date-background" ng-click="toggleOpen()" ng-if="isOpen && !inline"></div>
3
-
4
- <div class="row">
5
- <!------------------------- Title ------------------------->
6
- <nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
7
-
8
- <!------------------------- Field ------------------------->
9
- <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
10
- <div class="disabled-shield" ng-if="isDisabled"></div>
11
-
12
- <!------------------------------ Input ------------------------------>
13
- <div class="nice-date-button input-group" ng-class="{ 'open': isOpen }" ng-show="!inline" ng-click="toggleOpen()">
14
- <input type="text" class="form-control" value="{{ innerDate.value }}" placeholder="{{ placeholder }}" readonly="readonly" ng-disabled="isDisabled" />
15
- <span class="input-group-btn">
16
- <button type="button" class="btn btn-default btn-right" ng-disabled="isDisabled" ng-if="!(model && nullable)">
17
- <nice-icon icon="icon-calendar"></nice-icon>
18
- </button>
19
- <button type="button" class="btn btn-default btn-right" ng-disabled="isDisabled" ng-if="model && nullable" ng-click="clear()">
20
- <nice-icon icon="icon-x"></nice-icon>
21
- </button>
22
- </span>
23
- </div>
24
-
25
- <!-------- Dropdown -------->
26
- <div ng-class="{ 'nice-date-dropdown-wrapper': !inline }">
27
- <div ng-class="{ 'nice-date-dropdown': !inline, 'with-time': time, 'no-date': !date }" ng-if="inline || isOpen">
28
- <!------------------------------ Date picker ------------------------------>
29
- <div class="nice-date-date" ng-if="date" role="grid">
30
- <div class="nice-date-header">
31
- <span>
32
- <select class="year-picker" ng-model="innerDate.year" ng-change="handleDateChange()" ng-options="year for year in years" ng-disabled="isDisabled"></select>
33
- <span class="nice-date-header-comma">,</span>
34
- <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>
35
- </span>
36
- <button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="previous()">
37
- <nice-icon icon="icon-chevron-left"></nice-icon>
38
- </button>
39
- <button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="today()">
40
- <nice-icon icon="icon-circle"></nice-icon>
41
- </button>
42
- <button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="next()">
43
- <nice-icon icon="icon-chevron-right"></nice-icon>
44
- </button>
45
- </div>
46
-
47
- <div class="nice-date-week names">
48
- <span class="nice-date-day" ng-class="{ 'weekend': $index == 6 || $index == 5 }" ng-repeat="day in weekdays">{{ day }}</span>
49
- </div>
50
-
51
- <div class="nice-date-week" role="row" ng-repeat="week in weeks">
52
- <button type="button" class="nice-date-day" role="gridcell" title="{{ day.value }}" ng-class="{
53
- 'today': day.isToday,
54
- 'different-month': !day.isCurrentMonth,
55
- 'selected': isSameDay(model, day.date),
56
- 'weekend': day.isWeekday,
57
- 'disabled': day.isDisabled,
58
- 'between': isBetween(day.date, model, nextDate)
59
- }" ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
60
- {{ day.number }}
61
- </button>
62
- </div>
63
- </div>
64
-
65
- <!------------------------------ Time picker ------------------------------>
66
- <div class="nice-date-time" ng-if="time">
67
- <nice-icon icon="icon-clock"></nice-icon>
68
-
69
- <div class="time-picker time-picker-hour">
70
- <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>
71
- </div>
72
-
73
- <div class="divider">:</div>
74
-
75
- <div class="time-picker time-picker-minute">
76
- <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>
77
- </div>
78
- </div>
79
- </div>
80
- </div>
81
- </div>
82
- </div>
1
+ <div class="nice-component nice-date" ng-form="forma" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
2
+ <div class="nice-date-background" ng-click="toggleOpen()" ng-if="isOpen && !inline"></div>
3
+
4
+ <div class="row">
5
+ <!------------------------- Title ------------------------->
6
+ <nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
7
+
8
+ <!------------------------- Field ------------------------->
9
+ <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
10
+ <div class="disabled-shield" ng-if="isDisabled"></div>
11
+
12
+ <!------------------------------ Input ------------------------------>
13
+ <div class="nice-date-button input-group" ng-class="{ 'open': isOpen }" ng-show="!inline" ng-click="toggleOpen()">
14
+ <input type="text" class="form-control" value="{{ innerDate.value }}" placeholder="{{ placeholder }}" readonly="readonly" ng-disabled="isDisabled" />
15
+ <span class="input-group-btn">
16
+ <button type="button" class="btn btn-default btn-right" ng-disabled="isDisabled" ng-if="!(model && nullable)">
17
+ <nice-icon icon="icon-calendar"></nice-icon>
18
+ </button>
19
+ <button type="button" class="btn btn-default btn-right" ng-disabled="isDisabled" ng-if="model && nullable" ng-click="clear()">
20
+ <nice-icon icon="icon-x"></nice-icon>
21
+ </button>
22
+ </span>
23
+ </div>
24
+
25
+ <!-------- Dropdown -------->
26
+ <div ng-class="{ 'nice-date-dropdown-wrapper': !inline }">
27
+ <div ng-class="{ 'nice-date-dropdown': !inline, 'with-time': time, 'no-date': !date }" ng-if="inline || isOpen">
28
+ <!------------------------------ Date picker ------------------------------>
29
+ <div class="nice-date-date" ng-if="date" role="grid">
30
+ <div class="nice-date-header">
31
+ <span>
32
+ <select class="year-picker" ng-model="innerDate.year" ng-change="handleDateChange()" ng-options="year for year in years" ng-disabled="isDisabled"></select>
33
+ <span class="nice-date-header-comma">,</span>
34
+ <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>
35
+ </span>
36
+ <button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="previous()">
37
+ <nice-icon icon="icon-chevron-left"></nice-icon>
38
+ </button>
39
+ <button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="today()">
40
+ <nice-icon icon="icon-circle"></nice-icon>
41
+ </button>
42
+ <button type="button" class="btn btn-default-naked" ng-disabled="isDisabled" ng-click="next()">
43
+ <nice-icon icon="icon-chevron-right"></nice-icon>
44
+ </button>
45
+ </div>
46
+
47
+ <div class="nice-date-week names">
48
+ <span class="nice-date-day" ng-class="{ 'weekend': $index == 6 || $index == 5 }" ng-repeat="day in weekdays">{{ day }}</span>
49
+ </div>
50
+
51
+ <div class="nice-date-week" role="row" ng-repeat="week in weeks">
52
+ <button type="button" class="nice-date-day" role="gridcell" title="{{ day.value }}" ng-class="{
53
+ 'today': day.isToday,
54
+ 'different-month': !day.isCurrentMonth,
55
+ 'selected': isSameDay(model, day.date),
56
+ 'weekend': day.isWeekday,
57
+ 'disabled': day.isDisabled,
58
+ 'between': isBetween(day.date, model, nextDate)
59
+ }" ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
60
+ {{ day.number }}
61
+ </button>
62
+ </div>
63
+ </div>
64
+
65
+ <!------------------------------ Time picker ------------------------------>
66
+ <div class="nice-date-time" ng-if="time">
67
+ <nice-icon icon="icon-clock"></nice-icon>
68
+
69
+ <div class="time-picker time-picker-hour">
70
+ <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>
71
+ </div>
72
+
73
+ <div class="divider">:</div>
74
+
75
+ <div class="time-picker time-picker-minute">
76
+ <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>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ </div>
83
83
  </div>