nice-elements 1.9.16 → 1.10.0

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 (143) hide show
  1. package/.vscode/settings.json +17 -17
  2. package/CHANGELOG.md +407 -401
  3. package/LICENSE.md +21 -21
  4. package/README.md +95 -93
  5. package/bower.json +10 -10
  6. package/dist/nice.js +8073 -7930
  7. package/dist/nice.min.js +1 -1
  8. package/dist/style.css +105 -9
  9. package/dist/style.css.map +3 -1
  10. package/dist/style.min.css +8 -8
  11. package/package.json +40 -40
  12. package/src/components/nice-button/nice-button.html +4 -4
  13. package/src/components/nice-button/nice-button.js +41 -41
  14. package/src/components/nice-button/nice-button.scss +16 -16
  15. package/src/components/nice-button-toggle/nice-button-toggle.html +9 -9
  16. package/src/components/nice-button-toggle/nice-button-toggle.js +23 -23
  17. package/src/components/nice-button-toggle/nice-button-toggle.scss +2 -2
  18. package/src/components/nice-calendar/nice-calendar.html +91 -91
  19. package/src/components/nice-calendar/nice-calendar.js +334 -334
  20. package/src/components/nice-calendar/nice-calendar.scss +285 -285
  21. package/src/components/nice-checkbox/nice-checkbox.html +5 -5
  22. package/src/components/nice-checkbox/nice-checkbox.js +33 -33
  23. package/src/components/nice-checkbox/nice-checkbox.scss +91 -91
  24. package/src/components/nice-choice/nice-choice.html +18 -18
  25. package/src/components/nice-choice/nice-choice.js +210 -210
  26. package/src/components/nice-choice/nice-choice.scss +110 -110
  27. package/src/components/nice-click-outside/nice-click-outside.js +105 -105
  28. package/src/components/nice-comment/nice-comment.html +10 -10
  29. package/src/components/nice-comment/nice-comment.js +69 -69
  30. package/src/components/nice-comment/nice-comment.scss +39 -39
  31. package/src/components/nice-date/nice-date.html +74 -74
  32. package/src/components/nice-date/nice-date.js +327 -327
  33. package/src/components/nice-date/nice-date.scss +302 -302
  34. package/src/components/nice-date-input/nice-date-input.html +41 -41
  35. package/src/components/nice-date-input/nice-date-input.js +109 -109
  36. package/src/components/nice-date-input/nice-date-input.scss +45 -45
  37. package/src/components/nice-date-range/nice-date-range.html +15 -15
  38. package/src/components/nice-date-range/nice-date-range.js +76 -76
  39. package/src/components/nice-date-range/nice-date-range.scss +390 -390
  40. package/src/components/nice-datetime-picker/nice-datetime-picker.html +29 -29
  41. package/src/components/nice-datetime-picker/nice-datetime-picker.js +87 -87
  42. package/src/components/nice-datetime-picker/nice-datetime-picker.scss +428 -428
  43. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +55 -55
  44. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +246 -246
  45. package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.scss +73 -73
  46. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +44 -44
  47. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +172 -172
  48. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +127 -127
  49. package/src/components/nice-dropdown/nice-dropdown.html +60 -60
  50. package/src/components/nice-dropdown/nice-dropdown.js +489 -489
  51. package/src/components/nice-dropdown/nice-dropdown.scss +249 -249
  52. package/src/components/nice-dropdown-date/nice-dropdown-date.html +28 -28
  53. package/src/components/nice-dropdown-date/nice-dropdown-date.js +126 -126
  54. package/src/components/nice-dropdown-date/nice-dropdown-date.scss +82 -82
  55. package/src/components/nice-dropdown-old/nice-dropdown-old.html +44 -44
  56. package/src/components/nice-dropdown-old/nice-dropdown-old.js +330 -330
  57. package/src/components/nice-dropdown-old/nice-dropdown-old.scss +129 -129
  58. package/src/components/nice-dtp/nice-dtp.html +91 -91
  59. package/src/components/nice-dtp/nice-dtp.js +833 -833
  60. package/src/components/nice-help/nice-help.html +6 -6
  61. package/src/components/nice-help/nice-help.js +55 -55
  62. package/src/components/nice-help/nice-help.scss +78 -78
  63. package/src/components/nice-input/nice-input.html +48 -48
  64. package/src/components/nice-input/nice-input.js +244 -244
  65. package/src/components/nice-input/nice-input.scss +130 -130
  66. package/src/components/nice-label/nice-label.html +10 -10
  67. package/src/components/nice-label/nice-label.js +30 -30
  68. package/src/components/nice-loader/nice-loader.html +6 -6
  69. package/src/components/nice-loader/nice-loader.js +28 -28
  70. package/src/components/nice-loader/nice-loader.scss +47 -47
  71. package/src/components/nice-no-data/nice-no-data.html +4 -0
  72. package/src/components/nice-no-data/nice-no-data.js +26 -0
  73. package/src/components/nice-no-data/nice-no-data.scss +27 -0
  74. package/src/components/nice-notification/nice-notification.html +3 -3
  75. package/src/components/nice-notification/nice-notification.js +124 -124
  76. package/src/components/nice-notification/nice-notification.scss +66 -66
  77. package/src/components/nice-number/nice-number.html +40 -40
  78. package/src/components/nice-number/nice-number.js +169 -169
  79. package/src/components/nice-number/nice-number.scss +18 -18
  80. package/src/components/nice-percent/nice-percent.html +24 -24
  81. package/src/components/nice-percent/nice-percent.js +94 -94
  82. package/src/components/nice-pill/nice-pill.html +3 -3
  83. package/src/components/nice-pill/nice-pill.js +29 -29
  84. package/src/components/nice-pill/nice-pill.scss +25 -25
  85. package/src/components/nice-popup/nice-popup.html +6 -6
  86. package/src/components/nice-popup/nice-popup.js +122 -122
  87. package/src/components/nice-popup/nice-popup.scss +43 -43
  88. package/src/components/nice-progress-bar/nice-progress-bar.html +15 -15
  89. package/src/components/nice-progress-bar/nice-progress-bar.js +54 -54
  90. package/src/components/nice-progress-bar/nice-progress-bar.scss +47 -47
  91. package/src/components/nice-quantity/nice-quantity.html +22 -22
  92. package/src/components/nice-quantity/nice-quantity.js +55 -55
  93. package/src/components/nice-quantity/nice-quantity.scss +51 -51
  94. package/src/components/nice-search/nice-search.html +44 -44
  95. package/src/components/nice-search/nice-search.js +239 -239
  96. package/src/components/nice-search/nice-search.scss +90 -90
  97. package/src/components/nice-search2/nice-search2.html +32 -32
  98. package/src/components/nice-search2/nice-search2.js +264 -264
  99. package/src/components/nice-search2/nice-search2.scss +80 -80
  100. package/src/components/nice-slot/nice-slot.html +10 -10
  101. package/src/components/nice-slot/nice-slot.js +29 -29
  102. package/src/components/nice-steps/nice-steps.scss +81 -81
  103. package/src/components/nice-svgs/nice-svgs.html +1262 -1262
  104. package/src/components/nice-svgs/nice-svgs.js +16 -16
  105. package/src/components/nice-table/nice-table.html +28 -0
  106. package/src/components/nice-table/nice-table.js +40 -0
  107. package/src/components/nice-table/nice-table.scss +62 -0
  108. package/src/components/nice-time-picker/nice-time-picker.html +43 -43
  109. package/src/components/nice-time-picker/nice-time-picker.js +83 -83
  110. package/src/components/nice-time-picker/nice-time-picker.scss +37 -37
  111. package/src/components/nice-title/nice-title.html +3 -3
  112. package/src/components/nice-title/nice-title.js +21 -21
  113. package/src/components/nice-toast/nice-toast.html +2 -2
  114. package/src/components/nice-toast/nice-toast.js +56 -56
  115. package/src/components/nice-toast/nice-toast.scss +74 -74
  116. package/src/components/nice-toggle/nice-toggle.html +12 -12
  117. package/src/components/nice-toggle/nice-toggle.js +95 -95
  118. package/src/components/nice-toggle/nice-toggle.scss +74 -67
  119. package/src/components/nice-tooltip/_nice-tooltip.scss +71 -71
  120. package/src/components/nice-tooltip/nice-tooltip.js +23 -23
  121. package/src/components/nice-upload/nice-upload.html +22 -22
  122. package/src/components/nice-upload/nice-upload.js +157 -157
  123. package/src/components/nice-upload/nice-upload.scss +85 -85
  124. package/src/components/nice-wrapper/_nice-wrapper.scss +87 -87
  125. package/src/components/nice-wrapper/nice-wrapper.html +12 -12
  126. package/src/components/nice-wrapper/nice-wrapper.js +43 -43
  127. package/src/components/nice-yesno/nice-yesno.html +14 -14
  128. package/src/components/nice-yesno/nice-yesno.js +109 -109
  129. package/src/components/nice-yesno/nice-yesno.scss +95 -95
  130. package/src/filters/nice-date.js +17 -17
  131. package/src/filters/nice-highlight.js +16 -16
  132. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.html +30 -30
  133. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.js +67 -67
  134. package/src/modals/nice-multilangual-modal/nice-multilangual-modal.scss +19 -19
  135. package/src/nice.js +2 -2
  136. package/src/services/nice-service.js +19 -19
  137. package/src/styles/_bootstrap-variables.scss +178 -178
  138. package/src/styles/_nice-buttons.scss +403 -403
  139. package/src/styles/_nice-common.scss +471 -471
  140. package/src/styles/_nice-ngdialog.scss +85 -85
  141. package/src/styles/_nice-spacing.scss +283 -283
  142. package/src/styles/_nice.scss +67 -65
  143. package/src/styles/_variables.scss +197 -195
