nice-elements 1.7.1 → 1.7.2

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.7.2 (15.12.2022)
4
+
5
+ - fixed nice dropdown alignment,
6
+ - fixed input addon border color on focus,
7
+ - fixed nice highlight null value,
8
+ - added more button icon and text margins,
9
+ - added addSeconds to niceDate filter,
10
+ - added filters example page
11
+
3
12
  ## v1.7.1 (8.12.2022)
4
13
 
5
14
  - fixed nice-date-input,
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Nice elements](/demo/assets/logo.png)
2
2
 
3
- # Nice elements v1.7.1
3
+ # Nice elements v1.7.2
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.7.1",
3
+ "version": "1.7.2",
4
4
  "authors": [
5
5
  "Klemen Kastelic <klemen@olaii.com>"
6
6
  ],
package/dist/nice.js CHANGED
@@ -5394,9 +5394,12 @@ angular.module('niceElements')
5394
5394
  * Filter in the niceElements.
5395
5395
  */
5396
5396
  angular.module('niceElements').filter('niceDate', function () {
5397
- return function(object, addDate) {
5397
+ return function (object, addTime, addSeconds) {
5398
5398
  var formatString = "D.M.YYYY";
5399
- if (addDate) formatString = "D.M.YYYY • H:mm";
5399
+ if (addTime) {
5400
+ formatString = "D.M.YYYY • H:mm";
5401
+ if (addSeconds) formatString += ":ss";
5402
+ }
5400
5403
  return moment(object).format(formatString);
5401
5404
  };
5402
5405
  });
@@ -5410,6 +5413,7 @@ angular.module('niceElements').filter('niceDate', function () {
5410
5413
  */
5411
5414
  angular.module('niceElements').filter('niceHighlight', function () {
5412
5415
  return function (value, highlightedText) {
5416
+ if (!value) return "";
5413
5417
  var regex = new RegExp(highlightedText, 'gmi');
5414
5418
  var newValue = String(value).replace(regex, "<span class='nice-highligh'>$&</span>");
5415
5419
  return newValue;