nice-elements 1.9.11 → 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 CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## v1.9.11 (7.12.2023)
4
9
 
5
10
  - fixed nice input model default 0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Nice elements](https://github.com/Klemen1337/angularjs-nice-elements/raw/master/demo/assets/logo.png)
2
2
 
3
- # Nice elements v1.9.11
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.9.11",
3
+ "version": "1.9.12",
4
4
  "authors": [
5
5
  "Klemen Kastelic <klemen@olaii.com>"
6
6
  ],
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: '=',
@@ -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.11",
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
- "<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"forma\">\n" +
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 && forma.$invalid && forma.$dirty && !hideValid,\n" +
6526
- " 'has-success': !isDisabled && forma.$valid && forma.$dirty && showValid,\n" +
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=\"forma.$error && forma.$dirty\">\n" +
6542
- "<div class=\"error-message\" ng-if=\"forma.$dirty && forma.$error.email\" translate translate-context=\"Nice\">Email is not valid.</div>\n" +
6543
- "<div class=\"error-message\" ng-if=\"forma.$dirty && forma.$error.pattern\">\n" +
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=\"forma.$error.minlength\">\n" +
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>&nbsp;{{ minlength }}&nbsp;<translate translate-context=\"Nice\">characters</translate>.\n" +
6549
6551
  "</div>\n" +
6550
- "<div class=\"error-message\" ng-if=\"forma.$error.maxlength\" translate translate-context=\"Nice\">Your input is too long</div>\n" +
6551
- "<div class=\"error-message\" ng-if=\"forma.$error.required\" ng-if=\"forma.$dirty\" translate translate-context=\"Nice\">This field is required.</div>\n" +
6552
- "<div class=\"error-message\" ng-if=\"forma.$error.unique\" translate translate-context=\"Nice\">This field must be unique.</div>\n" +
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
- "</ng-form>"
6558
+ "</div>"
6557
6559
  );
6558
6560
 
6559
6561