nice-elements 1.12.4 → 1.12.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.
@@ -88,7 +88,7 @@ angular.module('niceElements')
88
88
  { value: 9, name: gettextCatalog.getString("October", null, "Nice") },
89
89
  { value: 10, name: gettextCatalog.getString("November", null, "Nice") },
90
90
  { value: 11, name: gettextCatalog.getString("December", null, "Nice") }
91
- ]
91
+ ];
92
92
 
93
93
  if ($scope.maxDate) $scope.maxDate = moment($scope.maxDate);
94
94
  if ($scope.minDate) $scope.minDate = moment($scope.minDate);
@@ -259,7 +259,7 @@ angular.module('niceElements')
259
259
  // ------------------ Build month ------------------
260
260
  $scope._buildMonth = function () {
261
261
  let done = false;
262
- const date = angular.copy($scope.innerDate.date).startOf("month").startOf('week');
262
+ const date = angular.copy($scope.innerDate.date).startOf("month").startOf('week').isoWeekday(1);
263
263
  let monthIndex = date.month();
264
264
  let count = 0;
265
265
 
@@ -1,7 +1,7 @@
1
1
  <ng-form class="nice-component nice-input" ng-class="{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }" name="forma">
2
2
  <div class="row">
3
3
  <!------------------------- Title ------------------------->
4
- <nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
4
+ <nice-title text="title || niceTitle" help="help" required="required" description="description" label-width="labelWidth"></nice-title>
5
5
 
6
6
  <!------------------------- Field ------------------------->
7
7
  <div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
@@ -10,6 +10,7 @@ angular.module('niceElements')
10
10
  isDisabled: '=',
11
11
  type: '@',
12
12
  title: '@?',
13
+ description: '@?',
13
14
  niceTitle: '@?',
14
15
  regex: '@?',
15
16
  regexRaw: '@?',
@@ -1,4 +1,7 @@
1
1
  <div class="nice-title col-xs-12" ng-class="[labelWidth ? labelWidth : 'col-sm-4', {'nice-title-empty': !text && !help} ]" ng-if="text">
2
- <div class="nice-title-text">{{ text }}<span class="nice-title-required" ng-if="required">*</span></div>
2
+ <div class="nice-title-inner">
3
+ <div class="nice-title-text">{{ text }}<span class="nice-title-required" ng-if="required">*</span></div>
4
+ <div class="nice-title-description" ng-if="description">{{ description }}</div>
5
+ </div>
3
6
  <nice-help class="nice-title-help" ng-if="help" text="{{ help }}"></nice-help>
4
7
  </div>
@@ -14,6 +14,7 @@ angular.module('niceElements')
14
14
  scope: {
15
15
  labelWidth: '=?',
16
16
  text: '=?',
17
+ description: '=?',
17
18
  required: '=?',
18
19
  help: '=?'
19
20
  }
@@ -1,7 +1,7 @@
1
1
  <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">
2
2
  <div class="row">
3
3
  <!------------------------- Title ------------------------->
4
- <nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
4
+ <nice-title text="title || niceTitle" help="help" required="required" description="description" label-width="labelWidth"></nice-title>
5
5
 
6
6
  <!------------------------- Field ------------------------->
7
7
  <div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
@@ -15,6 +15,7 @@ angular.module('niceElements')
15
15
  model: '=',
16
16
  niceTitle: '@',
17
17
  title: '@',
18
+ description: '@?',
18
19
  isDisabled: '=',
19
20
  fieldWidth: '@',
20
21
  labelWidth: '@',
@@ -10,7 +10,7 @@ angular.module('niceElements')
10
10
  .service('NiceService', function ($rootScope) {
11
11
  const service = {
12
12
  name: "Nice elements",
13
- version: "1.12.4",
13
+ version: "1.12.5",
14
14
  getHeader: function () {
15
15
  return {};
16
16
  },
@@ -119,6 +119,7 @@ label.nice {
119
119
  display: flex;
120
120
  justify-content: flex-end;
121
121
  align-items: center;
122
+ gap: 5px;
122
123
  min-height: 34px;
123
124
 
124
125
  .nice-title-text {
@@ -126,6 +127,11 @@ label.nice {
126
127
  color: $nice-label-color;
127
128
  }
128
129
 
130
+ .nice-title-description {
131
+ font-size: 0.8em;
132
+ font-style: italic;
133
+ }
134
+
129
135
  .nice-title-required {
130
136
  color: var(--nice-danger-color);
131
137
  padding-left: 1px;