nice-elements 1.12.6 → 1.12.8
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/.vscode/settings.json +18 -18
- package/CHANGELOG.md +568 -557
- package/LICENSE.md +21 -21
- package/README.md +98 -98
- package/bower.json +17 -17
- package/dist/nice.js +11585 -8987
- package/dist/nice.min.js +1 -1
- package/dist/style.css +15 -8
- package/dist/style.css.map +2 -1
- package/dist/style.min.css +8 -8
- package/eslint.config.mjs +32 -32
- package/package.json +44 -44
- package/src/components/nice-alert/nice-alert.html +6 -6
- package/src/components/nice-alert/nice-alert.js +29 -29
- package/src/components/nice-alert/nice-alert.scss +59 -59
- package/src/components/nice-avatar/nice-avatar.html +1 -0
- package/src/components/nice-avatar/nice-avatar.js +122 -0
- package/src/components/nice-avatar/nice-avatar.scss +5 -0
- package/src/components/nice-button/nice-button.html +4 -4
- package/src/components/nice-button/nice-button.js +41 -41
- package/src/components/nice-button/nice-button.scss +16 -16
- package/src/components/nice-button-toggle/nice-button-toggle.html +9 -9
- package/src/components/nice-button-toggle/nice-button-toggle.js +23 -23
- package/src/components/nice-button-toggle/nice-button-toggle.scss +2 -2
- package/src/components/nice-calendar/nice-calendar.html +91 -91
- package/src/components/nice-calendar/nice-calendar.js +346 -346
- package/src/components/nice-calendar/nice-calendar.scss +288 -288
- package/src/components/nice-checkbox/nice-checkbox.html +9 -9
- package/src/components/nice-checkbox/nice-checkbox.js +37 -37
- package/src/components/nice-checkbox/nice-checkbox.scss +120 -120
- package/src/components/nice-choice/nice-choice.html +18 -18
- package/src/components/nice-choice/nice-choice.js +211 -211
- package/src/components/nice-choice/nice-choice.scss +110 -110
- package/src/components/nice-click-outside/nice-click-outside.js +105 -105
- package/src/components/nice-comment/nice-comment.html +10 -10
- package/src/components/nice-comment/nice-comment.js +71 -71
- package/src/components/nice-comment/nice-comment.scss +39 -39
- package/src/components/nice-date/nice-date.html +82 -82
- package/src/components/nice-date/nice-date.js +350 -350
- package/src/components/nice-date/nice-date.scss +305 -305
- package/src/components/nice-date-input/nice-date-input.html +56 -56
- package/src/components/nice-date-input/nice-date-input.js +143 -143
- package/src/components/nice-date-input/nice-date-input.scss +55 -55
- package/src/components/nice-date-range/nice-date-range.html +15 -15
- package/src/components/nice-date-range/nice-date-range.js +78 -78
- package/src/components/nice-date-range/nice-date-range.scss +390 -390
- package/src/components/nice-datetime-picker/nice-datetime-picker.html +29 -29
- package/src/components/nice-datetime-picker/nice-datetime-picker.js +89 -89
- package/src/components/nice-datetime-picker/nice-datetime-picker.scss +428 -428
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.html +55 -55
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.js +248 -248
- package/src/components/nice-datetimerange-picker/nice-datetimerange-picker.scss +73 -73
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +44 -44
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +175 -175
- package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +127 -127
- package/src/components/nice-dropdown/nice-dropdown.html +61 -61
- package/src/components/nice-dropdown/nice-dropdown.js +517 -517
- package/src/components/nice-dropdown/nice-dropdown.scss +262 -262
- package/src/components/nice-dropdown-date/nice-dropdown-date.html +28 -28
- package/src/components/nice-dropdown-date/nice-dropdown-date.js +132 -132
- package/src/components/nice-dropdown-date/nice-dropdown-date.scss +87 -87
- package/src/components/nice-dropdown-old/nice-dropdown-old.html +44 -44
- package/src/components/nice-dropdown-old/nice-dropdown-old.js +330 -330
- package/src/components/nice-dropdown-old/nice-dropdown-old.scss +129 -129
- package/src/components/nice-dtp/nice-dtp.html +91 -91
- package/src/components/nice-dtp/nice-dtp.js +835 -835
- package/src/components/nice-help/nice-help.html +6 -6
- package/src/components/nice-help/nice-help.js +58 -58
- package/src/components/nice-help/nice-help.scss +78 -78
- package/src/components/nice-input/nice-input.html +47 -47
- package/src/components/nice-input/nice-input.js +251 -251
- package/src/components/nice-input/nice-input.scss +130 -130
- package/src/components/nice-label/nice-label.html +10 -10
- package/src/components/nice-label/nice-label.js +32 -32
- package/src/components/nice-loader/nice-loader.html +6 -6
- package/src/components/nice-loader/nice-loader.js +28 -28
- package/src/components/nice-loader/nice-loader.scss +47 -47
- package/src/components/nice-no-data/nice-no-data.html +3 -3
- package/src/components/nice-no-data/nice-no-data.js +27 -27
- package/src/components/nice-no-data/nice-no-data.scss +26 -26
- package/src/components/nice-notification/nice-notification.html +3 -3
- package/src/components/nice-notification/nice-notification.js +124 -124
- package/src/components/nice-notification/nice-notification.scss +66 -66
- package/src/components/nice-number/nice-number.html +40 -40
- package/src/components/nice-number/nice-number.js +172 -172
- package/src/components/nice-number/nice-number.scss +18 -18
- package/src/components/nice-on-scroll/nice-on-scroll.js +17 -17
- package/src/components/nice-percent/nice-percent.html +24 -24
- package/src/components/nice-percent/nice-percent.js +95 -95
- package/src/components/nice-pill/nice-pill.html +3 -3
- package/src/components/nice-pill/nice-pill.js +29 -29
- package/src/components/nice-pill/nice-pill.scss +25 -25
- package/src/components/nice-popup/nice-popup.html +6 -6
- package/src/components/nice-popup/nice-popup.js +122 -122
- package/src/components/nice-popup/nice-popup.scss +43 -43
- package/src/components/nice-progress-bar/nice-progress-bar.html +15 -15
- package/src/components/nice-progress-bar/nice-progress-bar.js +55 -55
- package/src/components/nice-progress-bar/nice-progress-bar.scss +47 -47
- package/src/components/nice-quantity/nice-quantity.html +22 -22
- package/src/components/nice-quantity/nice-quantity.js +57 -57
- package/src/components/nice-quantity/nice-quantity.scss +51 -51
- package/src/components/nice-search/nice-search.html +44 -44
- package/src/components/nice-search/nice-search.js +243 -243
- package/src/components/nice-search/nice-search.scss +90 -90
- package/src/components/nice-search2/nice-search2.html +32 -32
- package/src/components/nice-search2/nice-search2.js +267 -267
- package/src/components/nice-search2/nice-search2.scss +80 -80
- package/src/components/nice-slot/nice-slot.html +10 -10
- package/src/components/nice-slot/nice-slot.js +31 -31
- package/src/components/nice-steps/nice-steps.scss +81 -81
- package/src/components/nice-svgs/nice-svgs.html +1320 -1285
- package/src/components/nice-svgs/nice-svgs.js +19 -19
- package/src/components/nice-table/nice-table.html +38 -38
- package/src/components/nice-table/nice-table.js +60 -60
- package/src/components/nice-table/nice-table.scss +112 -112
- package/src/components/nice-time-picker/nice-time-picker.html +43 -43
- package/src/components/nice-time-picker/nice-time-picker.js +85 -85
- package/src/components/nice-time-picker/nice-time-picker.scss +37 -37
- package/src/components/nice-title/nice-title.html +6 -6
- package/src/components/nice-title/nice-title.js +22 -22
- package/src/components/nice-toast/nice-toast.html +2 -2
- package/src/components/nice-toast/nice-toast.js +56 -56
- package/src/components/nice-toast/nice-toast.scss +74 -74
- package/src/components/nice-toggle/nice-toggle.html +12 -12
- package/src/components/nice-toggle/nice-toggle.js +57 -57
- package/src/components/nice-toggle/nice-toggle.scss +131 -131
- package/src/components/nice-tooltip/_nice-tooltip.scss +55 -55
- package/src/components/nice-tooltip/nice-tooltip.js +84 -84
- package/src/components/nice-upload/nice-upload.html +22 -22
- package/src/components/nice-upload/nice-upload.js +159 -159
- package/src/components/nice-upload/nice-upload.scss +85 -85
- package/src/components/nice-view/_nice-view.scss +63 -62
- package/src/components/nice-view/nice-view.html +12 -12
- package/src/components/nice-view/nice-view.js +30 -30
- package/src/components/nice-virtual-scroll/_nice-virtual-scroll.scss +17 -17
- package/src/components/nice-virtual-scroll/nice-virtual-scroll.html +12 -12
- package/src/components/nice-virtual-scroll/nice-virtual-scroll.js +70 -70
- package/src/components/nice-wrapper/_nice-wrapper.scss +87 -87
- package/src/components/nice-wrapper/nice-wrapper.html +12 -12
- package/src/components/nice-wrapper/nice-wrapper.js +44 -44
- package/src/components/nice-yesno/nice-yesno.html +14 -14
- package/src/components/nice-yesno/nice-yesno.js +111 -111
- package/src/components/nice-yesno/nice-yesno.scss +95 -95
- package/src/filters/nice-date.js +17 -17
- package/src/filters/nice-highlight.js +16 -16
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.html +30 -30
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.js +67 -67
- package/src/modals/nice-multilangual-modal/nice-multilangual-modal.scss +19 -19
- package/src/nice.js +2 -2
- package/src/services/nice-service.js +22 -22
- package/src/styles/_bootstrap-variables.scss +178 -178
- package/src/styles/_nice-buttons.scss +612 -612
- package/src/styles/_nice-common.scss +479 -479
- package/src/styles/_nice-ngdialog.scss +85 -85
- package/src/styles/_nice-spacing.scss +283 -283
- package/src/styles/_nice.scss +72 -71
- package/src/styles/_variables.scss +194 -194
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
.nice-progress-bar {
|
|
2
|
-
$nice-line-height: 34px;
|
|
3
|
-
|
|
4
|
-
.progress {
|
|
5
|
-
position: relative;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: $nice-line-height;
|
|
8
|
-
line-height: $nice-line-height;
|
|
9
|
-
box-shadow: 0 0 0;
|
|
10
|
-
border-radius: $nice-border-radius;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
background: #f5f5f5;
|
|
13
|
-
margin-bottom: 0;
|
|
14
|
-
border: 1px solid $nice-border-color;
|
|
15
|
-
|
|
16
|
-
.progress-value {
|
|
17
|
-
position: absolute;
|
|
18
|
-
top: 0;
|
|
19
|
-
left: 0;
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
text-align: center;
|
|
23
|
-
font-size: 12px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.progress-bar {
|
|
27
|
-
font-size: 12px;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
line-height: $nice-line-height;
|
|
30
|
-
position: absolute;
|
|
31
|
-
top: 0;
|
|
32
|
-
border-radius: $nice-border-radius;
|
|
33
|
-
background-color: $nice-base-color;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@each $number, $color in
|
|
37
|
-
(0, $nice-base-color),
|
|
38
|
-
(1, #E91C61),
|
|
39
|
-
(2, #9B26B1),
|
|
40
|
-
(3, #643AB8),
|
|
41
|
-
(4, #3B53B3),
|
|
42
|
-
(5, #2095F4) {
|
|
43
|
-
.progress-bar-color#{$number} {
|
|
44
|
-
background: $color;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
.nice-progress-bar {
|
|
2
|
+
$nice-line-height: 34px;
|
|
3
|
+
|
|
4
|
+
.progress {
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: $nice-line-height;
|
|
8
|
+
line-height: $nice-line-height;
|
|
9
|
+
box-shadow: 0 0 0;
|
|
10
|
+
border-radius: $nice-border-radius;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
background: #f5f5f5;
|
|
13
|
+
margin-bottom: 0;
|
|
14
|
+
border: 1px solid $nice-border-color;
|
|
15
|
+
|
|
16
|
+
.progress-value {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.progress-bar {
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
line-height: $nice-line-height;
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 0;
|
|
32
|
+
border-radius: $nice-border-radius;
|
|
33
|
+
background-color: $nice-base-color;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@each $number, $color in
|
|
37
|
+
(0, $nice-base-color),
|
|
38
|
+
(1, #E91C61),
|
|
39
|
+
(2, #9B26B1),
|
|
40
|
+
(3, #643AB8),
|
|
41
|
+
(4, #3B53B3),
|
|
42
|
+
(5, #2095F4) {
|
|
43
|
+
.progress-bar-color#{$number} {
|
|
44
|
+
background: $color;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
48
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<div class="nice-component nice-quantity" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
-
<div class="row">
|
|
3
|
-
<!------------------------- Title ------------------------->
|
|
4
|
-
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
-
|
|
6
|
-
<!------------------------- Field ------------------------->
|
|
7
|
-
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
8
|
-
<div class="input-group">
|
|
9
|
-
<span class="input-group-btn">
|
|
10
|
-
<button type="button" class="btn btn-default btn-left" ng-click="sub()" ng-disabled="(model <= min) || isDisabled" tabindex="-1">
|
|
11
|
-
<nice-icon icon="icon-minus"></nice-icon>
|
|
12
|
-
</button>
|
|
13
|
-
</span>
|
|
14
|
-
<input class="value form-control" ng-model="model" type="number" min="{{ min }}" max="{{ max }}" ng-change="handleChange()" ng-disabled="isDisabled" />
|
|
15
|
-
<span class="input-group-btn">
|
|
16
|
-
<button type="button" class="btn btn-default btn-right" ng-click="add()" ng-disabled="(model >= max) || isDisabled" tabindex="-1">
|
|
17
|
-
<nice-icon icon="icon-plus"></nice-icon>
|
|
18
|
-
</button>
|
|
19
|
-
</span>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
1
|
+
<div class="nice-component nice-quantity" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }">
|
|
2
|
+
<div class="row">
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
+
|
|
6
|
+
<!------------------------- Field ------------------------->
|
|
7
|
+
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
8
|
+
<div class="input-group">
|
|
9
|
+
<span class="input-group-btn">
|
|
10
|
+
<button type="button" class="btn btn-default btn-left" ng-click="sub()" ng-disabled="(model <= min) || isDisabled" tabindex="-1">
|
|
11
|
+
<nice-icon icon="icon-minus"></nice-icon>
|
|
12
|
+
</button>
|
|
13
|
+
</span>
|
|
14
|
+
<input class="value form-control" ng-model="model" type="number" min="{{ min }}" max="{{ max }}" ng-change="handleChange()" ng-disabled="isDisabled" />
|
|
15
|
+
<span class="input-group-btn">
|
|
16
|
+
<button type="button" class="btn btn-default btn-right" ng-click="add()" ng-disabled="(model >= max) || isDisabled" tabindex="-1">
|
|
17
|
+
<nice-icon icon="icon-plus"></nice-icon>
|
|
18
|
+
</button>
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
23
|
</div>
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @ngdoc directive
|
|
5
|
-
* @name niceElements.directive:niceQuantity
|
|
6
|
-
* @description
|
|
7
|
-
* # niceQuantity
|
|
8
|
-
*/
|
|
9
|
-
angular.module('niceElements')
|
|
10
|
-
.directive('niceQuantity', function () {
|
|
11
|
-
return {
|
|
12
|
-
templateUrl: 'src/components/nice-quantity/nice-quantity.html',
|
|
13
|
-
restrict: 'E',
|
|
14
|
-
scope: {
|
|
15
|
-
niceTitle: '@',
|
|
16
|
-
title: '@',
|
|
17
|
-
model: '=',
|
|
18
|
-
min: '=?',
|
|
19
|
-
max: '=?',
|
|
20
|
-
onChange: '&?',
|
|
21
|
-
noMargin: '@',
|
|
22
|
-
fieldWidth: '@',
|
|
23
|
-
labelWidth: '@',
|
|
24
|
-
isDisabled: '=',
|
|
25
|
-
isInline: '=',
|
|
26
|
-
help: '@',
|
|
27
|
-
required: '='
|
|
28
|
-
},
|
|
29
|
-
controller: function ($scope) {
|
|
30
|
-
$scope.min = Number($scope.min) || 0;
|
|
31
|
-
$scope.max = Number($scope.max) || Infinity;
|
|
32
|
-
if (!$scope.model) $scope.model = Number($scope.min);
|
|
33
|
-
|
|
34
|
-
$scope.add = function () {
|
|
35
|
-
$scope.model += 1;
|
|
36
|
-
$scope.handleChange();
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
$scope.sub = function () {
|
|
40
|
-
$scope.model -= 1;
|
|
41
|
-
$scope.handleChange();
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
$scope.handleChange = function () {
|
|
45
|
-
if ($scope.model != undefined) {
|
|
46
|
-
$scope.model = Number($scope.model);
|
|
47
|
-
if ($scope.model < $scope.min) $scope.model = angular.copy($scope.min);
|
|
48
|
-
if ($scope.model > $scope.max) $scope.model = angular.copy($scope.max);
|
|
49
|
-
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
50
|
-
} else {
|
|
51
|
-
$scope.model = angular.copy($scope.min);
|
|
52
|
-
$scope.handleChange();
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
});
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @ngdoc directive
|
|
5
|
+
* @name niceElements.directive:niceQuantity
|
|
6
|
+
* @description
|
|
7
|
+
* # niceQuantity
|
|
8
|
+
*/
|
|
9
|
+
angular.module('niceElements')
|
|
10
|
+
.directive('niceQuantity', function () {
|
|
11
|
+
return {
|
|
12
|
+
templateUrl: 'src/components/nice-quantity/nice-quantity.html',
|
|
13
|
+
restrict: 'E',
|
|
14
|
+
scope: {
|
|
15
|
+
niceTitle: '@',
|
|
16
|
+
title: '@',
|
|
17
|
+
model: '=',
|
|
18
|
+
min: '=?',
|
|
19
|
+
max: '=?',
|
|
20
|
+
onChange: '&?',
|
|
21
|
+
noMargin: '@',
|
|
22
|
+
fieldWidth: '@',
|
|
23
|
+
labelWidth: '@',
|
|
24
|
+
isDisabled: '=',
|
|
25
|
+
isInline: '=',
|
|
26
|
+
help: '@',
|
|
27
|
+
required: '='
|
|
28
|
+
},
|
|
29
|
+
controller: function ($scope) {
|
|
30
|
+
$scope.min = Number($scope.min) || 0;
|
|
31
|
+
$scope.max = Number($scope.max) || Infinity;
|
|
32
|
+
if (!$scope.model) $scope.model = Number($scope.min);
|
|
33
|
+
|
|
34
|
+
$scope.add = function () {
|
|
35
|
+
$scope.model += 1;
|
|
36
|
+
$scope.handleChange();
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
$scope.sub = function () {
|
|
40
|
+
$scope.model -= 1;
|
|
41
|
+
$scope.handleChange();
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
$scope.handleChange = function () {
|
|
45
|
+
if ($scope.model != undefined) {
|
|
46
|
+
$scope.model = Number($scope.model);
|
|
47
|
+
if ($scope.model < $scope.min) $scope.model = angular.copy($scope.min);
|
|
48
|
+
if ($scope.model > $scope.max) $scope.model = angular.copy($scope.max);
|
|
49
|
+
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
50
|
+
} else {
|
|
51
|
+
$scope.model = angular.copy($scope.min);
|
|
52
|
+
$scope.handleChange();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
});
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
.nice-quantity {
|
|
2
|
-
$nice-quantity-height: 35px;
|
|
3
|
-
width: 100%;
|
|
4
|
-
|
|
5
|
-
.input-group {
|
|
6
|
-
display: flex;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.form-control {
|
|
10
|
-
border-left: 0 none !important;
|
|
11
|
-
border-right: 0 none !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.btn {
|
|
15
|
-
&:focus {
|
|
16
|
-
outline: 0 none;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.btn-left {
|
|
21
|
-
border-bottom-left-radius: $nice-border-radius;
|
|
22
|
-
border-top-left-radius: $nice-border-radius;
|
|
23
|
-
border-right: 0 none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.btn-right {
|
|
27
|
-
border-bottom-right-radius: $nice-border-radius;
|
|
28
|
-
border-top-right-radius: $nice-border-radius;
|
|
29
|
-
border-left: 0 none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
input {
|
|
33
|
-
text-align: center;
|
|
34
|
-
flex-grow: 1;
|
|
35
|
-
|
|
36
|
-
&:focus {
|
|
37
|
-
outline: 0 none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.value {
|
|
42
|
-
line-height: $nice-quantity-height - 2;
|
|
43
|
-
padding: 0px 10px;
|
|
44
|
-
text-align: center;
|
|
45
|
-
width: 100%;
|
|
46
|
-
display: table;
|
|
47
|
-
// background: #f1f1f1;
|
|
48
|
-
border: 0 none;
|
|
49
|
-
border-top: 1px solid $nice-border-color;
|
|
50
|
-
border-bottom: 1px solid $nice-border-color;
|
|
51
|
-
}
|
|
1
|
+
.nice-quantity {
|
|
2
|
+
$nice-quantity-height: 35px;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
.input-group {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.form-control {
|
|
10
|
+
border-left: 0 none !important;
|
|
11
|
+
border-right: 0 none !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn {
|
|
15
|
+
&:focus {
|
|
16
|
+
outline: 0 none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.btn-left {
|
|
21
|
+
border-bottom-left-radius: $nice-border-radius;
|
|
22
|
+
border-top-left-radius: $nice-border-radius;
|
|
23
|
+
border-right: 0 none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.btn-right {
|
|
27
|
+
border-bottom-right-radius: $nice-border-radius;
|
|
28
|
+
border-top-right-radius: $nice-border-radius;
|
|
29
|
+
border-left: 0 none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
input {
|
|
33
|
+
text-align: center;
|
|
34
|
+
flex-grow: 1;
|
|
35
|
+
|
|
36
|
+
&:focus {
|
|
37
|
+
outline: 0 none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.value {
|
|
42
|
+
line-height: $nice-quantity-height - 2;
|
|
43
|
+
padding: 0px 10px;
|
|
44
|
+
text-align: center;
|
|
45
|
+
width: 100%;
|
|
46
|
+
display: table;
|
|
47
|
+
// background: #f1f1f1;
|
|
48
|
+
border: 0 none;
|
|
49
|
+
border-top: 1px solid $nice-border-color;
|
|
50
|
+
border-bottom: 1px solid $nice-border-color;
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
<ng-form class="nice-component nice-input nice-search" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline}" name="form">
|
|
2
|
-
<div class="row">
|
|
3
|
-
<!------------------------- Title ------------------------->
|
|
4
|
-
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
-
|
|
6
|
-
<!------------------------- Field ------------------------->
|
|
7
|
-
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
8
|
-
<div class="input-group" ng-class="{ 'disabled': isDisabled }">
|
|
9
|
-
<input class="form-control" type="text" id="{{ id }}" ng-model="modelString" ng-keypress="keypress($event)" placeholder="{{ placeholder }}" ng-disabled="isDisabled" ng-change="updateSearch()" ng-required="required" tabindex="{{ tabIndex }}">
|
|
10
|
-
|
|
11
|
-
<button type="button" class="btn input-group-addon" ng-click="search()" ng-if="!model" ng-disabled="isDisabled">
|
|
12
|
-
<!-- <i ng-show="!loading" class="fa fa-search"></i>
|
|
13
|
-
<i ng-show="loading" class="fa fa-refresh fa-spin"></i> -->
|
|
14
|
-
<!-- <nice-icon ng-show="loading" icon="icon-loader" class="d-block nice-animation-spin"></nice-icon> -->
|
|
15
|
-
<nice-icon ng-show="!loading" icon="icon-search"></nice-icon>
|
|
16
|
-
<nice-loader ng-if="loading"></nice-loader>
|
|
17
|
-
</button>
|
|
18
|
-
|
|
19
|
-
<button type="button" class="btn input-group-addon" ng-click="remove()" ng-if="model" ng-disabled="isDisabled">
|
|
20
|
-
<!-- <i ng-show="!loading" class="fa fa-remove"></i> -->
|
|
21
|
-
<nice-icon ng-show="!loading" icon="icon-x"></nice-icon>
|
|
22
|
-
</button>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div class="row" ng-if="noResults || results.length">
|
|
28
|
-
<div ng-class="labelWidth ? labelWidth : 'col-sm-4'" ng-if="title"></div>
|
|
29
|
-
<div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
|
|
30
|
-
<div class="nice-dropdown-empty" ng-if="noResults">
|
|
31
|
-
<div class="nice-search-row" translate translate-context="Nice">No results found.</div>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<div class="nice-dropdown" ng-if="results.length">
|
|
35
|
-
<div ng-repeat="result in results" class="nice-search-row" ng-class="{'active': selectedIndex == $index}" ng-click="selectRow(result)">
|
|
36
|
-
<span class="text-bold">{{ result[keyForInputLabel] }}</span>
|
|
37
|
-
<!--<div ng-transclude></div>-->
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<!--Here is injected dropdown html if passed and results present and open.-->
|
|
44
|
-
<!--<div ng-transclude></div>-->
|
|
1
|
+
<ng-form class="nice-component nice-input nice-search" ng-class="{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline}" name="form">
|
|
2
|
+
<div class="row">
|
|
3
|
+
<!------------------------- Title ------------------------->
|
|
4
|
+
<nice-title text="title || niceTitle" help="help" required="required" label-width="labelWidth"></nice-title>
|
|
5
|
+
|
|
6
|
+
<!------------------------- Field ------------------------->
|
|
7
|
+
<div class="nice-field col-xs-12" ng-class="[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]">
|
|
8
|
+
<div class="input-group" ng-class="{ 'disabled': isDisabled }">
|
|
9
|
+
<input class="form-control" type="text" id="{{ id }}" ng-model="modelString" ng-keypress="keypress($event)" placeholder="{{ placeholder }}" ng-disabled="isDisabled" ng-change="updateSearch()" ng-required="required" tabindex="{{ tabIndex }}">
|
|
10
|
+
|
|
11
|
+
<button type="button" class="btn input-group-addon" ng-click="search()" ng-if="!model" ng-disabled="isDisabled">
|
|
12
|
+
<!-- <i ng-show="!loading" class="fa fa-search"></i>
|
|
13
|
+
<i ng-show="loading" class="fa fa-refresh fa-spin"></i> -->
|
|
14
|
+
<!-- <nice-icon ng-show="loading" icon="icon-loader" class="d-block nice-animation-spin"></nice-icon> -->
|
|
15
|
+
<nice-icon ng-show="!loading" icon="icon-search"></nice-icon>
|
|
16
|
+
<nice-loader ng-if="loading"></nice-loader>
|
|
17
|
+
</button>
|
|
18
|
+
|
|
19
|
+
<button type="button" class="btn input-group-addon" ng-click="remove()" ng-if="model" ng-disabled="isDisabled">
|
|
20
|
+
<!-- <i ng-show="!loading" class="fa fa-remove"></i> -->
|
|
21
|
+
<nice-icon ng-show="!loading" icon="icon-x"></nice-icon>
|
|
22
|
+
</button>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="row" ng-if="noResults || results.length">
|
|
28
|
+
<div ng-class="labelWidth ? labelWidth : 'col-sm-4'" ng-if="title"></div>
|
|
29
|
+
<div class="nice-field col-xs-12" ng-class="fieldWidth ? fieldWidth : 'col-sm-8'">
|
|
30
|
+
<div class="nice-dropdown-empty" ng-if="noResults">
|
|
31
|
+
<div class="nice-search-row" translate translate-context="Nice">No results found.</div>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="nice-dropdown" ng-if="results.length">
|
|
35
|
+
<div ng-repeat="result in results" class="nice-search-row" ng-class="{'active': selectedIndex == $index}" ng-click="selectRow(result)">
|
|
36
|
+
<span class="text-bold">{{ result[keyForInputLabel] }}</span>
|
|
37
|
+
<!--<div ng-transclude></div>-->
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<!--Here is injected dropdown html if passed and results present and open.-->
|
|
44
|
+
<!--<div ng-transclude></div>-->
|
|
45
45
|
</ng-form>
|