package/package.json CHANGED
@@ -1,40 +1,40 @@
1
- {
2
- "name": "nice-elements",
3
- "version": "1.9.16",
4
- "description": "Nice elements used in olaii angular 1.x webapps.",
5
- "main": "dist/nice.js",
6
- "license": "MIT",
7
- "scripts": {
8
- "serve": "node server.js",
9
- "build": "./node_modules/.bin/grunt"
10
- },
11
- "dependencies": {
12
- "@popperjs/core": "2.11.6",
13
- "angular": "1.5.8",
14
- "angular-animate": "1.5.8",
15
- "angular-gettext": "2.4.2",
16
- "angular-route": "1.5.8",
17
- "angular-sanitize": "1.5.8",
18
- "angular-touch": "1.5.8",
19
- "angular-truncate": "latest",
20
- "bootstrap": "3.3.7",
21
- "decimal.js": "4.0.3",
22
- "font-awesome": "4.3.0",
23
- "lodash": "3.9.3",
24
- "moment": "2.24.0",
25
- "ng-dialog": "0.5.6"
26
- },
27
- "devDependencies": {
28
- "express": "4.17.1",
29
- "grunt": "1.6.1",
30
- "grunt-angular-templates": "1.2.0",
31
- "grunt-contrib-clean": "2.0.0",
32
- "grunt-contrib-concat": "1.0.1",
33
- "grunt-contrib-cssmin": "4.0.0",
34
- "grunt-contrib-jshint": "3.0.0",
35
- "grunt-contrib-uglify": "5.0.1",
36
- "grunt-sass": "3.1.0",
37
- "load-grunt-tasks": "5.1.0",
38
- "node-sass": "9.0.0"
39
- }
40
- }
1
+ {
2
+ "name": "nice-elements",
3
+ "version": "1.10.0",
4
+ "description": "Nice elements used in olaii angular 1.x webapps.",
5
+ "main": "dist/nice.js",
6
+ "license": "MIT",
7
+ "scripts": {
8
+ "serve": "node server.js",
9
+ "build": "./node_modules/.bin/grunt"
10
+ },
11
+ "dependencies": {
12
+ "@popperjs/core": "2.11.6",
13
+ "angular": "1.5.8",
14
+ "angular-animate": "1.5.8",
15
+ "angular-gettext": "2.4.2",
16
+ "angular-route": "1.5.8",
17
+ "angular-sanitize": "1.5.8",
18
+ "angular-touch": "1.5.8",
19
+ "angular-truncate": "latest",
20
+ "bootstrap": "3.3.7",
21
+ "decimal.js": "4.0.3",
22
+ "font-awesome": "4.3.0",
23
+ "lodash": "3.9.3",
24
+ "moment": "2.24.0",
25
+ "ng-dialog": "0.5.6"
26
+ },
27
+ "devDependencies": {
28
+ "express": "4.17.1",
29
+ "grunt": "1.6.1",
30
+ "grunt-angular-templates": "1.2.0",
31
+ "grunt-contrib-clean": "2.0.0",
32
+ "grunt-contrib-concat": "1.0.1",
33
+ "grunt-contrib-cssmin": "4.0.0",
34
+ "grunt-contrib-jshint": "3.0.0",
35
+ "grunt-contrib-uglify": "5.0.1",
36
+ "grunt-sass": "3.1.0",
37
+ "load-grunt-tasks": "5.1.0",
38
+ "node-sass": "9.0.0"
39
+ }
40
+ }
@@ -1,5 +1,5 @@
1
- <button type="{{ type }}" class="nice-component nice-button btn btn-primary" ng-class="{ 'margin-bottom-0' : noMargin }" ng-click="click()" ng-disabled="niceDisabled == true">
2
- <nice-icon icon="{{ icon }}" ng-if="icon" ng-class="{ 'opacity-0': loading }"></nice-icon>
3
- <span ng-if="showSlot" ng-transclude ng-class="{ 'opacity-0': loading }"></span>
4
- <nice-loader ng-if="loading" fulldiv="true" class="nice-button-loader"></nice-loader>
1
+ <button type="{{ type }}" class="nice-component nice-button btn btn-primary" ng-class="{ 'margin-bottom-0' : noMargin }" ng-click="click()" ng-disabled="niceDisabled == true">
2
+ <nice-icon icon="{{ icon }}" ng-if="icon" ng-class="{ 'opacity-0': loading }"></nice-icon>
3
+ <span ng-if="showSlot" ng-transclude ng-class="{ 'opacity-0': loading }"></span>
4
+ <nice-loader ng-if="loading" fulldiv="true" class="nice-button-loader"></nice-loader>
5
5
  </button>
