nice-elements 1.12.5 → 1.12.7
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 +14 -0
- package/README.md +1 -1
- package/bower.json +1 -1
- package/dist/nice.js +258 -66
- package/dist/nice.min.js +1 -1
- package/dist/style.css +30 -7
- package/dist/style.css.map +2 -1
- package/dist/style.min.css +2 -2
- package/package.json +1 -1
- 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-checkbox/nice-checkbox.html +5 -1
- package/src/components/nice-checkbox/nice-checkbox.js +3 -0
- package/src/components/nice-checkbox/nice-checkbox.scss +32 -3
- package/src/components/nice-date-input/nice-date-input.html +44 -37
- package/src/components/nice-date-input/nice-date-input.js +36 -21
- package/src/components/nice-date-input/nice-date-input.scss +4 -2
- package/src/components/nice-search2/nice-search2.js +5 -5
- package/src/components/nice-svgs/nice-svgs.html +35 -0
- package/src/components/nice-view/_nice-view.scss +1 -0
- package/src/services/nice-service.js +2 -2
- package/src/styles/_nice-common.scss +4 -2
- package/src/styles/_nice.scss +1 -0
- package/src/styles/_variables.scss +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.12.7 (9.10.2025)
|
|
4
|
+
|
|
5
|
+
- fixed nice search 2 select text bug,
|
|
6
|
+
- created nice avatar component,
|
|
7
|
+
- added icons to demo routes,
|
|
8
|
+
- worked on demo router,
|
|
9
|
+
|
|
10
|
+
## v1.12.6 (15.7.2025)
|
|
11
|
+
|
|
12
|
+
- added validations to nice date input,
|
|
13
|
+
- added help to checkbox,
|
|
14
|
+
- added description prop to nice checkbox,
|
|
15
|
+
- added transclude to nice checkbox
|
|
16
|
+
|
|
3
17
|
## v1.12.5 (11.6.2025)
|
|
4
18
|
|
|
5
19
|
- fixed nice date wrong start of week day
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Nice elements v1.12.
|
|
3
|
+
# Nice elements v1.12.7
|
|
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
|
@@ -32,6 +32,129 @@ angular.module('niceElements')
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* @ngdoc directive
|
|
37
|
+
* @name niceElements.directive:niceAvatar
|
|
38
|
+
* @description
|
|
39
|
+
* # niceAvatar
|
|
40
|
+
*/
|
|
41
|
+
angular.module('niceElements')
|
|
42
|
+
.directive('niceAvatar', function () {
|
|
43
|
+
return {
|
|
44
|
+
templateUrl: 'src/components/nice-avatar/nice-avatar.html',
|
|
45
|
+
restrict: 'E',
|
|
46
|
+
replace: true,
|
|
47
|
+
scope: {
|
|
48
|
+
text: '@?',
|
|
49
|
+
},
|
|
50
|
+
controller: function ($scope, $element, $timeout) {
|
|
51
|
+
/**
|
|
52
|
+
* Handles the generation process when the button is clicked or on initial load.
|
|
53
|
+
*/
|
|
54
|
+
function generateAndDraw() {
|
|
55
|
+
|
|
56
|
+
// Get references to DOM elements
|
|
57
|
+
const avatarCanvas = $element[0];
|
|
58
|
+
const ctx = avatarCanvas.getContext('2d');
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Simple Pseudo-Random Number Generator (PRNG) using a seed.
|
|
62
|
+
* This ensures that for the same seed, the sequence of "random" numbers is identical.
|
|
63
|
+
* Based on a common LCG (Linear Congenital Generator) algorithm.
|
|
64
|
+
* @param {number} seed - The initial seed value.
|
|
65
|
+
* @returns {function(): number} A function that generates the next pseudo-random number (0-1).
|
|
66
|
+
*/
|
|
67
|
+
function createSeededRandom(seed) {
|
|
68
|
+
// Use a simple string hashing for the initial seed if it's a string
|
|
69
|
+
let currentSeed = typeof seed === 'string' ? hashString(seed) : seed;
|
|
70
|
+
|
|
71
|
+
// LCG parameters
|
|
72
|
+
const a = 1103515245;
|
|
73
|
+
const c = 12345;
|
|
74
|
+
const m = 2 ** 31; // Modulus (a large prime number or power of 2)
|
|
75
|
+
|
|
76
|
+
return function () {
|
|
77
|
+
currentSeed = (a * currentSeed + c) % m;
|
|
78
|
+
return currentSeed / m; // Normalize to a value between 0 and 1
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Simple string hashing function to convert a string seed into a number.
|
|
84
|
+
* @param {string} str - The string to hash.
|
|
85
|
+
* @returns {number} A numerical hash value.
|
|
86
|
+
*/
|
|
87
|
+
function hashString(str) {
|
|
88
|
+
let hash = 0;
|
|
89
|
+
for (let i = 0; i < str.length; i++) {
|
|
90
|
+
const char = str.charCodeAt(i);
|
|
91
|
+
hash = ((hash << 5) - hash) + char; // Bitwise operations for speed
|
|
92
|
+
hash |= 0; // Convert to 32bit integer
|
|
93
|
+
}
|
|
94
|
+
return Math.abs(hash); // Ensure positive hash
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Generates a random color in HSL format based on the seeded random number generator.
|
|
99
|
+
* HSL (Hue, Saturation, Lightness) is good for generating visually distinct colors.
|
|
100
|
+
* @param {function(): number} randomFunc - The seeded random number generator function.
|
|
101
|
+
* @returns {string} An HSL color string (e.g., "hsl(120, 70%, 50%)").
|
|
102
|
+
*/
|
|
103
|
+
function generateRandomColor(randomFunc) {
|
|
104
|
+
const hue = Math.floor(randomFunc() * 360); // Hue: 0-359 degrees
|
|
105
|
+
const saturation = Math.floor(randomFunc() * 30) + 60; // Saturation: 60-90% (avoiding dull/overly vibrant)
|
|
106
|
+
const lightness = Math.floor(randomFunc() * 20) + 40; // Lightness: 40-60% (avoiding too dark/light)
|
|
107
|
+
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Draws a linear gradient avatar on the canvas.
|
|
112
|
+
* @param {string} seed - The seed string for deterministic generation.
|
|
113
|
+
*/
|
|
114
|
+
function drawAvatar(seed) {
|
|
115
|
+
const size = avatarCanvas.width; // Canvas is square
|
|
116
|
+
const seededRandom = createSeededRandom(seed);
|
|
117
|
+
|
|
118
|
+
// Generate two deterministic colors based on the seed
|
|
119
|
+
const color1 = generateRandomColor(seededRandom);
|
|
120
|
+
const color2 = generateRandomColor(seededRandom);
|
|
121
|
+
|
|
122
|
+
// Create a linear gradient
|
|
123
|
+
// The angle of the gradient can also be made deterministic
|
|
124
|
+
const angle = seededRandom() * Math.PI * 2; // Random angle from 0 to 2*PI radians
|
|
125
|
+
|
|
126
|
+
// Calculate start and end points for the gradient based on the angle
|
|
127
|
+
const startX = size / 2 + Math.cos(angle) * size / 2;
|
|
128
|
+
const startY = size / 2 + Math.sin(angle) * size / 2;
|
|
129
|
+
const endX = size / 2 + Math.cos(angle + Math.PI) * size / 2; // Opposite direction
|
|
130
|
+
const endY = size / 2 + Math.sin(angle + Math.PI) * size / 2;
|
|
131
|
+
|
|
132
|
+
const gradient = ctx.createLinearGradient(startX, startY, endX, endY);
|
|
133
|
+
gradient.addColorStop(0, color1);
|
|
134
|
+
gradient.addColorStop(1, color2);
|
|
135
|
+
|
|
136
|
+
// Fill the canvas with the gradient
|
|
137
|
+
ctx.clearRect(0, 0, size, size); // Clear previous drawing
|
|
138
|
+
ctx.fillStyle = gradient;
|
|
139
|
+
ctx.fillRect(0, 0, size, size);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const seed = $scope.text;
|
|
143
|
+
drawAvatar(seed);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
$timeout(function () {
|
|
147
|
+
generateAndDraw();
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
$scope.$watch('text', function () {
|
|
151
|
+
generateAndDraw();
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
|
|
35
158
|
/**
|
|
36
159
|
* @ngdoc directive
|
|
37
160
|
* @name niceElements.directive:niceButtonToggle
|
|
@@ -457,14 +580,17 @@ angular.module('niceElements')
|
|
|
457
580
|
return {
|
|
458
581
|
templateUrl: 'src/components/nice-checkbox/nice-checkbox.html',
|
|
459
582
|
restrict: 'E',
|
|
583
|
+
transclude: true,
|
|
460
584
|
scope: {
|
|
461
585
|
model: '=',
|
|
462
586
|
niceTitle: '@',
|
|
587
|
+
niceDescription: '@',
|
|
463
588
|
title: '@',
|
|
464
589
|
titleOnLeft: '=',
|
|
465
590
|
noMargin: '@',
|
|
466
591
|
clickDisabled: '@',
|
|
467
592
|
onChange: '&?',
|
|
593
|
+
help: '@',
|
|
468
594
|
isDisabled: '=',
|
|
469
595
|
},
|
|
470
596
|
controller: function ($scope) {
|
|
@@ -887,8 +1013,8 @@ angular.module('niceElements')
|
|
|
887
1013
|
model: '=', // binding model
|
|
888
1014
|
date: '=?', // default: true, is date picker enabled?
|
|
889
1015
|
time: '=?', // default: false, is time picker enabled?
|
|
890
|
-
minDate: '
|
|
891
|
-
maxDate: '
|
|
1016
|
+
minDate: '=', // default: undefined
|
|
1017
|
+
maxDate: '=', // default: undefined
|
|
892
1018
|
niceTitle: '@',
|
|
893
1019
|
title: '@', // default: ''
|
|
894
1020
|
noMargin: '@', // default: false, if noMargin==true then entire directive can be injected inside other divs
|
|
@@ -903,9 +1029,10 @@ angular.module('niceElements')
|
|
|
903
1029
|
placeholderDate: '@',
|
|
904
1030
|
placeholderTime: '@',
|
|
905
1031
|
},
|
|
906
|
-
controller: function ($scope, $timeout, gettextCatalog) {
|
|
1032
|
+
controller: function ($scope, $element, $timeout, gettextCatalog) {
|
|
907
1033
|
$scope.formatDate = "DD.MM.YYYY";
|
|
908
1034
|
$scope.formatTime = "HH:mm";
|
|
1035
|
+
$scope.error = '';
|
|
909
1036
|
if ($scope.date === undefined) $scope.date = true;
|
|
910
1037
|
if ($scope.time === undefined) $scope.time = true;
|
|
911
1038
|
if (!$scope.placeholderDate) { $scope.placeholderDate = gettextCatalog.getString("••.••.••••", null, "Nice"); }
|
|
@@ -916,6 +1043,12 @@ angular.module('niceElements')
|
|
|
916
1043
|
dateModel: angular.copy($scope.model || moment()),
|
|
917
1044
|
};
|
|
918
1045
|
|
|
1046
|
+
$scope.dateInput = null;
|
|
1047
|
+
const timeInput = $element[0].getElementsByClassName("nice-time-input-field");
|
|
1048
|
+
const dateInput = $element[0].getElementsByClassName("nice-date-input-field");
|
|
1049
|
+
if (timeInput && timeInput[0]) $scope.dateInput = timeInput[0];
|
|
1050
|
+
if (dateInput && dateInput[0]) $scope.dateInput = dateInput[0];
|
|
1051
|
+
|
|
919
1052
|
$scope.dateChanged = function () {
|
|
920
1053
|
$timeout(function () {
|
|
921
1054
|
$scope.modelDate = $scope.inner.dateModel.format($scope.formatDate);
|
|
@@ -935,12 +1068,25 @@ angular.module('niceElements')
|
|
|
935
1068
|
if (!$scope.date) $scope.modelDate = moment().format($scope.formatDate);
|
|
936
1069
|
const newModel = moment($scope.modelDate + " " + $scope.modelTime, $scope.formatDate + " " + $scope.formatTime).seconds(0).milliseconds(0);
|
|
937
1070
|
if (newModel.isValid()) {
|
|
938
|
-
$scope.
|
|
939
|
-
|
|
1071
|
+
if ($scope.minDate && newModel.isBefore($scope.minDate)) {
|
|
1072
|
+
// $scope.model = null;
|
|
1073
|
+
$scope.niceDateInputForm.$setValidity('valid-date', false);
|
|
1074
|
+
$scope.error = gettextCatalog.getString("Minimum date is {{date}}", { date: $scope.format($scope.minDate) }, "Nice");
|
|
1075
|
+
} else if ($scope.maxDate && newModel.isAfter($scope.maxDate)) {
|
|
1076
|
+
// $scope.model = null;
|
|
1077
|
+
$scope.error = gettextCatalog.getString("Maximum date is {{date}}", { date: $scope.format($scope.maxDate) }, "Nice");
|
|
1078
|
+
$scope.niceDateInputForm.$setValidity('valid-date', false);
|
|
1079
|
+
} else {
|
|
1080
|
+
$scope.model = newModel;
|
|
1081
|
+
$scope.error = '';
|
|
1082
|
+
$scope.niceDateInputForm.$setValidity('valid-date', null);
|
|
1083
|
+
}
|
|
940
1084
|
} else {
|
|
941
|
-
$scope.model = null;
|
|
942
|
-
$scope.
|
|
1085
|
+
// $scope.model = null;
|
|
1086
|
+
$scope.error = gettextCatalog.getString("Date is not valid", null, "Nice");
|
|
1087
|
+
$scope.niceDateInputForm.$setValidity('valid-date', false);
|
|
943
1088
|
}
|
|
1089
|
+
if ($scope.dateInput) $scope.dateInput.setCustomValidity($scope.error);
|
|
944
1090
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
945
1091
|
$scope.niceDateInputForm.$setDirty();
|
|
946
1092
|
};
|
|
@@ -948,6 +1094,8 @@ angular.module('niceElements')
|
|
|
948
1094
|
// -------------------- Clear --------------------
|
|
949
1095
|
$scope.clear = function () {
|
|
950
1096
|
$scope.model = null;
|
|
1097
|
+
$scope.error = '';
|
|
1098
|
+
if ($scope.dateInput) $scope.dateInput.setCustomValidity($scope.error);
|
|
951
1099
|
if ($scope.onChange) $scope.onChange({ model: $scope.model });
|
|
952
1100
|
$scope.niceDateInputForm.$setDirty();
|
|
953
1101
|
};
|
|
@@ -964,26 +1112,19 @@ angular.module('niceElements')
|
|
|
964
1112
|
};
|
|
965
1113
|
$scope.formatModel();
|
|
966
1114
|
|
|
1115
|
+
// -------------------- Format date --------------------
|
|
1116
|
+
$scope.format = function (date) {
|
|
1117
|
+
return moment(date).format($scope.formatDate + ($scope.time ? (" • " + $scope.formatTime) : ""));
|
|
1118
|
+
};
|
|
1119
|
+
|
|
967
1120
|
// -------------------- Date --------------------
|
|
968
1121
|
$scope.dateBlur = function () {
|
|
969
|
-
|
|
970
|
-
if (newDate.isValid()) {
|
|
971
|
-
$scope.niceDateInputForm.$setValidity('validDate', true);
|
|
972
|
-
$scope.handleChange();
|
|
973
|
-
} else {
|
|
974
|
-
$scope.niceDateInputForm.$setValidity('validDate', false);
|
|
975
|
-
}
|
|
1122
|
+
$scope.handleChange();
|
|
976
1123
|
};
|
|
977
1124
|
|
|
978
1125
|
// -------------------- Time --------------------
|
|
979
1126
|
$scope.timeBlur = function () {
|
|
980
|
-
|
|
981
|
-
if (newTime.isValid()) {
|
|
982
|
-
$scope.niceDateInputForm.$setValidity('validDate', true);
|
|
983
|
-
$scope.handleChange();
|
|
984
|
-
} else {
|
|
985
|
-
$scope.niceDateInputForm.$setValidity('validDate', false);
|
|
986
|
-
}
|
|
1127
|
+
$scope.handleChange();
|
|
987
1128
|
};
|
|
988
1129
|
|
|
989
1130
|
// -------------------- Watch model --------------------
|
|
@@ -5223,12 +5364,12 @@ angular.module('niceElements')
|
|
|
5223
5364
|
$scope.close = function () {
|
|
5224
5365
|
$scope.isOpen = false;
|
|
5225
5366
|
|
|
5226
|
-
const input = $element[0].getElementsByTagName('input')[0];
|
|
5227
|
-
if (input) input.blur();
|
|
5367
|
+
// const input = $element[0].getElementsByTagName('input')[0];
|
|
5368
|
+
// if (input) input.blur();
|
|
5228
5369
|
|
|
5229
5370
|
$timeout(function () {
|
|
5230
5371
|
$scope.popper.update();
|
|
5231
|
-
})
|
|
5372
|
+
});
|
|
5232
5373
|
};
|
|
5233
5374
|
|
|
5234
5375
|
|
|
@@ -5279,7 +5420,7 @@ angular.module('niceElements')
|
|
|
5279
5420
|
$scope.buttonClicked = function () {
|
|
5280
5421
|
if (!$scope.loading && $scope.model != '') $scope.clear();
|
|
5281
5422
|
if (!$scope.loading && $scope.model == '') $scope.onFocus();
|
|
5282
|
-
}
|
|
5423
|
+
};
|
|
5283
5424
|
|
|
5284
5425
|
// ------------------------ If search button is clicked set focus or make request ------------------------
|
|
5285
5426
|
$scope.search = function () {
|
|
@@ -5370,7 +5511,7 @@ angular.module('niceElements')
|
|
|
5370
5511
|
}
|
|
5371
5512
|
});
|
|
5372
5513
|
}
|
|
5373
|
-
}
|
|
5514
|
+
};
|
|
5374
5515
|
});
|
|
5375
5516
|
|
|
5376
5517
|
'use strict';
|
|
@@ -6261,7 +6402,7 @@ angular.module('niceElements')
|
|
|
6261
6402
|
.service('NiceService', function ($rootScope) {
|
|
6262
6403
|
const service = {
|
|
6263
6404
|
name: "Nice elements",
|
|
6264
|
-
version: "1.12.
|
|
6405
|
+
version: "1.12.7",
|
|
6265
6406
|
getHeader: function () {
|
|
6266
6407
|
return {};
|
|
6267
6408
|
},
|
|
@@ -6271,7 +6412,7 @@ angular.module('niceElements')
|
|
|
6271
6412
|
};
|
|
6272
6413
|
|
|
6273
6414
|
return service;
|
|
6274
|
-
})
|
|
6415
|
+
});
|
|
6275
6416
|
angular.module('niceElements')
|
|
6276
6417
|
.directive('niceMultilangualModal', function () {
|
|
6277
6418
|
return {
|
|
@@ -6354,6 +6495,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6354
6495
|
);
|
|
6355
6496
|
|
|
6356
6497
|
|
|
6498
|
+
$templateCache.put('src/components/nice-avatar/nice-avatar.html',
|
|
6499
|
+
"<canvas class=\"nice-avatar\"></canvas>"
|
|
6500
|
+
);
|
|
6501
|
+
|
|
6502
|
+
|
|
6357
6503
|
$templateCache.put('src/components/nice-button-toggle/nice-button-toggle.html',
|
|
6358
6504
|
"<div class=\"nice-component nice-button-toggle row\">\n" +
|
|
6359
6505
|
" <div class=\"col-xs-offset-4 col-xs-8\">\n" +
|
|
@@ -6477,7 +6623,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6477
6623
|
" <button type=\"button\" class=\"btn nice-checkbox-checkbox\" ng-disabled=\"isDisabled\">\n" +
|
|
6478
6624
|
" <nice-icon class=\"nice-checkbox-check\" icon=\"icon-check\"></nice-icon>\n" +
|
|
6479
6625
|
" </button>\n" +
|
|
6480
|
-
" <div
|
|
6626
|
+
" <div class=\"nice-checkbox-info\" ng-transclude>\n" +
|
|
6627
|
+
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"niceDescription\" label-width=\"col-xs-12\"></nice-title>\n" +
|
|
6628
|
+
" \n" +
|
|
6629
|
+
" \n" +
|
|
6630
|
+
" </div>\n" +
|
|
6481
6631
|
"</div>"
|
|
6482
6632
|
);
|
|
6483
6633
|
|
|
@@ -6521,56 +6671,63 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
6521
6671
|
|
|
6522
6672
|
|
|
6523
6673
|
$templateCache.put('src/components/nice-date-input/nice-date-input.html',
|
|
6524
|
-
"<
|
|
6674
|
+
"<ng-form class=\"nice-component nice-date-input\" name=\"niceDateInputForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline, 'error': niceDateInputForm.$invalid, 'nice-date-input-no-date': !date }\">\n" +
|
|
6525
6675
|
" <div class=\"row\">\n" +
|
|
6526
6676
|
" \n" +
|
|
6527
6677
|
" <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" label-width=\"labelWidth\"></nice-title>\n" +
|
|
6528
6678
|
"\n" +
|
|
6529
6679
|
" \n" +
|
|
6530
6680
|
" <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
|
|
6531
|
-
" <div class=\"
|
|
6532
|
-
" <
|
|
6533
|
-
"
|
|
6534
|
-
" <nice-popup
|
|
6535
|
-
" <
|
|
6536
|
-
" <
|
|
6537
|
-
" <
|
|
6538
|
-
"
|
|
6681
|
+
" <div class=\"nice-date-field\">\n" +
|
|
6682
|
+
" <div class=\"input-group nice-date-input\" ng-show=\"date\" ng-class=\"{ 'has-warning': !disabled && niceDateInputForm.$invalid && niceDateInputForm.$dirty }\">\n" +
|
|
6683
|
+
" <input type=\"text\" class=\"form-control nice-date-input-field\" ng-model=\"modelDate\" placeholder=\"{{ placeholderDate }}\" ng-blur=\"dateBlur($event)\" ng-required=\"required\" ng-disabled=\"isDisabled\">\n" +
|
|
6684
|
+
" <nice-popup placement=\"bottom\">\n" +
|
|
6685
|
+
" <nice-popup-target>\n" +
|
|
6686
|
+
" <span class=\"input-group-btns input-group-btn\">\n" +
|
|
6687
|
+
" <button type=\"button\" class=\"btn btn-default btn-right\" ng-if=\"model && nullable\" tabindex=\"-1\" ng-disabled=\"isDisabled\" ng-click=\"clear()\">\n" +
|
|
6688
|
+
" <nice-icon icon=\"icon-x\"></nice-icon>\n" +
|
|
6689
|
+
" </button>\n" +
|
|
6690
|
+
"\n" +
|
|
6691
|
+
" <button type=\"button\" class=\"btn btn-default btn-right\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
|
|
6692
|
+
" <nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
|
|
6693
|
+
" </button>\n" +
|
|
6694
|
+
" </span>\n" +
|
|
6695
|
+
" </nice-popup-target>\n" +
|
|
6539
6696
|
"\n" +
|
|
6540
|
-
"
|
|
6541
|
-
"
|
|
6542
|
-
"
|
|
6543
|
-
"
|
|
6544
|
-
"
|
|
6697
|
+
" <nice-popup-content>\n" +
|
|
6698
|
+
" <nice-date is-inline=\"true\" inline=\"true\" model=\"inner.dateModel\" on-change=\"dateChanged()\" no-margin=\"true\" min-date=\"minDate\" max-date=\"maxDate\" is-disabled=\"isDisabled\"></nice-date>\n" +
|
|
6699
|
+
" </nice-popup-content>\n" +
|
|
6700
|
+
" </nice-popup>\n" +
|
|
6701
|
+
" </div>\n" +
|
|
6545
6702
|
"\n" +
|
|
6546
|
-
"
|
|
6547
|
-
"
|
|
6548
|
-
"
|
|
6549
|
-
"
|
|
6550
|
-
"
|
|
6551
|
-
"
|
|
6552
|
-
"
|
|
6553
|
-
"
|
|
6554
|
-
"
|
|
6555
|
-
"
|
|
6556
|
-
"
|
|
6557
|
-
"
|
|
6558
|
-
" </
|
|
6703
|
+
" <div class=\"input-group nice-time-input\" ng-show=\"time\" ng-class=\"{ 'has-warning': !disabled && niceDateInputForm.$invalid && niceDateInputForm.$dirty }\">\n" +
|
|
6704
|
+
" <input type=\"text\" class=\"form-control nice-time-input-field\" ng-model=\"modelTime\" placeholder=\"{{ placeholderTime }}\" ng-blur=\"timeBlur($event)\" ng-required=\"required\" ng-disabled=\"isDisabled\">\n" +
|
|
6705
|
+
" <nice-popup placement=\"bottom\">\n" +
|
|
6706
|
+
" <nice-popup-target>\n" +
|
|
6707
|
+
" <span class=\"input-group-btns input-group-btn\">\n" +
|
|
6708
|
+
" <button type=\"button\" class=\"btn btn-default btn-right\" ng-if=\"model && nullable && !date\" tabindex=\"-1\" ng-disabled=\"isDisabled\" ng-click=\"clear()\">\n" +
|
|
6709
|
+
" <nice-icon icon=\"icon-x\"></nice-icon>\n" +
|
|
6710
|
+
" </button>\n" +
|
|
6711
|
+
"\n" +
|
|
6712
|
+
" <button type=\"button\" class=\"btn btn-default btn-right\" tabindex=\"-1\" ng-disabled=\"isDisabled\">\n" +
|
|
6713
|
+
" <nice-icon icon=\"icon-clock\"></nice-icon>\n" +
|
|
6714
|
+
" </button>\n" +
|
|
6715
|
+
" </span>\n" +
|
|
6716
|
+
" </nice-popup-target>\n" +
|
|
6559
6717
|
"\n" +
|
|
6560
|
-
"
|
|
6561
|
-
"
|
|
6562
|
-
"
|
|
6563
|
-
"
|
|
6564
|
-
"
|
|
6718
|
+
" <nice-popup-content>\n" +
|
|
6719
|
+
" <nice-date is-inline=\"true\" inline=\"true\" model=\"inner.timeModel\" on-change=\"timeChanged()\" time=\"true\" date=\"false\" no-margin=\"true\" is-disabled=\"isDisabled\"></nice-date>\n" +
|
|
6720
|
+
" </nice-popup-content>\n" +
|
|
6721
|
+
" </nice-popup>\n" +
|
|
6722
|
+
" </div>\n" +
|
|
6723
|
+
" </div>\n" +
|
|
6565
6724
|
"\n" +
|
|
6566
|
-
"
|
|
6567
|
-
"
|
|
6568
|
-
" </nice-popup-content>\n" +
|
|
6569
|
-
" </nice-popup>\n" +
|
|
6725
|
+
" <div class=\"error-message\" ng-if=\"error\">\n" +
|
|
6726
|
+
" <div class=\"error-message\">{{ error }}</div>\n" +
|
|
6570
6727
|
" </div>\n" +
|
|
6571
6728
|
" </div>\n" +
|
|
6572
6729
|
" </div>\n" +
|
|
6573
|
-
"</
|
|
6730
|
+
"</ng-form>"
|
|
6574
6731
|
);
|
|
6575
6732
|
|
|
6576
6733
|
|
|
@@ -8593,6 +8750,41 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
|
|
|
8593
8750
|
" <path d=\"M25.2931 11.293L15.0001 21.586L10.7071 17.293C10.3161 16.902 9.68312 16.902 9.29312 17.293C8.90312 17.684 8.90212 18.317 9.29312 18.707L14.2931 23.707C14.6841 24.098 15.3171 24.098 15.7071 23.707L26.7071 12.707C27.0981 12.316 27.0981 11.683 26.7071 11.293C26.3161 10.903 25.6831 10.902 25.2931 11.293V11.293Z\"/>\n" +
|
|
8594
8751
|
" </symbol>\n" +
|
|
8595
8752
|
"\n" +
|
|
8753
|
+
" <symbol id=\"icon-input-quantity\" viewBox=\"0 0 24 24\">\n" +
|
|
8754
|
+
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 5H3C2.44772 5 2 5.44772 2 6V18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18V6C22 5.44772 21.5523 5 21 5ZM3 3C1.34315 3 0 4.34315 0 6V18C0 19.6569 1.34315 21 3 21H21C22.6569 21 24 19.6569 24 18V6C24 4.34315 22.6569 3 21 3H3Z\"/>\n" +
|
|
8755
|
+
" <path d=\"M11.9986 16.1758C11.3267 16.1732 10.7486 16.0078 10.2642 15.6797C9.78243 15.3516 9.41133 14.8763 9.15092 14.2539C8.89311 13.6315 8.7655 12.8828 8.76811 12.0078C8.76811 11.1354 8.89701 10.3919 9.15482 9.77734C9.41524 9.16276 9.78633 8.69531 10.2681 8.375C10.7525 8.05208 11.3293 7.89062 11.9986 7.89062C12.6678 7.89062 13.2434 8.05208 13.7251 8.375C14.2095 8.69792 14.5819 9.16667 14.8423 9.78125C15.1027 10.3932 15.2316 11.1354 15.229 12.0078C15.229 12.8854 15.0988 13.6354 14.8384 14.2578C14.5806 14.8802 14.2108 15.3555 13.729 15.6836C13.2473 16.0117 12.6704 16.1758 11.9986 16.1758ZM11.9986 14.7734C12.4569 14.7734 12.8228 14.543 13.0962 14.082C13.3697 13.6211 13.5051 12.9297 13.5025 12.0078C13.5025 11.401 13.44 10.8958 13.315 10.4922C13.1926 10.0885 13.0181 9.78516 12.7915 9.58203C12.5676 9.37891 12.3033 9.27734 11.9986 9.27734C11.5428 9.27734 11.1783 9.50521 10.9048 9.96094C10.6314 10.4167 10.4934 11.099 10.4908 12.0078C10.4908 12.6224 10.552 13.1354 10.6744 13.5469C10.7994 13.9557 10.9751 14.263 11.2017 14.4688C11.4283 14.6719 11.6939 14.7734 11.9986 14.7734Z\"/>\n" +
|
|
8756
|
+
" <path d=\"M17.25 12.25H18.75V13.75C18.75 13.888 18.862 14 19 14C19.138 14 19.25 13.888 19.25 13.75V12.25H20.75C20.888 12.25 21 12.138 21 12C21 11.862 20.888 11.75 20.75 11.75H19.25V10.25C19.25 10.112 19.138 10 19 10C18.862 10 18.75 10.112 18.75 10.25V11.75H17.25C17.112 11.75 17 11.862 17 12C17 12.138 17.112 12.25 17.25 12.25Z\"/>\n" +
|
|
8757
|
+
" <path d=\"M3.25 12.25H6.75C6.888 12.25 7 12.1492 7 12.025C7 11.9008 6.888 11.8 6.75 11.8H3.25C3.112 11.8 3 11.9008 3 12.025C3 12.1492 3.112 12.25 3.25 12.25Z\"/>\n" +
|
|
8758
|
+
" </symbol>\n" +
|
|
8759
|
+
"\n" +
|
|
8760
|
+
" <symbol id=\"icon-input-percent\" viewBox=\"0 0 24 24\">\n" +
|
|
8761
|
+
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 5H3C2.44772 5 2 5.44772 2 6V18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18V6C22 5.44772 21.5523 5 21 5ZM3 3C1.34315 3 0 4.34315 0 6V18C0 19.6569 1.34315 21 3 21H21C22.6569 21 24 19.6569 24 18V6C24 4.34315 22.6569 3 21 3H3Z\"/>\n" +
|
|
8762
|
+
" <path d=\"M8.02734 14.5V14.0781C8.02734 13.7578 8.09505 13.4635 8.23047 13.1953C8.36849 12.9245 8.56771 12.7083 8.82812 12.5469C9.09115 12.3828 9.41146 12.3008 9.78906 12.3008C10.1719 12.3008 10.4935 12.3815 10.7539 12.543C11.0169 12.7044 11.2148 12.9206 11.3477 13.1914C11.4831 13.4596 11.5508 13.7552 11.5508 14.0781V14.5C11.5508 14.8203 11.4831 15.1159 11.3477 15.3867C11.2122 15.6549 11.013 15.8698 10.75 16.0312C10.487 16.1953 10.1667 16.2773 9.78906 16.2773C9.40625 16.2773 9.08464 16.1953 8.82422 16.0312C8.5638 15.8698 8.36589 15.6549 8.23047 15.3867C8.09505 15.1159 8.02734 14.8203 8.02734 14.5ZM9.16406 14.0781V14.5C9.16406 14.6849 9.20833 14.8594 9.29688 15.0234C9.38802 15.1875 9.55208 15.2695 9.78906 15.2695C10.026 15.2695 10.1875 15.1888 10.2734 15.0273C10.362 14.8659 10.4063 14.6901 10.4063 14.5V14.0781C10.4063 13.888 10.3646 13.7109 10.2812 13.5469C10.1979 13.3828 10.0339 13.3008 9.78906 13.3008C9.55469 13.3008 9.39193 13.3828 9.30078 13.5469C9.20964 13.7109 9.16406 13.888 9.16406 14.0781ZM3.92188 9.92188V9.5C3.92188 9.17708 3.99089 8.88151 4.12891 8.61328C4.26693 8.34245 4.46615 8.1263 4.72656 7.96484C4.98958 7.80339 5.30729 7.72266 5.67969 7.72266C6.0651 7.72266 6.38802 7.80339 6.64844 7.96484C6.90885 8.1263 7.10677 8.34245 7.24219 8.61328C7.3776 8.88151 7.44531 9.17708 7.44531 9.5V9.92188C7.44531 10.2448 7.3763 10.5404 7.23828 10.8086C7.10286 11.0768 6.90365 11.2917 6.64062 11.4531C6.38021 11.612 6.0599 11.6914 5.67969 11.6914C5.29948 11.6914 4.97786 11.6107 4.71484 11.4492C4.45443 11.2852 4.25651 11.0703 4.12109 10.8047C3.98828 10.5365 3.92188 10.2422 3.92188 9.92188ZM5.06641 9.5V9.92188C5.06641 10.112 5.11068 10.2878 5.19922 10.4492C5.29036 10.6107 5.45052 10.6914 5.67969 10.6914C5.91927 10.6914 6.08203 10.6107 6.16797 10.4492C6.25651 10.2878 6.30078 10.112 6.30078 9.92188V9.5C6.30078 9.3099 6.25911 9.13281 6.17578 8.96875C6.09245 8.80469 5.92708 8.72266 5.67969 8.72266C5.44792 8.72266 5.28776 8.80599 5.19922 8.97266C5.11068 9.13932 5.06641 9.3151 5.06641 9.5ZM4.4375 16L9.9375 8H10.9609L5.46094 16H4.4375Z\"/>\n" +
|
|
8763
|
+
" </symbol>\n" +
|
|
8764
|
+
"\n" +
|
|
8765
|
+
" <symbol id=\"icon-input-number\" viewBox=\"0 0 24 24\">\n" +
|
|
8766
|
+
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 5H3C2.44772 5 2 5.44772 2 6V18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18V6C22 5.44772 21.5523 5 21 5ZM3 3C1.34315 3 0 4.34315 0 6V18C0 19.6569 1.34315 21 3 21H21C22.6569 21 24 19.6569 24 18V6C24 4.34315 22.6569 3 21 3H3Z\"/>\n" +
|
|
8767
|
+
" <path d=\"M9.03027 16V14.7812L11.8779 12.1445C12.1201 11.9102 12.3232 11.6992 12.4873 11.5117C12.654 11.3242 12.7803 11.1406 12.8662 10.9609C12.9521 10.7786 12.9951 10.582 12.9951 10.3711C12.9951 10.1367 12.9417 9.9349 12.835 9.76563C12.7282 9.59375 12.5824 9.46224 12.3975 9.37109C12.2126 9.27734 12.0029 9.23047 11.7686 9.23047C11.5238 9.23047 11.3102 9.27995 11.1279 9.37891C10.9456 9.47786 10.805 9.61979 10.7061 9.80469C10.6071 9.98958 10.5576 10.2096 10.5576 10.4648H8.95215C8.95215 9.94141 9.07064 9.48698 9.30762 9.10156C9.5446 8.71615 9.87663 8.41797 10.3037 8.20703C10.7308 7.99609 11.223 7.89062 11.7803 7.89062C12.3532 7.89062 12.8519 7.99219 13.2764 8.19531C13.7035 8.39583 14.0355 8.67448 14.2725 9.03125C14.5094 9.38802 14.6279 9.79688 14.6279 10.2578C14.6279 10.5599 14.568 10.8581 14.4482 11.1523C14.3311 11.4466 14.1214 11.7734 13.8193 12.1328C13.5173 12.4896 13.0915 12.918 12.542 13.418L11.374 14.5625V14.6172H14.7334V16H9.03027Z\"/>\n" +
|
|
8768
|
+
" <path d=\"M7.12891 8V16H5.4375V9.60547H5.39062L3.55859 10.7539V9.25391L5.53906 8H7.12891Z\"/>\n" +
|
|
8769
|
+
" </symbol>\n" +
|
|
8770
|
+
"\n" +
|
|
8771
|
+
" <symbol id=\"icon-input-text\" viewBox=\"0 0 24 24\">\n" +
|
|
8772
|
+
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 5H3C2.44772 5 2 5.44772 2 6V18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18V6C22 5.44772 21.5523 5 21 5ZM3 3C1.34315 3 0 4.34315 0 6V18C0 19.6569 1.34315 21 3 21H21C22.6569 21 24 19.6569 24 18V6C24 4.34315 22.6569 3 21 3H3Z\"/>\n" +
|
|
8773
|
+
" <path d=\"M11.9238 16V8H15.127C15.7155 8 16.2064 8.08724 16.5996 8.26172C16.9928 8.4362 17.2884 8.67839 17.4863 8.98828C17.6842 9.29557 17.7832 9.64974 17.7832 10.0508C17.7832 10.3633 17.7207 10.638 17.5957 10.875C17.4707 11.1094 17.2988 11.3021 17.0801 11.4531C16.8639 11.6016 16.6165 11.707 16.3379 11.7695V11.8477C16.6426 11.8607 16.9277 11.9466 17.1934 12.1055C17.4616 12.2643 17.679 12.487 17.8457 12.7734C18.0124 13.0573 18.0957 13.3958 18.0957 13.7891C18.0957 14.2135 17.9902 14.5924 17.7793 14.9258C17.571 15.2565 17.2624 15.5182 16.8535 15.7109C16.4447 15.9036 15.9408 16 15.3418 16H11.9238ZM13.6152 14.6172H14.9941C15.4655 14.6172 15.8092 14.5273 16.0254 14.3477C16.2415 14.1654 16.3496 13.9232 16.3496 13.6211C16.3496 13.3997 16.2962 13.2044 16.1895 13.0352C16.0827 12.8659 15.9303 12.7331 15.7324 12.6367C15.5371 12.5404 15.304 12.4922 15.0332 12.4922H13.6152V14.6172ZM13.6152 11.3477H14.8691C15.1009 11.3477 15.3066 11.3073 15.4863 11.2266C15.6686 11.1432 15.8118 11.026 15.916 10.875C16.0228 10.724 16.0762 10.543 16.0762 10.332C16.0762 10.043 15.9733 9.8099 15.7676 9.63281C15.5645 9.45573 15.2754 9.36719 14.9004 9.36719H13.6152V11.3477Z\"/>\n" +
|
|
8774
|
+
" <path d=\"M5.07422 16H3.26172L6.02344 8H8.20312L10.9609 16H9.14844L7.14453 9.82813H7.08203L5.07422 16ZM4.96094 12.8555H9.24219V14.1758H4.96094V12.8555Z\"/>\n" +
|
|
8775
|
+
" </symbol>\n" +
|
|
8776
|
+
"\n" +
|
|
8777
|
+
" <symbol id=\"icon-input\" viewBox=\"0 0 24 24\">\n" +
|
|
8778
|
+
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 5H3C2.44772 5 2 5.44772 2 6V18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18V6C22 5.44772 21.5523 5 21 5ZM3 3C1.34315 3 0 4.34315 0 6V18C0 19.6569 1.34315 21 3 21H21C22.6569 21 24 19.6569 24 18V6C24 4.34315 22.6569 3 21 3H3Z\"/>\n" +
|
|
8779
|
+
" <path d=\"M7 17H5L5 7H7L7 17Z\"/>\n" +
|
|
8780
|
+
" </symbol>\n" +
|
|
8781
|
+
"\n" +
|
|
8782
|
+
" <symbol id=\"icon-dropdown\" viewBox=\"0 0 24 24\">\n" +
|
|
8783
|
+
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21 5H3C2.44772 5 2 5.44772 2 6V18C2 18.5523 2.44772 19 3 19H21C21.5523 19 22 18.5523 22 18V6C22 5.44772 21.5523 5 21 5ZM3 3C1.34315 3 0 4.34315 0 6V18C0 19.6569 1.34315 21 3 21H21C22.6569 21 24 19.6569 24 18V6C24 4.34315 22.6569 3 21 3H3Z\"/>\n" +
|
|
8784
|
+
" <path d=\"M14.3267 10.9481C14.1175 10.5991 14.2308 10.1469 14.5797 9.93748C14.9287 9.72809 15.3811 9.84093 15.5906 10.1898L14.3267 10.9481ZM20.0134 10.9483L17.8019 14.634C17.6687 14.8557 17.4289 14.9912 17.1703 14.9913C16.9114 14.9913 16.6714 14.8555 16.5382 14.6335L14.3267 10.9481L15.5906 10.1898L17.1706 12.8216L18.7487 10.1901L18.7911 10.1276C19.0146 9.82829 19.4329 9.74063 19.7601 9.93682C20.0874 10.1332 20.2077 10.5439 20.0489 10.882L20.0134 10.9483Z\"/>\n" +
|
|
8785
|
+
" </symbol>\n" +
|
|
8786
|
+
"\n" +
|
|
8787
|
+
"\n" +
|
|
8596
8788
|
" <symbol id=\"icon-seat\" viewBox=\"0 0 370 370\">\n" +
|
|
8597
8789
|
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M31 261H339V300C339 329.823 314.823 354 285 354H85C55.1766 354 31 329.823 31 300V261ZM73.372 321C65.9937 316.906 61 309.036 61 300V291H309V300C309 309.036 304.006 316.906 296.628 321C293.183 322.911 289.219 324 285 324H85C80.7813 324 76.8167 322.911 73.372 321Z\"></path>\n" +
|
|
8598
8790
|
" <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M339 291H249V227C249 202.147 269.147 182 294 182C318.853 182 339 202.147 339 227V291ZM309 227C309 218.716 302.284 212 294 212C285.716 212 279 218.716 279 227V261H309V227Z\"></path>\n" +
|