nice-elements 1.14.0 → 1.14.1
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 +10 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +16 -11
- package/dist/nice.min.js +1 -1
- package/dist/style.css +36 -2
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- package/src/components/nice-alert/nice-alert.scss +5 -0
- package/src/components/nice-date/nice-date.scss +1 -0
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +1 -0
- package/src/components/nice-dropdown/nice-dropdown.html +3 -3
- package/src/components/nice-dropdown/nice-dropdown.js +5 -0
- package/src/components/nice-dropdown/nice-dropdown.scss +20 -0
- package/src/components/nice-input/nice-input.scss +1 -1
- package/src/components/nice-notification/nice-notification.scss +3 -1
- package/src/components/nice-percent/nice-percent.html +5 -5
- package/src/components/nice-toggle/nice-toggle.html +1 -1
- package/src/components/nice-toggle/nice-toggle.scss +15 -1
- package/src/components/nice-upload/nice-upload.html +1 -1
- package/src/components/nice-upload/nice-upload.scss +3 -0
- package/src/services/nice-service.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.14.1 (11.11.2026)
|
|
4
|
+
|
|
5
|
+
- fixed nice upload progress showing over text,
|
|
6
|
+
- changed nice percentage to look more like nice input type number,
|
|
7
|
+
- worked on nice dropdown multiple select value representation,
|
|
8
|
+
- worked on line height issues,
|
|
9
|
+
- worked on nice notifications style,
|
|
10
|
+
- fixed nice daterange picker 2 left side flex shrink,
|
|
11
|
+
- worked on nice toggle style
|
|
12
|
+
|
|
3
13
|
## v1.14.0 (4.11.2026)
|
|
4
14
|
|
|
5
15
|
- added password toggle to nice input,
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.14.
|
|
3
|
+
# Nice elements v1.14.1
|
|
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
|
@@ -2621,6 +2621,8 @@ angular.module('niceElements')
|
|
|
2621
2621
|
noSearch: '=',
|
|
2622
2622
|
nullableText: '@',
|
|
2623
2623
|
selectedText: '@',
|
|
2624
|
+
maxSelectedShown: '@?', // Multiple: number of selected values shown before "+x more" (default 4)
|
|
2625
|
+
moreText: '@?', // Multiple: text after "+x" (default "more")
|
|
2624
2626
|
dropdownDistance: '@',
|
|
2625
2627
|
searchFunction: '=?',
|
|
2626
2628
|
filterFunction: '=?',
|
|
@@ -2640,6 +2642,9 @@ angular.module('niceElements')
|
|
|
2640
2642
|
if (!$scope.nullableText) { $scope.nullableText = gettextCatalog.getString("None", null, "Nice"); }
|
|
2641
2643
|
if (!$scope.selectText) { $scope.selectText = gettextCatalog.getString("None", null, "Nice"); }
|
|
2642
2644
|
if (!$scope.selectedText) { $scope.selectedText = gettextCatalog.getString("selected", null, "Nice"); }
|
|
2645
|
+
if (!$scope.moreText) { $scope.moreText = gettextCatalog.getString("more", null, "Nice"); }
|
|
2646
|
+
$scope.maxSelectedShown = parseInt($scope.maxSelectedShown, 10);
|
|
2647
|
+
if (isNaN($scope.maxSelectedShown) || $scope.maxSelectedShown < 1) { $scope.maxSelectedShown = 4; }
|
|
2643
2648
|
if (!$scope.addButtonFunction) { $scope.addButtonFunction = null; }
|
|
2644
2649
|
if (!$scope.placement) { $scope.placement = "bottom-start"; }
|
|
2645
2650
|
$scope.noMargin = $scope.noMargin === 'true' || $scope.noMargin === true;
|
|
@@ -6821,7 +6826,7 @@ angular.module('niceElements')
|
|
|
6821
6826
|
.service('NiceService', function ($rootScope) {
|
|
6822
6827
|
const service = {
|
|
6823
6828
|
name: "Nice elements",
|
|
6824
|
-
version: "1.
|
|
6829
|
+
version: "1.14.1",
|
|
6825
6830
|
getHeader: function () {
|
|
6826
6831
|
return {};
|
|
6827
6832
|
},
|
|
@@ -7536,9 +7541,9 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7536
7541
|
" <input class=\"hidden-input\" ng-model=\"model\" ng-required=\"required\" ng-disabled=\"disabled\" tabindex=\"-1\">\n" +
|
|
7537
7542
|
" <div class=\"btn-dropdown-inside\" ng-transclude=\"button\" ng-if=\"selected != null\">\n" +
|
|
7538
7543
|
" <span ng-if=\"!multiple\">{{ selected[objValue] }}</span>\n" +
|
|
7539
|
-
" <span ng-if=\"multiple\">\n" +
|
|
7540
|
-
" <span ng-if=\"selected.length >
|
|
7541
|
-
" <span ng-if=\"selected.length
|
|
7544
|
+
" <span ng-if=\"multiple\" class=\"multiple-selected\" ng-class=\"{ 'has-more': selected.length > maxSelectedShown }\">\n" +
|
|
7545
|
+
" <span ng-if=\"selected.length > 0\" class=\"multiple-selected-values\"><span ng-repeat=\"item in selected | limitTo: maxSelectedShown\">{{ item[objValue] }}{{ $last ? '' : ', ' }}</span></span>\n" +
|
|
7546
|
+
" <span ng-if=\"selected.length > maxSelectedShown\" class=\"multiple-selected-more\">+{{ selected.length - maxSelectedShown }} {{ moreText }}</span>\n" +
|
|
7542
7547
|
" <span ng-if=\"selected.length == 0\" class=\"not-selected\">{{ nullableText }}</span>\n" +
|
|
7543
7548
|
" </span>\n" +
|
|
7544
7549
|
" </div>\n" +
|
|
@@ -7882,7 +7887,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7882
7887
|
|
|
7883
7888
|
|
|
7884
7889
|
$templateCache.put('src/components/nice-percent/nice-percent.html',
|
|
7885
|
-
"<ng-form class=\"nice-component nice-input\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
7890
|
+
"<ng-form class=\"nice-component nice-percent nice-input nice-input-type-number\" ng-class=\"{ 'margin-bottom-0' : noMargin, 'nice-component-inline': isInline }\" name=\"form\">\n" +
|
|
7886
7891
|
" <div class=\"row\">\n" +
|
|
7887
7892
|
" \n" +
|
|
7888
7893
|
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
@@ -7890,10 +7895,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
7890
7895
|
" \n" +
|
|
7891
7896
|
" <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
|
|
7892
7897
|
" <div class=\"input-group has-feedback symbol\" ng-class=\"{\n" +
|
|
7893
|
-
"
|
|
7894
|
-
"
|
|
7895
|
-
"
|
|
7896
|
-
"
|
|
7898
|
+
" 'has-warning': !isDisabled && form.$invalid && form.$dirty && !hideValid,\n" +
|
|
7899
|
+
" 'has-success': !isDisabled && form.$valid && form.$dirty && showValid,\n" +
|
|
7900
|
+
" 'disabled': isDisabled\n" +
|
|
7901
|
+
" }\">\n" +
|
|
7897
7902
|
" <input class=\"form-control\" type=\"text\" max=\"100\" min=\"0\" ng-model=\"internalModel\" placeholder=\"{{ placeholder }}\" ng-required=\"required\" ng-keypress=\"keypress($event)\" ng-change=\"change()\" ng-disabled=\"isDisabled\">\n" +
|
|
7898
7903
|
" <span class=\"input-group-addon\">%</span>\n" +
|
|
7899
7904
|
" \n" +
|
|
@@ -9544,7 +9549,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
9544
9549
|
" <button type=\"button\" class=\"nice-toggle-field\" ng-click=\"toggle()\" ng-disabled=\"isDisabled\">\n" +
|
|
9545
9550
|
" <div class=\"nice-toggle-field-handle\">\n" +
|
|
9546
9551
|
" <nice-icon ng-if=\"showIcons && model\" icon=\"icon-check\"></nice-icon>\n" +
|
|
9547
|
-
"
|
|
9552
|
+
" \n" +
|
|
9548
9553
|
" </div>\n" +
|
|
9549
9554
|
" </button>\n" +
|
|
9550
9555
|
" </div>\n" +
|
|
@@ -9570,7 +9575,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
9570
9575
|
" <div class=\"text text-placeholder\" ng-if=\"dragging\" translate translate-group=\"Nice\">Drop file here</div>\n" +
|
|
9571
9576
|
" <div class=\"error\" ng-if=\"error\">{{ error }}</div>\n" +
|
|
9572
9577
|
" </div>\n" +
|
|
9573
|
-
" <div ng-if=\"imageSource\" ng-transclude>\n" +
|
|
9578
|
+
" <div ng-if=\"imageSource && !(loading && uploadProgress != null)\" ng-transclude>\n" +
|
|
9574
9579
|
" <img data-ng-src=\"{{ imageSource }}\">\n" +
|
|
9575
9580
|
" </div>\n" +
|
|
9576
9581
|
" </div>\n" +
|