@@ -1,41 +1,41 @@
1
-
2
- /**
3
- * @ngdoc directive
4
- * @name niceElements.directive:niceButton
5
- * @description
6
- * # niceButton
7
- */
8
- angular.module('niceElements')
9
- .directive('niceButton', function ($q) {
10
- return {
11
- templateUrl: 'src/components/nice-button/nice-button.html',
12
- restrict: 'E',
13
- transclude: true,
14
- replace: true,
15
- scope: {
16
- title: '@',
17
- icon: '@?',
18
- noMargin: '=',
19
- niceClick: '&',
20
- niceDisabled: '=',
21
- addClass: '@',
22
- type: '@?'
23
- },
24
- controller: function ($q, $scope, $transclude) {
25
- if ($scope.addClass != undefined) console.warn("[NICE ELEMENTS] Nice button: add-class attribute is deprecated")
26
- if (!$scope.type) $scope.type = "button";
27
- $scope.showSlot = $transclude().length > 0;
28
- $scope.loading = false;
29
-
30
- $scope.click = function () {
31
- if ($scope.loading === false && $scope.niceDisabled !== true) {
32
- $scope.loading = true;
33
-
34
- $q.when($scope.niceClick()).finally(function () {
35
- $scope.loading = false;
36
- });
37
- }
38
- };
39
- }
40
- };
41
- });
1
+
2
+ /**
3
+ * @ngdoc directive
4
+ * @name niceElements.directive:niceButton
5
+ * @description
6
+ * # niceButton
7
+ */
8
+ angular.module('niceElements')
9
+ .directive('niceButton', function () {
10
+ return {
11
+ templateUrl: 'src/components/nice-button/nice-button.html',
12
+ restrict: 'E',
13
+ transclude: true,
14
+ replace: true,
15
+ scope: {
16
+ title: '@',
17
+ icon: '@?',
18
+ noMargin: '=',
19
+ niceClick: '&',
20
+ niceDisabled: '=',
21
+ addClass: '@',
22
+ type: '@?'
23
+ },
24
+ controller: function ($q, $scope, $transclude) {
25
+ if ($scope.addClass != undefined) console.warn("[NICE ELEMENTS] Nice button: add-class attribute is deprecated")
26
+ if (!$scope.type) $scope.type = "button";
27
+ $scope.showSlot = $transclude().length > 0;
28
+ $scope.loading = false;
29
+
30
+ $scope.click = function () {
31
+ if ($scope.loading === false && $scope.niceDisabled !== true) {
32
+ $scope.loading = true;
33
+
34
+ $q.when($scope.niceClick()).finally(function () {
35
+ $scope.loading = false;
36
+ });
37
+ }
38
+ };
39
+ }
40
+ };
41
+ });
@@ -1,17 +1,17 @@
1
- .nice-button {
2
- position: relative;
3
-
4
- .opacity-0 {
5
- opacity: 0.2;
6
- }
7
-
8
- .nice-button-loader {
9
- background: transparent;
10
- color: white;
11
-
12
- svg {
13
- width: 20px;
14
- height: 20px;
15
- }
16
- }
1
+ .nice-button {
2
+ position: relative;
3
+
4
+ .opacity-0 {
5
+ opacity: 0.2;
6
+ }
7
+
8
+ .nice-button-loader {
9
+ background: transparent;
10
+ color: white;
11
+
12
+ svg {
13
+ width: 20px;
14
+ height: 20px;
15
+ }
16
+ }
17
17
  }
@@ -1,9 +1,9 @@
1
- <div class="nice-component nice-button-toggle row">
2
- <div class="col-xs-offset-4 col-xs-8">
3
- <button type="button" class="btn btn-block btn-primary" ng-click="model = !model">
4
- <span>{{ label }}</span>
5
- <span ng-show="!model" class="glyphicon glyphicon-menu-down"></span>
6
- <span ng-show="model" class="glyphicon glyphicon-menu-up"></span>
7
- </button>
8
- </div>
9
- </div>
1
+ <div class="nice-component nice-button-toggle row">
2
+ <div class="col-xs-offset-4 col-xs-8">
3
+ <button type="button" class="btn btn-block btn-primary" ng-click="model = !model">
4
+ <span>{{ label }}</span>
5
+ <span ng-show="!model" class="glyphicon glyphicon-menu-down"></span>
6
+ <span ng-show="model" class="glyphicon glyphicon-menu-up"></span>
7
+ </button>
8
+ </div>
9
+ </div>
@@ -1,23 +1,23 @@
1
-
2
- /**
3
- * @ngdoc directive
4
- * @name niceElements.directive:niceButtonToggle
5
- * @description
6
- * # niceButtonToggle
7
- */
8
- angular.module('niceElements')
9
- .directive('niceButtonToggle', function () {
10
- return {
11
- templateUrl: 'src/components/nice-button-toggle/nice-button-toggle.html',
12
- restrict: 'E',
13
- scope: {
14
- model: '=?',
15
- label: '@'
16
- },
17
- link: function postLink(scope, element, attrs) {
18
- if (angular.isDefined(scope.model)){
19
- scope.model = false;
20
- }
21
- }
22
- };
23
- });
1
+
2
+ /**
3
+ * @ngdoc directive
4
+ * @name niceElements.directive:niceButtonToggle
5
+ * @description
6
+ * # niceButtonToggle
7
+ */
8
+ angular.module('niceElements')
9
+ .directive('niceButtonToggle', function () {
10
+ return {
11
+ templateUrl: 'src/components/nice-button-toggle/nice-button-toggle.html',
12
+ restrict: 'E',
13
+ scope: {
14
+ model: '=?',
15
+ label: '@'
16
+ },
17
+ link: function postLink(scope, element, attrs) {
18
+ if (angular.isDefined(scope.model)){
19
+ scope.model = false;
20
+ }
21
+ }
22
+ };
23
+ });
@@ -1,3 +1,3 @@
1
- .nice-button-toggle{
2
- margin-bottom: 10px;
1
+ .nice-button-toggle{
2
+ margin-bottom: 10px;
3
3
  }
@@ -1,92 +1,92 @@
1
- <div class="nice-component nice-calendar" ng-form="formCalendar" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
2
- <div class="row">
3
- <!------------------------- Title ------------------------->
4
- <nice-title text="title" help="help" required="required" label-width="labelWidth"></nice-title>
5
-
6
- <!------------------------- Field ------------------------->
7
- <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
8
- <div class="disabled-shield" ng-if="isDisabled"></div>
9
-
10
- <div class="nice-calendar-wrapper">
11
- <div class="nice-calendar-weeks">
12
- <div class="header">
13
- <button type="button" class="btn" type="button" ng-click="previous()" title="{{ 'Previous month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-left"></i></button>
14
- <span title="{{ month.format('M.YYYY' )}}">{{ month.format("MMMM, YYYY" )}}</span>
15
- <button type="button" class="btn" type="button" ng-click="next()" title="{{ 'Next month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-right"></i></button>
16
- </div>
17
-
18
- <div class="week names">
19
- <span class="day" translate translate-context="Nice">Mon</span>
20
- <span class="day" translate translate-context="Nice">Tue</span>
21
- <span class="day" translate translate-context="Nice">Wed</span>
22
- <span class="day" translate translate-context="Nice">Thu</span>
23
- <span class="day" translate translate-context="Nice">Fri</span>
24
- <span class="day weekend" translate translate-context="Nice">Sat</span>
25
- <span class="day weekend" translate translate-context="Nice">Sun</span>
26
- </div>
27
-
28
- <div class="week" ng-repeat="week in weeks">
29
- <button type="button" class="day" type="button" title="{{ day.date.format('D.M.YYYY') }}" ng-class="{
30
- today: day.isToday,
31
- 'different-month': !day.isCurrentMonth,
32
- 'start-selected': isSameDay(day.date, startDate),
33
- 'end-selected': isSameDay(day.date, endDate),
34
- 'selected': isBetweenRange(day.date),
35
- 'selecting-start': selectStart,
36
- 'selecting-end': !selectStart,
37
- 'weekend': day.isWeekday,
38
- 'disabled': day.isDisabled
39
- }" ng-style="
40
- (color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||
41
- (color && isSameDay(day.date, startDate)) && {'background-color': color } ||
42
- (color && isSameDay(day.date, endDate)) && {'background-color': color }
43
- " ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
44
- {{ day.number }}
45
- <p class="popup" ng-if="!hideHover">{{ popupText }}</p>
46
- </button>
47
- </div>
48
- </div>
49
-
50
-
51
- <div class="nice-calendar-time" ng-if="time">
52
- <div class="time-picker">
53
- <select title="{{ 'Select start time' | translate:'Nice' }}" class="time-picker-hour" ng-model="startDateHour" ng-change="startHourChange(startDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
54
- </select>
55
- </div>
56
-
57
- <div class="time-picker">
58
- <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">
59
- </select>
60
- </div>
61
-
62
- <div class="time-picker-icon">
63
- <!-- <i class="fa fa-clock-o"></i> -->
64
- <nice-icon icon="icon-clock"></nice-icon>
65
- </div>
66
-
67
- <div class="time-picker">
68
- <select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-hour" ng-model="endDateHour" ng-change="endHourChange(endDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
69
- </select>
70
- </div>
71
-
72
- <div class="time-picker no-border-right">
73
- <select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-minute" ng-model="endDateMinute" ng-change="endMinuteChange(endDateMinute)" ng-options="minute for minute in minutes" ng-disabled="isDisabled">
74
- </select>
75
- </div>
76
- </div>
77
-
78
- <div class="nice-selected-dates">
79
- <div class="nice-start-date">
80
- <label translate translate-context="Nice">Start</label>
81
- <div ng-class="startTimeClass">{{ formatDate(startDate) }}</div>
82
- </div>
83
- <div class="nice-end-date">
84
- <label translate translate-context="Nice">End</label>
85
- <div ng-class="endTimeClass">{{ formatDate(endDate) }}</div>
86
- </div>
87
- </div>
88
- </div>
89
- </div>
90
-
91
- </div>
1
+ <div class="nice-component nice-calendar" ng-form="formCalendar" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
2
+ <div class="row">
3
+ <!------------------------- Title ------------------------->
4
+ <nice-title text="title" help="help" required="required" label-width="labelWidth"></nice-title>
5
+
6
+ <!------------------------- Field ------------------------->
7
+ <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
8
+ <div class="disabled-shield" ng-if="isDisabled"></div>
9
+
10
+ <div class="nice-calendar-wrapper">
11
+ <div class="nice-calendar-weeks">
12
+ <div class="header">
13
+ <button type="button" class="btn" type="button" ng-click="previous()" title="{{ 'Previous month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-left"></i></button>
14
+ <span title="{{ month.format('M.YYYY' )}}">{{ month.format("MMMM, YYYY" )}}</span>
15
+ <button type="button" class="btn" type="button" ng-click="next()" title="{{ 'Next month' | translate:'Nice' }}" ng-disabled="isDisabled"><i class="fa fa-angle-right"></i></button>
16
+ </div>
17
+
18
+ <div class="week names">
19
+ <span class="day" translate translate-context="Nice">Mon</span>
20
+ <span class="day" translate translate-context="Nice">Tue</span>
21
+ <span class="day" translate translate-context="Nice">Wed</span>
22
+ <span class="day" translate translate-context="Nice">Thu</span>
23
+ <span class="day" translate translate-context="Nice">Fri</span>
24
+ <span class="day weekend" translate translate-context="Nice">Sat</span>
25
+ <span class="day weekend" translate translate-context="Nice">Sun</span>
26
+ </div>
27
+
28
+ <div class="week" ng-repeat="week in weeks">
29
+ <button type="button" class="day" type="button" title="{{ day.date.format('D.M.YYYY') }}" ng-class="{
30
+ today: day.isToday,
31
+ 'different-month': !day.isCurrentMonth,
32
+ 'start-selected': isSameDay(day.date, startDate),
33
+ 'end-selected': isSameDay(day.date, endDate),
34
+ 'selected': isBetweenRange(day.date),
35
+ 'selecting-start': selectStart,
36
+ 'selecting-end': !selectStart,
37
+ 'weekend': day.isWeekday,
38
+ 'disabled': day.isDisabled
39
+ }" ng-style="
40
+ (color && isBetweenRange(day.date)) && {'background-color': lighten(color) } ||
41
+ (color && isSameDay(day.date, startDate)) && {'background-color': color } ||
42
+ (color && isSameDay(day.date, endDate)) && {'background-color': color }
43
+ " ng-click="select(day)" ng-repeat="day in week.days" ng-disabled="isDisabled">
44
+ {{ day.number }}
45
+ <p class="popup" ng-if="!hideHover">{{ popupText }}</p>
46
+ </button>
47
+ </div>
48
+ </div>
49
+
50
+
51
+ <div class="nice-calendar-time" ng-if="time">
52
+ <div class="time-picker">
53
+ <select title="{{ 'Select start time' | translate:'Nice' }}" class="time-picker-hour" ng-model="startDateHour" ng-change="startHourChange(startDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
54
+ </select>
55
+ </div>
56
+
57
+ <div class="time-picker">
58
+ <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">
59
+ </select>
60
+ </div>
61
+
62
+ <div class="time-picker-icon">
63
+ <!-- <i class="fa fa-clock-o"></i> -->
64
+ <nice-icon icon="icon-clock"></nice-icon>
65
+ </div>
66
+
67
+ <div class="time-picker">
68
+ <select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-hour" ng-model="endDateHour" ng-change="endHourChange(endDateHour)" ng-options="hour for hour in hours" ng-disabled="isDisabled">
69
+ </select>
70
+ </div>
71
+
72
+ <div class="time-picker no-border-right">
73
+ <select title="{{ 'Select end time' | translate:'Nice' }}" class="time-picker-minute" ng-model="endDateMinute" ng-change="endMinuteChange(endDateMinute)" ng-options="minute for minute in minutes" ng-disabled="isDisabled">
74
+ </select>
75
+ </div>
76
+ </div>
77
+
78
+ <div class="nice-selected-dates">
79
+ <div class="nice-start-date">
80
+ <label translate translate-context="Nice">Start</label>
81
+ <div ng-class="startTimeClass">{{ formatDate(startDate) }}</div>
82
+ </div>
83
+ <div class="nice-end-date">
84
+ <label translate translate-context="Nice">End</label>
85
+ <div ng-class="endTimeClass">{{ formatDate(endDate) }}</div>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </div>
90
+
91
+ </div>
92
92
  </div>