nice-elements 1.9.10 → 1.9.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.
- package/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +19 -17
- package/dist/nice.min.js +1 -1
- package/dist/style.css +5225 -376
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +5 -5
- package/src/components/nice-checkbox/nice-checkbox.html +4 -4
- package/src/components/nice-checkbox/nice-checkbox.js +1 -0
- package/src/components/nice-checkbox/nice-checkbox.scss +25 -19
- package/src/components/nice-input/nice-input.js +1 -1
- package/src/services/nice-service.js +1 -1
- package/src/styles/_nice-spacing.scss +216 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.9.12 (7.12.2023)
|
|
4
|
+
|
|
5
|
+
- added title on left prop to nice checkbox,
|
|
6
|
+
- added responsive spacings
|
|
7
|
+
|
|
8
|
+
## v1.9.11 (7.12.2023)
|
|
9
|
+
|
|
10
|
+
- fixed nice input model default 0
|
|
11
|
+
|
|
3
12
|
## v1.9.10 (5.12.2023)
|
|
4
13
|
|
|
5
14
|
- fixed default number is null instead of 0
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.9.
|
|
3
|
+
# Nice elements v1.9.12
|
|
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
|
@@ -418,6 +418,7 @@ angular.module('niceElements')
|
|
|
418
418
|
scope: {
|
|
419
419
|
model: '=',
|
|
420
420
|
title: '@',
|
|
421
|
+
titleOnLeft: '=',
|
|
421
422
|
noMargin: '@',
|
|
422
423
|
clickDisabled: '@',
|
|
423
424
|
onChange: '&?',
|
|
@@ -3709,6 +3710,7 @@ angular.module('niceElements')
|
|
|
3709
3710
|
templateUrl: 'src/components/nice-input/nice-input.html',
|
|
3710
3711
|
restrict: 'E',
|
|
3711
3712
|
transclude: true,
|
|
3713
|
+
// replace: true,
|
|
3712
3714
|
scope: {
|
|
3713
3715
|
model: '=',
|
|
3714
3716
|
valid: '=',
|
|
@@ -3791,7 +3793,7 @@ angular.module('niceElements')
|
|
|
3791
3793
|
} else if (attrs.type == "number") {
|
|
3792
3794
|
scope.internalType = "text";
|
|
3793
3795
|
scope.inputMode = "decimal";
|
|
3794
|
-
if (scope.model) {
|
|
3796
|
+
if (scope.model != null) {
|
|
3795
3797
|
scope.model = Number(scope.model);
|
|
3796
3798
|
} else {
|
|
3797
3799
|
scope.model = null;
|
|
@@ -5833,7 +5835,7 @@ angular.module('niceElements')
|
|
|
5833
5835
|
.service('NiceService', function () {
|
|
5834
5836
|
var service = {
|
|
5835
5837
|
name: "Nice elements",
|
|
5836
|
-
version: "1.9.
|
|
5838
|
+
version: "1.9.12",
|
|
5837
5839
|
getHeader: function () {
|
|
5838
5840
|
return {};
|
|
5839
5841
|
}
|
|
@@ -6016,11 +6018,11 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
|
|
|
6016
6018
|
|
|
6017
6019
|
|
|
6018
6020
|
$templateCache.put('src/components/nice-checkbox/nice-checkbox.html',
|
|
6019
|
-
"<div class=\"nice-component nice-checkbox\" ng-class=\"{ 'checked': model, 'margin-bottom-0' : noMargin, 'nice-checkbox-disabled': isDisabled }\" ng-click=\"toggle()\">\n" +
|
|
6020
|
-
"<button class=\"btn checkbox\" type=\"button\" ng-disabled=\"isDisabled\">\n" +
|
|
6021
|
-
"<nice-icon class=\"check\" icon=\"icon-check\"></nice-icon>\n" +
|
|
6021
|
+
"<div class=\"nice-component nice-checkbox\" ng-class=\"{ 'nice-checkbox-checked': model, 'margin-bottom-0' : noMargin, 'nice-checkbox-disabled': isDisabled, 'nice-checkbox-left': titleOnLeft }\" ng-click=\"toggle()\">\n" +
|
|
6022
|
+
"<button class=\"btn nice-checkbox-checkbox\" type=\"button\" ng-disabled=\"isDisabled\">\n" +
|
|
6023
|
+
"<nice-icon class=\"nice-checkbox-check\" icon=\"icon-check\"></nice-icon>\n" +
|
|
6022
6024
|
"</button>\n" +
|
|
6023
|
-
"<div ng-if=\"title\" class=\"message\" ng-class=\"{ 'nice-disabled': isDisabled }\">{{ title }}</div>\n" +
|
|
6025
|
+
"<div ng-if=\"title\" class=\"nice-checkbox-message\" ng-class=\"{ 'nice-disabled': isDisabled }\">{{ title }}</div>\n" +
|
|
6024
6026
|
"</div>"
|
|
6025
6027
|
);
|
|
6026
6028
|
|
|
@@ -6516,14 +6518,14 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
|
|
|
6516
6518
|
|
|
6517
6519
|
|
|
6518
6520
|
$templateCache.put('src/components/nice-input/nice-input.html',
|
|
6519
|
-
"<
|
|
6521
|
+
"<div class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" ng-form=\"inputForm\">\n" +
|
|
6520
6522
|
"<div class=\"row\">\n" +
|
|
6521
6523
|
"<nice-title text=\"title\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6522
6524
|
"<div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
6523
6525
|
"<div class=\"input-group\" ng-class=\"{\n" +
|
|
6524
6526
|
" 'has-feedback': showValid && !hideValid,\n" +
|
|
6525
|
-
" 'has-warning': !isDisabled &&
|
|
6526
|
-
" 'has-success': !isDisabled &&
|
|
6527
|
+
" 'has-warning': !isDisabled && inputForm.$invalid && inputForm.$dirty && !hideValid,\n" +
|
|
6528
|
+
" 'has-success': !isDisabled && inputForm.$valid && inputForm.$dirty && showValid,\n" +
|
|
6527
6529
|
" 'symbol': symbol,\n" +
|
|
6528
6530
|
" 'nice-disabled': isDisabled\n" +
|
|
6529
6531
|
" }\">\n" +
|
|
@@ -6538,22 +6540,22 @@ angular.module('niceElements').run(['$templateCache', function ($templateCache)
|
|
|
6538
6540
|
"<nice-icon icon=\"icon-x\"></nice-icon>\n" +
|
|
6539
6541
|
"</button>\n" +
|
|
6540
6542
|
"</div>\n" +
|
|
6541
|
-
"<div ng-if=\"
|
|
6542
|
-
"<div class=\"error-message\" ng-if=\"
|
|
6543
|
-
"<div class=\"error-message\" ng-if=\"
|
|
6543
|
+
"<div ng-if=\"inputForm.$error && inputForm.$dirty\">\n" +
|
|
6544
|
+
"<div class=\"error-message\" ng-if=\"inputForm.$dirty && inputForm.$error.email\" translate translate-context=\"Nice\">Email is not valid.</div>\n" +
|
|
6545
|
+
"<div class=\"error-message\" ng-if=\"inputForm.$dirty && inputForm.$error.pattern\">\n" +
|
|
6544
6546
|
"<span ng-if=\"regexError\">{{ regexError }}</span>\n" +
|
|
6545
6547
|
"<span ng-if=\"!regexError\" translate translate-context=\"Nice\">This field requires a specific pattern.</span>\n" +
|
|
6546
6548
|
"</div>\n" +
|
|
6547
|
-
"<div class=\"error-message\" ng-if=\"
|
|
6549
|
+
"<div class=\"error-message\" ng-if=\"inputForm.$error.minlength\">\n" +
|
|
6548
6550
|
"<translate translate-context=\"Nice\">Your input is too short. It must contain at least</translate> {{ minlength }} <translate translate-context=\"Nice\">characters</translate>.\n" +
|
|
6549
6551
|
"</div>\n" +
|
|
6550
|
-
"<div class=\"error-message\" ng-if=\"
|
|
6551
|
-
"<div class=\"error-message\" ng-if=\"
|
|
6552
|
-
"<div class=\"error-message\" ng-if=\"
|
|
6552
|
+
"<div class=\"error-message\" ng-if=\"inputForm.$error.maxlength\" translate translate-context=\"Nice\">Your input is too long</div>\n" +
|
|
6553
|
+
"<div class=\"error-message\" ng-if=\"inputForm.$error.required\" ng-if=\"inputForm.$dirty\" translate translate-context=\"Nice\">This field is required.</div>\n" +
|
|
6554
|
+
"<div class=\"error-message\" ng-if=\"inputForm.$error.unique\" translate translate-context=\"Nice\">This field must be unique.</div>\n" +
|
|
6553
6555
|
"</div>\n" +
|
|
6554
6556
|
"</div>\n" +
|
|
6555
6557
|
"</div>\n" +
|
|
6556
|
-
"</
|
|
6558
|
+
"</div>"
|
|
6557
6559
|
);
|
|
6558
6560
|
|
|
6559
6561
|
|