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
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.12.
|
|
3
|
+
# Nice elements v1.12.5
|
|
4
4
|
|
|
5
5
|
Nice elements is an AngularJS v1.5.8 module that contains nice form elements like inputs, choice fields, search, toggle, dropdown, etc.
|
|
6
6
|
|
package/bower.json
CHANGED
package/dist/nice.js
CHANGED
|
@@ -1167,7 +1167,7 @@ angular.module('niceElements')
|
|
|
1167
1167
|
{ value: 9, name: gettextCatalog.getString("October", null, "Nice") },
|
|
1168
1168
|
{ value: 10, name: gettextCatalog.getString("November", null, "Nice") },
|
|
1169
1169
|
{ value: 11, name: gettextCatalog.getString("December", null, "Nice") }
|
|
1170
|
-
]
|
|
1170
|
+
];
|
|
1171
1171
|
|
|
1172
1172
|
if ($scope.maxDate) $scope.maxDate = moment($scope.maxDate);
|
|
1173
1173
|
if ($scope.minDate) $scope.minDate = moment($scope.minDate);
|
|
@@ -1338,7 +1338,7 @@ angular.module('niceElements')
|
|
|
1338
1338
|
// ------------------ Build month ------------------
|
|
1339
1339
|
$scope._buildMonth = function () {
|
|
1340
1340
|
let done = false;
|
|
1341
|
-
const date = angular.copy($scope.innerDate.date).startOf("month").startOf('week');
|
|
1341
|
+
const date = angular.copy($scope.innerDate.date).startOf("month").startOf('week').isoWeekday(1);
|
|
1342
1342
|
let monthIndex = date.month();
|
|
1343
1343
|
let count = 0;
|
|
1344
1344
|
|
|
@@ -3852,6 +3852,7 @@ angular.module('niceElements')
|
|
|
3852
3852
|
isDisabled: '=',
|
|
3853
3853
|
type: '@',
|
|
3854
3854
|
title: '@?',
|
|
3855
|
+
description: '@?',
|
|
3855
3856
|
niceTitle: '@?',
|
|
3856
3857
|
regex: '@?',
|
|
3857
3858
|
regexRaw: '@?',
|
|
@@ -5587,6 +5588,7 @@ angular.module('niceElements')
|
|
|
5587
5588
|
scope: {
|
|
5588
5589
|
labelWidth: '=?',
|
|
5589
5590
|
text: '=?',
|
|
5591
|
+
description: '=?',
|
|
5590
5592
|
required: '=?',
|
|
5591
5593
|
help: '=?'
|
|
5592
5594
|
}
|
|
@@ -5667,6 +5669,7 @@ angular.module('niceElements')
|
|
|
5667
5669
|
model: '=',
|
|
5668
5670
|
niceTitle: '@',
|
|
5669
5671
|
title: '@',
|
|
5672
|
+
description: '@?',
|
|
5670
5673
|
isDisabled: '=',
|
|
5671
5674
|
fieldWidth: '@',
|
|
5672
5675
|
labelWidth: '@',
|
|
@@ -6258,7 +6261,7 @@ angular.module('niceElements')
|
|
|
6258
6261
|
.service('NiceService', function ($rootScope) {
|
|
6259
6262
|
const service = {
|
|
6260
6263
|
name: "Nice elements",
|
|
6261
|
-
version: "1.12.
|
|
6264
|
+
version: "1.12.5",
|
|
6262
6265
|
getHeader: function () {
|
|
6263
6266
|
return {};
|
|
6264
6267
|
},
|
|
@@ -7089,7 +7092,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7089
7092
|
"<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"forma\">\n" +
|
|
7090
7093
|
" <div class=\"row\">\n" +
|
|
7091
7094
|
" \n" +
|
|
7092
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7095
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
7093
7096
|
"\n" +
|
|
7094
7097
|
" \n" +
|
|
7095
7098
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
@@ -8797,7 +8800,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
8797
8800
|
|
|
8798
8801
|
$templateCache.put('src/components/nice-title/nice-title.html',
|
|
8799
8802
|
"<div class=\"nice-title col-xs-12\" ng-class=\"[labelWidth ? labelWidth : 'col-sm-4', {'nice-title-empty': !text && !help} ]\" ng-if=\"text\">\n" +
|
|
8800
|
-
" <div class=\"nice-title-
|
|
8803
|
+
" <div class=\"nice-title-inner\">\n" +
|
|
8804
|
+
" <div class=\"nice-title-text\">{{ text }}<span class=\"nice-title-required\" ng-if=\"required\">*</span></div>\n" +
|
|
8805
|
+
" <div class=\"nice-title-description\" ng-if=\"description\">{{ description }}</div>\n" +
|
|
8806
|
+
" </div>\n" +
|
|
8801
8807
|
" <nice-help class=\"nice-title-help\" ng-if=\"help\" text=\"{{ help }}\"></nice-help>\n" +
|
|
8802
8808
|
"</div>"
|
|
8803
8809
|
);
|
|
@@ -8814,7 +8820,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
8814
8820
|
"<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\">\n" +
|
|
8815
8821
|
" <div class=\"row\">\n" +
|
|
8816
8822
|
" \n" +
|
|
8817
|
-
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
8823
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
8818
8824
|
"\n" +
|
|
8819
8825
|
" \n" +
|
|
8820
8826
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|