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.
- package/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +12 -6
- package/dist/nice.min.js +1 -1
- package/dist/style.css +6 -0
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +1 -1
- package/package.json +1 -1
- package/src/components/nice-date/nice-date.js +2 -2
- package/src/components/nice-input/nice-input.html +1 -1
- package/src/components/nice-input/nice-input.js +1 -0
- package/src/components/nice-title/nice-title.html +4 -1
- package/src/components/nice-title/nice-title.js +1 -0
- package/src/components/nice-toggle/nice-toggle.html +1 -1
- package/src/components/nice-toggle/nice-toggle.js +1 -0
- package/src/services/nice-service.js +1 -1
- package/src/styles/_nice-common.scss +6 -0
|
@@ -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'">
|
|
@@ -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-
|
|
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>
|
|
@@ -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 }]">
|
|
@@ -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;
|