nice-elements 1.14.1 → 1.15.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.
Files changed (56) hide show
  1. package/.claude/launch.json +11 -0
  2. package/CHANGELOG.md +28 -0
  3. package/CLAUDE.md +89 -0
  4. package/README.md +3 -1
  5. package/bower.json +1 -1
  6. package/dist/nice.js +707 -112
  7. package/dist/nice.min.js +1 -1
  8. package/dist/style.css +198 -11
  9. package/dist/style.css.map +1 -1
  10. package/dist/style.min.css +2 -2
  11. package/package.json +2 -2
  12. package/src/components/nice-badges-list/nice-badges-list.html +13 -0
  13. package/src/components/nice-badges-list/nice-badges-list.js +135 -0
  14. package/src/components/nice-badges-list/nice-badges-list.scss +75 -0
  15. package/src/components/nice-calendar/nice-calendar.html +4 -0
  16. package/src/components/nice-checkbox/nice-checkbox.html +11 -5
  17. package/src/components/nice-checkbox/nice-checkbox.js +1 -0
  18. package/src/components/nice-checkbox/nice-checkbox.scss +7 -0
  19. package/src/components/nice-choice/nice-choice.js +11 -0
  20. package/src/components/nice-date/nice-date.html +10 -1
  21. package/src/components/nice-date/nice-date.js +50 -1
  22. package/src/components/nice-date/nice-date.scss +1 -0
  23. package/src/components/nice-date-input/nice-date-input.js +1 -1
  24. package/src/components/nice-date-range/nice-date-range.html +1 -1
  25. package/src/components/nice-date-range/nice-date-range.js +7 -7
  26. package/src/components/nice-datetime-picker/nice-datetime-picker.html +6 -3
  27. package/src/components/nice-datetime-picker/nice-datetime-picker.js +7 -2
  28. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.html +2 -2
  29. package/src/components/nice-dialog/nice-dialog.html +16 -0
  30. package/src/components/nice-dialog/nice-dialog.js +47 -0
  31. package/src/components/nice-dialog/nice-dialog.scss +126 -0
  32. package/src/components/nice-dropdown/nice-dropdown.js +16 -4
  33. package/src/components/nice-dropdown/nice-dropdown.scss +0 -11
  34. package/src/components/nice-dropdown-date/nice-dropdown-date.js +3 -1
  35. package/src/components/nice-input/nice-input.js +12 -8
  36. package/src/components/nice-no-data/nice-no-data.js +3 -1
  37. package/src/components/nice-number/nice-number.html +23 -9
  38. package/src/components/nice-number/nice-number.js +81 -12
  39. package/src/components/nice-percent/nice-percent.js +15 -6
  40. package/src/components/nice-popup/nice-popup.js +2 -2
  41. package/src/components/nice-search/nice-search.html +2 -4
  42. package/src/components/nice-search/nice-search.js +40 -20
  43. package/src/components/nice-search2/nice-search2.html +1 -1
  44. package/src/components/nice-search2/nice-search2.js +1 -0
  45. package/src/components/nice-svgs/nice-svgs.html +165 -20
  46. package/src/components/nice-table/nice-table.js +9 -4
  47. package/src/components/nice-toggle/nice-toggle.html +3 -0
  48. package/src/components/nice-upload/nice-upload.html +1 -1
  49. package/src/components/nice-view/_nice-view.scss +10 -1
  50. package/src/components/nice-view/nice-view.html +1 -0
  51. package/src/components/nice-wrapper/nice-wrapper.js +3 -1
  52. package/src/components/nice-yesno/nice-yesno.html +3 -0
  53. package/src/components/nice-yesno/nice-yesno.js +4 -2
  54. package/src/services/nice-service.js +16 -1
  55. package/src/styles/_nice-common.scss +17 -0
  56. package/src/styles/_nice.scss +2 -0
package/dist/nice.js CHANGED
@@ -155,6 +155,142 @@ angular.module('niceElements')
155
155
  };
156
156
  });
157
157
 
158
+ 'use strict';
159
+
160
+ /**
161
+ * @ngdoc directive
162
+ * @name niceElements.directive:niceBadgesList
163
+ * @description
164
+ * # niceBadgesList
165
+ * Row of small badges that shows the first few items and collapses the rest into a "+X more" toggle.
166
+ * `label` is an expression with `item` in scope, e.g. `label="item.name"`; without it the item itself is shown.
167
+ *
168
+ * With `full-width="true"` the list fills the available width: when collapsed it stays on one line and shows
169
+ * as many badges as fit (the `limit` is ignored), expanding shows all badges on multiple lines.
170
+ *
171
+ * Usage:
172
+ * <nice-badges-list items="row.ticket_types" label="item.name" limit="3" badge-class="badge-color-1"></nice-badges-list>
173
+ * <nice-badges-list items="row.ticket_types" label="item.name" full-width="true"></nice-badges-list>
174
+ */
175
+ angular.module('niceElements')
176
+ .directive('niceBadgesList', function ($timeout) {
177
+ return {
178
+ templateUrl: 'src/components/nice-badges-list/nice-badges-list.html',
179
+ restrict: 'E',
180
+ scope: {
181
+ items: '<',
182
+ label: '&?',
183
+ limit: '<?',
184
+ fullWidth: '<?',
185
+ badgeClass: '@?'
186
+ },
187
+ link: function (scope, element) {
188
+ scope.expanded = false;
189
+ scope.visibleCount = 0;
190
+
191
+ scope.getItemsLength = function () {
192
+ return scope.items ? scope.items.length : 0;
193
+ };
194
+
195
+ scope.getLimit = function () {
196
+ if (scope.fullWidth) return scope.visibleCount;
197
+ return angular.isNumber(scope.limit) ? scope.limit : 3;
198
+ };
199
+
200
+ scope.getHiddenCount = function () {
201
+ return Math.max(scope.getItemsLength() - scope.getLimit(), 0);
202
+ };
203
+
204
+ scope.getLabel = function (item) {
205
+ return scope.label ? scope.label({ item: item }) : item;
206
+ };
207
+
208
+ scope.toggle = function () {
209
+ scope.expanded = !scope.expanded;
210
+ };
211
+
212
+
213
+ // ---------- Full width: fit as many badges as possible in one line ----------
214
+
215
+ // Measures all badges laid out in a single line and returns how many fit next to the "+X more" toggle
216
+ function measureVisibleCount() {
217
+ var container = element[0].querySelector('.nice-badges-list');
218
+ if (!container) return 0;
219
+
220
+ container.classList.add('nice-badges-list-measuring');
221
+
222
+ var badges = container.querySelectorAll('.nice-badge-item');
223
+ var more = container.querySelector('.nice-badge-more');
224
+ var available = container.clientWidth;
225
+ var gap = parseFloat(window.getComputedStyle(container).columnGap) || 0;
226
+ var moreWidth = more ? more.getBoundingClientRect().width + gap : 0;
227
+
228
+ var widths = [];
229
+ var total = 0;
230
+ for (var i = 0; i < badges.length; i++) {
231
+ widths.push(badges[i].getBoundingClientRect().width);
232
+ total += widths[i] + (i > 0 ? gap : 0);
233
+ }
234
+
235
+ container.classList.remove('nice-badges-list-measuring');
236
+
237
+ // Everything fits, no toggle needed
238
+ if (total <= available) return widths.length;
239
+
240
+ var count = 0;
241
+ var used = moreWidth;
242
+ for (var j = 0; j < widths.length; j++) {
243
+ used += widths[j] + (j > 0 ? gap : 0);
244
+ if (used > available) break;
245
+ count++;
246
+ }
247
+
248
+ // Always show at least one badge (it gets truncated if it's too wide)
249
+ return Math.max(count, Math.min(1, widths.length));
250
+ }
251
+
252
+ function calculate() {
253
+ if (!scope.fullWidth) return;
254
+ var count = measureVisibleCount();
255
+ if (count !== scope.visibleCount) {
256
+ scope.visibleCount = count;
257
+ // The "+X more" label width depends on the count, so check once more after it re-renders
258
+ $timeout(function () {
259
+ var recount = measureVisibleCount();
260
+ if (recount < scope.visibleCount) scope.visibleCount = recount;
261
+ });
262
+ }
263
+ }
264
+
265
+ var lastWidth = null;
266
+ var resizeObserver = new ResizeObserver(function (entries) {
267
+ var width = entries[0].contentRect.width;
268
+ if (width === lastWidth) return;
269
+ lastWidth = width;
270
+ scope.$applyAsync(calculate);
271
+ });
272
+
273
+ scope.$watch('fullWidth', function (fullWidth) {
274
+ if (fullWidth) {
275
+ resizeObserver.observe(element[0]);
276
+ $timeout(calculate);
277
+ } else {
278
+ resizeObserver.disconnect();
279
+ lastWidth = null;
280
+ }
281
+ });
282
+
283
+ scope.$watchCollection('items', function () {
284
+ if (scope.fullWidth) $timeout(calculate);
285
+ });
286
+
287
+ scope.$on('$destroy', function () {
288
+ resizeObserver.disconnect();
289
+ });
290
+ }
291
+ };
292
+ });
293
+
158
294
 
159
295
  /**
160
296
  * @ngdoc directive
@@ -665,6 +801,7 @@ angular.module('niceElements')
665
801
  onChange: '&?',
666
802
  help: '@',
667
803
  isDisabled: '=',
804
+ required: '=', // Checkbox must be checked
668
805
  },
669
806
  controller: function ($scope) {
670
807
  if ($scope.model === undefined) $scope.model = false;
@@ -709,6 +846,7 @@ angular.module('niceElements')
709
846
  multiple: '=?',
710
847
  help: '@',
711
848
  isInline: '=?',
849
+ required: '=?',
712
850
  onChange: '&?'
713
851
  },
714
852
  controller: function ($attrs, $scope) {
@@ -888,6 +1026,16 @@ angular.module('niceElements')
888
1026
  }
889
1027
  });
890
1028
 
1029
+ // Required: something has to be selected (at least one item when multiple)
1030
+ const checkRequired = function () {
1031
+ if (!$scope.formChoice) return;
1032
+ let hasValue = $scope.model !== null && angular.isDefined($scope.model);
1033
+ if ($scope.multiple) hasValue = !!($scope.model && $scope.model.length);
1034
+ $scope.formChoice.$setValidity('required', !$scope.required || hasValue);
1035
+ };
1036
+ $scope.$watchCollection('model', checkRequired);
1037
+ $scope.$watch('required', checkRequired);
1038
+
891
1039
  }
892
1040
  };
893
1041
  });
@@ -1008,7 +1156,7 @@ angular.module('niceElements')
1008
1156
  if ($scope.time === undefined) $scope.time = true;
1009
1157
  if (!$scope.placeholderDate) { $scope.placeholderDate = gettextCatalog.getString("••.••.••••", null, "Nice"); }
1010
1158
  if (!$scope.placeholderTime) { $scope.placeholderTime = gettextCatalog.getString("••:••", null, "Nice"); }
1011
- if (!$scope.model && !$scope.nullable) $scope.model = moment($scope.model) || moment().set({ 'second': 0, 'millisecond': 0 });
1159
+ if (!$scope.model && !$scope.nullable) $scope.model = moment().set({ 'second': 0, 'millisecond': 0 });
1012
1160
  $scope.inner = {
1013
1161
  timeModel: angular.copy($scope.model || moment()),
1014
1162
  dateModel: angular.copy($scope.model || moment()),
@@ -1143,12 +1291,12 @@ angular.module('niceElements')
1143
1291
  required: '='
1144
1292
  },
1145
1293
 
1146
- link: function (scope, attrs) {
1147
- if (!attrs.title) { attrs.title = ''; }
1148
- if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
1149
- if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
1150
- if (!attrs.format) { attrs.format = 'dd.MM.yyyy'; }
1151
- attrs.noMargin = attrs.noMargin === 'true' || attrs.noMargin === true;
1294
+ link: function (scope) {
1295
+ if (!scope.title) { scope.title = ''; }
1296
+ if (!scope.fieldWidth) { scope.fieldWidth = 'col-sm-8'; }
1297
+ if (!scope.labelWidth) { scope.labelWidth = 'col-sm-4'; }
1298
+ if (!scope.format) { scope.format = 'dd.MM.yyyy'; }
1299
+ scope.noMargin = scope.noMargin === 'true' || scope.noMargin === true;
1152
1300
 
1153
1301
  if (!angular.isDefined(scope.model)) {
1154
1302
  let model = null;
@@ -1168,7 +1316,7 @@ angular.module('niceElements')
1168
1316
  }
1169
1317
  },
1170
1318
 
1171
- controller: function ($scope) {
1319
+ controller: function ($scope, gettextCatalog) {
1172
1320
  $scope.opts = {
1173
1321
  locale: {
1174
1322
  applyClass: 'btn-green',
@@ -1228,7 +1376,9 @@ angular.module('niceElements')
1228
1376
  placeholder: '@',
1229
1377
  placement: '@', // Describes the preferred placement of the popper
1230
1378
  },
1231
- controller: function ($scope, $element, $timeout, gettextCatalog) {
1379
+ controller: function ($scope, $attrs, $element, $timeout, gettextCatalog, NiceService) {
1380
+ NiceService.bindFlag($scope, $attrs, 'inline');
1381
+
1232
1382
  $scope.isOpen = false;
1233
1383
  if (!$scope.placement) { $scope.placement = "bottom-start"; }
1234
1384
  if (!$scope.placeholder) { $scope.placeholder = gettextCatalog.getString("Select date", null, "Nice"); }
@@ -1350,6 +1500,53 @@ angular.module('niceElements')
1350
1500
  };
1351
1501
 
1352
1502
 
1503
+ // ------------------ Typed date ------------------
1504
+ // Formats accepted when the date is typed in (strict parsing)
1505
+ const TYPED_DATE_FORMATS = ['D.M.YYYY', 'D.M.YY', 'D.M.', 'D.M'];
1506
+ const TYPED_TIME_FORMATS = ['D.M.YYYY H:mm', 'D.M.YY H:mm', 'D.M. H:mm', 'D.M H:mm'];
1507
+
1508
+ // Parse typed text on blur (or Enter). Invalid or out of range text reverts to the current model.
1509
+ $scope.parseTypedDate = function () {
1510
+ const text = ($scope.innerDate.value || "").replace("•", " ").replace(/\s+/g, " ").trim();
1511
+
1512
+ // Nothing changed
1513
+ if (text == $scope.formatDate($scope.model).replace("•", " ").replace(/\s+/g, " ")) return;
1514
+
1515
+ // Empty text clears the model, unless the field can't be empty
1516
+ if (!text) {
1517
+ if ($scope.nullable || $scope.required) $scope.setTypedDate(null);
1518
+ else $scope.innerDate.value = $scope.formatDate($scope.model);
1519
+ return;
1520
+ }
1521
+
1522
+ const formats = $scope.time ? TYPED_TIME_FORMATS.concat(TYPED_DATE_FORMATS) : TYPED_DATE_FORMATS;
1523
+ const date = moment(text, formats, true);
1524
+ if (!date.isValid() || _isDisabledDate(date)) {
1525
+ $scope.innerDate.value = $scope.formatDate($scope.model);
1526
+ return;
1527
+ }
1528
+
1529
+ if (!$scope.time) $scope._removeTime(date);
1530
+ $scope.setTypedDate(date);
1531
+ };
1532
+
1533
+ $scope.setTypedDate = function (date) {
1534
+ $scope.model = date;
1535
+ $scope.innerDate.value = $scope.formatDate($scope.model);
1536
+ $timeout(function () {
1537
+ if ($scope.onChange) $scope.onChange({ model: $scope.model });
1538
+ $scope.forma.$setDirty();
1539
+ });
1540
+ };
1541
+
1542
+ // Enter parses the text first, so the form is submitted with the typed date.
1543
+ // Enter and Tab also close the picker (it isn't closed on blur, because clicking a day blurs the input).
1544
+ $scope.typedDateKeydown = function (event) {
1545
+ if (event.keyCode == 13) $scope.parseTypedDate();
1546
+ if (event.keyCode == 13 || event.keyCode == 9) $scope.isOpen = false;
1547
+ };
1548
+
1549
+
1353
1550
  // ------------------ Clear ------------------
1354
1551
  $scope.clear = function () {
1355
1552
  $scope.isOpen = false;
@@ -1625,9 +1822,14 @@ angular.module('niceElements').directive('niceDatetimePicker', function () {
1625
1822
  console.warn("[NICE ELEMENTS] nice-datetime-picker component is deprecated!");
1626
1823
  $scope.date = $scope.date == 'true' || $scope.date == true;
1627
1824
  $scope.time = $scope.time == 'true' || $scope.time == true;
1628
- $scope.noMargin === 'true' || $scope.noMargin === true;
1629
- $scope.enableOkButtons === 'true' || $scope.enableOkButtons === true;
1825
+ $scope.noMargin = $scope.noMargin === 'true' || $scope.noMargin === true;
1826
+ $scope.enableOkButtons = $scope.enableOkButtons === 'true' || $scope.enableOkButtons === true;
1630
1827
  $scope.lang = $scope.lang || 'en';
1828
+
1829
+ // date/time are "@" attributes, so in the template they can be the string "true" or a boolean
1830
+ $scope.isTrue = function (value) {
1831
+ return value === true || value === 'true';
1832
+ };
1631
1833
  $scope.okText = $scope.okText || gettextCatalog.getString('OK', null, 'Nice');
1632
1834
  $scope.cancelText = $scope.cancelText || gettextCatalog.getString('Cancel', null, 'Nice');
1633
1835
  $scope.weekStart = parseInt($scope.weekStart) || 1;
@@ -2109,6 +2311,54 @@ angular.module('niceElements')
2109
2311
  });
2110
2312
  'use strict';
2111
2313
 
2314
+ /**
2315
+ * @ngdoc directive
2316
+ * @name niceElements.directive:niceDialog
2317
+ * @description
2318
+ * # niceDialog
2319
+ * Layout for dialog content (header, scrollable body, footer). Meant to be used inside an ngDialog template,
2320
+ * opened with `className: 'nice-ngdialog'` and `showClose: false` (close from the footer instead).
2321
+ * The whole dialog is a <form>, so `nice-submit` is called on submit (e.g. pressing enter or a type="submit" button).
2322
+ * Header / footer borders appear based on the body scroll position.
2323
+ *
2324
+ * Usage:
2325
+ * <nice-dialog nice-title="Edit" nice-subtitle="Event" nice-icon="icon-edit" nice-submit="save()">
2326
+ * ...body...
2327
+ * <nice-dialog-footer>
2328
+ * <button type="button" class="btn btn-default" ng-click="closeThisDialog()">Cancel</button>
2329
+ * <button type="submit" class="btn btn-primary">Save</button>
2330
+ * </nice-dialog-footer>
2331
+ * </nice-dialog>
2332
+ *
2333
+ * Pass <nice-dialog-header> to replace the default header (icon + subtitle + title).
2334
+ */
2335
+ angular.module('niceElements')
2336
+ .directive('niceDialog', function () {
2337
+ return {
2338
+ templateUrl: 'src/components/nice-dialog/nice-dialog.html',
2339
+ restrict: 'E',
2340
+ replace: true,
2341
+ transclude: {
2342
+ 'header': '?niceDialogHeader',
2343
+ 'footer': '?niceDialogFooter'
2344
+ },
2345
+ scope: {
2346
+ niceTitle: '@',
2347
+ niceIcon: '@',
2348
+ niceSubtitle: '@',
2349
+ niceSubmit: '&?',
2350
+ niceHideSubtitle: '=?'
2351
+ },
2352
+ link: function (scope) {
2353
+ scope.handleSubmit = function () {
2354
+ if (scope.niceSubmit) scope.niceSubmit();
2355
+ };
2356
+ }
2357
+ };
2358
+ });
2359
+
2360
+ 'use strict';
2361
+
2112
2362
  /**
2113
2363
  * @ngdoc directive
2114
2364
  * @name niceElements.directive:niceDropdownDate
@@ -2138,7 +2388,9 @@ angular.module('niceElements')
2138
2388
  onChange: '&?',
2139
2389
  required: '='
2140
2390
  },
2141
- controller: function ($scope, $timeout) {
2391
+ controller: function ($scope, $attrs, $timeout, NiceService) {
2392
+ NiceService.bindFlag($scope, $attrs, 'mature');
2393
+
2142
2394
  $scope.days = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
2143
2395
  $scope.months = [
2144
2396
  { value: 0, name: gettextCatalog.getString('Jan', null, 'Nice') },
@@ -2631,7 +2883,10 @@ angular.module('niceElements')
2631
2883
  enableLoadMore: '@', // Enable load more
2632
2884
  placement: '@', // Describes the preferred placement of the popper
2633
2885
  },
2634
- controller: function ($scope, $http, $element, $timeout, gettextCatalog, NiceService) {
2886
+ controller: function ($scope, $attrs, $http, $element, $timeout, gettextCatalog, NiceService) {
2887
+ NiceService.bindFlag($scope, $attrs, 'selectedIsKey');
2888
+ NiceService.bindFlag($scope, $attrs, 'enableLoadMore');
2889
+
2635
2890
  $scope.id = Math.random().toString(36).substring(7);
2636
2891
  if (!$scope.dropdownDistance) { $scope.dropdownDistance = 5; }
2637
2892
  if (!$scope.objValue) { $scope.objValue = 'value'; }
@@ -3030,11 +3285,20 @@ angular.module('niceElements')
3030
3285
  });
3031
3286
 
3032
3287
  // Handle required
3033
- $timeout(function () {
3034
- if ($scope.formDropdown) $scope.formDropdown.$setValidity('required', !(!$scope.selected && $scope.required));
3035
- });
3288
+ $timeout($scope.checkRequired);
3036
3289
  }
3037
3290
 
3291
+ // ----------------------------------- Required -----------------------------------
3292
+ // Form is invalid when required and nothing is selected
3293
+ $scope.checkRequired = function () {
3294
+ if ($scope.formDropdown) $scope.formDropdown.$setValidity('required', !(!$scope.selected && $scope.required));
3295
+ };
3296
+
3297
+ // Re-check when required is turned on/off
3298
+ $scope.$watch('required', function () {
3299
+ $scope.checkRequired();
3300
+ });
3301
+
3038
3302
  // ----------------------------------- Watch for keydown and keypress -----------------------------------
3039
3303
  // $element.bind("keydown keypress", function (event) {
3040
3304
  // // Arrow Up
@@ -4034,16 +4298,14 @@ angular.module('niceElements')
4034
4298
  autocomplete: "@?",
4035
4299
  disableTrim: "@?"
4036
4300
  },
4037
- controller: function ($scope, $attrs, $rootScope, $element, ngDialog, NiceService) {
4301
+ controller: function ($scope, $attrs, $rootScope, $element, $timeout, ngDialog, NiceService) {
4038
4302
  if (!$attrs.type) { $attrs.type = 'text'; }
4039
4303
  if (!$attrs.title) { $attrs.title = ''; }
4040
4304
  if (!$attrs.regex) { $attrs.regex = null; }
4041
4305
  if (!$attrs.placeholder) { $attrs.placeholder = ''; }
4042
- if (!$attrs.minlength) { $attrs.minlength = 1; }
4043
- if (!$attrs.maxlength) { $attrs.maxlength = 100; }
4044
4306
  if (!$attrs.fieldWidth) { $attrs.fieldWidth = 'col-sm-8'; }
4045
4307
  if (!$attrs.labelWidth) { $attrs.labelWidth = 'col-sm-4'; }
4046
- if (!$attrs.textAreaLines) { $attrs.textAreaLines = 3; }
4308
+ if (!$scope.textAreaLines) { $scope.textAreaLines = 3; }
4047
4309
  if (!$attrs.symbol) { $attrs.symbol = ''; }
4048
4310
  if (!$attrs.help) { $attrs.help = ''; }
4049
4311
  if (!$attrs.name) { $attrs.name = ''; }
@@ -4063,9 +4325,12 @@ angular.module('niceElements')
4063
4325
  $scope.elementType = "textarea";
4064
4326
  }
4065
4327
 
4328
+ // Focus after the input (rendered inside ng-if) is in the DOM
4066
4329
  if ($scope.isFocused) {
4067
- const input = $element[0].getElementsByTagName($scope.elementType)[0];
4068
- if (input) input.focus();
4330
+ $timeout(function () {
4331
+ const input = $element[0].getElementsByTagName($scope.elementType)[0];
4332
+ if (input) input.focus();
4333
+ });
4069
4334
  }
4070
4335
 
4071
4336
  if ($scope.numbersOnly) {
@@ -4100,8 +4365,11 @@ angular.module('niceElements')
4100
4365
  $scope.regexexp = new RegExp("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$");
4101
4366
  }
4102
4367
 
4103
- if (angular.isDefined($scope.valid)) {
4104
- $scope.valid = $scope.forma;
4368
+ // Link form object with valid object (the form only exists after the template is linked)
4369
+ if ($attrs.valid) {
4370
+ $scope.$watch('forma', function (form) {
4371
+ if (form) $scope.valid = form;
4372
+ });
4105
4373
  }
4106
4374
 
4107
4375
  if ($scope.model && !$scope.decimalConstructor && angular.isDefined($scope.minDecimalsCutZeros) && $scope.type == 'number') {
@@ -4353,7 +4621,9 @@ angular.module('niceElements')
4353
4621
  message: '@?',
4354
4622
  fulldiv: '@?'
4355
4623
  },
4356
- controller: function ($scope, gettextCatalog) {
4624
+ controller: function ($scope, $attrs, gettextCatalog, NiceService) {
4625
+ NiceService.bindFlag($scope, $attrs, 'fulldiv');
4626
+
4357
4627
  if ($scope.icon == "" || !$scope.icon) $scope.innerIcon = "icon-alert-circle";
4358
4628
  else $scope.innerIcon = $scope.icon;
4359
4629
  if ($scope.message == "" || !$scope.message) $scope.innerMessage = gettextCatalog.getString("No data");
@@ -4538,6 +4808,7 @@ angular.module('niceElements')
4538
4808
  noMargin: '@',
4539
4809
  step: '@',
4540
4810
  decimals: '@',
4811
+ lang: '@',
4541
4812
  allowNegative: '@',
4542
4813
  floatingError: '@',
4543
4814
  help: '@',
@@ -4545,14 +4816,20 @@ angular.module('niceElements')
4545
4816
  onChange: '&?'
4546
4817
  },
4547
4818
 
4548
- controller: function ($scope, $timeout, NiceService) {
4819
+ controller: function ($scope, $attrs, $timeout, NiceService, gettextCatalog) {
4820
+ NiceService.bindFlag($scope, $attrs, 'allowNegative');
4821
+ NiceService.bindFlag($scope, $attrs, 'hideError');
4822
+ NiceService.bindFlag($scope, $attrs, 'floatingError');
4823
+
4549
4824
  $scope.canAdd = true;
4550
4825
  $scope.canSubtract = true;
4551
4826
  $scope.preventZero = $scope.preventZero == "true";
4552
4827
 
4553
4828
  // Link form object with valid object
4554
- if ($scope.valid) {
4555
- $scope.valid = $scope.forma;
4829
+ if ($attrs.valid) {
4830
+ $scope.$watch('niceNumberForm', function (form) {
4831
+ if (form) $scope.valid = form;
4832
+ });
4556
4833
  }
4557
4834
 
4558
4835
  // Fix min
@@ -4570,12 +4847,22 @@ angular.module('niceElements')
4570
4847
  if ($scope.min != 0 && $scope.min != -Infinity) $scope.defaultValue = $scope.min;
4571
4848
  else $scope.defaultValue = 0;
4572
4849
  } else {
4573
- $scope.defaultValue = parseInt($scope.defaultValue);
4850
+ $scope.defaultValue = parseFloat($scope.defaultValue);
4574
4851
  }
4575
4852
 
4576
- // Fix decimals
4577
- if (!$scope.decimals) $scope.decimals = 0;
4578
- else $scope.decimals = parseInt($scope.decimals);
4853
+ // Decimal mode: when `decimals` is set, the input is a text field so "1.5" and "1,5" can be typed,
4854
+ // and values are rounded to `decimals` places. Kept in a local variable, because Angular
4855
+ // writes the "@" attribute back to $scope.decimals as a string.
4856
+ const decimalPlaces = parseInt($attrs.decimals);
4857
+ $scope.decimalMode = !Number.isNaN(decimalPlaces);
4858
+
4859
+ // Decimal separator of the locale, e.g. "." for "en" and "," for "sl".
4860
+ // Uses the `lang` attribute, or the app language from angular-gettext ("sl_SI" -> "sl-SI").
4861
+ const lang = ($attrs.lang || gettextCatalog.getCurrentLanguage()).replace("_", "-");
4862
+ const decimalSeparator = new Intl.NumberFormat(lang)
4863
+ .formatToParts(1.5)
4864
+ .find(function (part) { return part.type === "decimal"; })
4865
+ .value;
4579
4866
 
4580
4867
  // Fix step
4581
4868
  if (!$scope.step) $scope.step = 1;
@@ -4631,6 +4918,15 @@ angular.module('niceElements')
4631
4918
  $scope.niceNumberForm.$setValidity("zero", null);
4632
4919
  }
4633
4920
  }
4921
+
4922
+ // Text input has no built-in min/max validation, so decimal mode checks it here
4923
+ if ($scope.decimalMode && $scope.niceNumberForm) {
4924
+ const value = parseFloat($scope.model);
4925
+ const tooSmall = !Number.isNaN(value) && value < $scope.min;
4926
+ const tooBig = !Number.isNaN(value) && $scope.max && value > $scope.max;
4927
+ $scope.niceNumberForm.$setValidity("min", tooSmall ? false : null);
4928
+ $scope.niceNumberForm.$setValidity("max", tooBig ? false : null);
4929
+ }
4634
4930
  };
4635
4931
 
4636
4932
 
@@ -4640,11 +4936,35 @@ angular.module('niceElements')
4640
4936
  });
4641
4937
 
4642
4938
 
4643
- // Input model. <input type="number"> needs a number, so Decimal model is converted.
4939
+ // Returns a plain number, rounded to `decimals` places in decimal mode
4940
+ const round = function (value) {
4941
+ if (value == null) return null;
4942
+ if (!$scope.decimalMode) return Number(value);
4943
+ return new Decimal(value).toDecimalPlaces(decimalPlaces).toNumber();
4944
+ };
4945
+
4946
+ // Decimal mode: typed text -> number ("1,5" -> 1.5).
4947
+ // Returns null for empty text and NaN for text that is not a number.
4948
+ const parseText = function (text) {
4949
+ const cleaned = (text || "").trim().replace(",", ".");
4950
+ if (cleaned === "") return null;
4951
+ if (!/^-?(\d+\.?\d*|\.\d+)$/.test(cleaned)) return NaN;
4952
+ return parseFloat(cleaned);
4953
+ };
4954
+
4955
+ // Model -> input value. Number input needs a number, decimal mode needs text
4956
+ // with the locale separator. Decimal.toFixed() avoids exponent notation (1e-7).
4644
4957
  const toInternal = function (value) {
4958
+ if ($scope.decimalMode) return value == null ? "" : new Decimal(value).toFixed().replace(".", decimalSeparator);
4645
4959
  return NiceService.isDecimal(value) ? value.toNumber() : value;
4646
4960
  };
4647
4961
 
4962
+ // Does the input already show the model value? (In decimal mode "1,50" shows 1.5)
4963
+ const isInputInSync = function () {
4964
+ if (!$scope.decimalMode) return toInternal($scope.model) === $scope.internal.value;
4965
+ return round($scope.model) === round(parseText($scope.internal.value));
4966
+ };
4967
+
4648
4968
  const setModel = function (value) {
4649
4969
  if ($scope.decimalConstructor && value != null && !NiceService.isDecimal(value)) {
4650
4970
  value = new $scope.decimalConstructor(value);
@@ -4659,11 +4979,28 @@ angular.module('niceElements')
4659
4979
 
4660
4980
  // On input change
4661
4981
  $scope.inputChanged = function () {
4662
- setModel($scope.internal.value);
4982
+ if ($scope.decimalMode) {
4983
+ // Invalid text keeps the last valid model and marks the field invalid
4984
+ const value = parseText($scope.internal.value);
4985
+ const isNumber = !Number.isNaN(value);
4986
+ $scope.niceNumberForm.$setValidity("number", isNumber ? null : false);
4987
+ if (isNumber) setModel(round(value));
4988
+ } else {
4989
+ setModel($scope.internal.value);
4990
+ }
4663
4991
  $scope.check();
4664
4992
  };
4665
4993
 
4666
4994
 
4995
+ // Decimal mode: on blur show the cleaned up value ("1,239" -> "1.24" with decimals="2")
4996
+ $scope.inputBlurred = function () {
4997
+ if (!$scope.decimalMode) return;
4998
+ if (!Number.isNaN(parseText($scope.internal.value))) {
4999
+ $scope.internal.value = toInternal($scope.model);
5000
+ }
5001
+ };
5002
+
5003
+
4667
5004
  // Watch for model change. Decimal is watched by value, because parent can replace it with new equal object.
4668
5005
  $scope.$watch(function () {
4669
5006
  return NiceService.isDecimal($scope.model) ? $scope.model.toString() : $scope.model;
@@ -4673,8 +5010,10 @@ angular.module('niceElements')
4673
5010
  } else if ($scope.model != null) {
4674
5011
  $scope.decimalConstructor = null; // Parent switched to plain value
4675
5012
  }
4676
- if (toInternal($scope.model) !== $scope.internal.value) {
5013
+ if (!isInputInSync()) {
4677
5014
  $scope.internal.value = toInternal($scope.model);
5015
+ // Input shows a valid value again (e.g. after plus/minus)
5016
+ if ($scope.decimalMode && $scope.niceNumberForm) $scope.niceNumberForm.$setValidity("number", null);
4678
5017
  }
4679
5018
  $scope.check();
4680
5019
  if ($scope.onChange && oldModel != newModel) {
@@ -4687,7 +5026,7 @@ angular.module('niceElements')
4687
5026
 
4688
5027
  // Add to the value
4689
5028
  $scope.add = function () {
4690
- const result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).plus($scope.innerStep).toNumber(); //.toFixed($scope.decimals);
5029
+ const result = round(new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).plus($scope.innerStep));
4691
5030
  if ($scope.max) {
4692
5031
  if (result <= parseFloat($scope.max)) {
4693
5032
  setModel(result);
@@ -4703,7 +5042,7 @@ angular.module('niceElements')
4703
5042
 
4704
5043
  // Subtract to the value
4705
5044
  $scope.subtract = function () {
4706
- const result = new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).minus($scope.innerStep).toNumber();
5045
+ const result = round(new Decimal($scope.model != undefined ? $scope.model : $scope.defaultValue).minus($scope.innerStep));
4707
5046
  if (result >= Number($scope.min)) {
4708
5047
  setModel(result);
4709
5048
  $scope.niceNumberForm.$setDirty();
@@ -4842,17 +5181,22 @@ angular.module('niceElements')
4842
5181
  attrs.noMargin = attrs.noMargin === 'true' || attrs.noMargin === true;
4843
5182
  },
4844
5183
 
4845
- controller: function ($rootScope, $scope) {
5184
+ controller: function ($rootScope, $scope, $attrs) {
4846
5185
  // Link form object with valid object
4847
- if (angular.isDefined($scope.valid)) {
4848
- $scope.valid = $scope.form;
5186
+ if ($attrs.valid) {
5187
+ $scope.$watch('form', function (form) {
5188
+ if (form) $scope.valid = form;
5189
+ });
4849
5190
  }
4850
5191
 
4851
5192
  const roundN = function (number, decimals) {
4852
5193
  return Number(new Decimal(String(number)).toFixed(decimals, 4));
4853
5194
  };
4854
5195
 
4855
- if (angular.isDefined($scope.model)) {
5196
+ if ($scope.model === null && $scope.required) {
5197
+ // Required and empty: keep the field empty so ng-required marks it invalid
5198
+ $scope.internalModel = "";
5199
+ } else if (angular.isDefined($scope.model)) {
4856
5200
  $scope.internalModel = roundN((angular.copy($scope.model) * 100), 6);
4857
5201
  } else {
4858
5202
  $scope.internalModel = "0";
@@ -4865,7 +5209,8 @@ angular.module('niceElements')
4865
5209
  if (parseFloat($scope.internalModel) > 100) $scope.internalModel = 100;
4866
5210
  $scope.model = roundN(parseFloat($scope.internalModel) / 100, 6);
4867
5211
  } else {
4868
- $scope.model = 0;
5212
+ // Cleared field: null when required (so the form is invalid), otherwise 0
5213
+ $scope.model = $scope.required ? null : 0;
4869
5214
  }
4870
5215
  if ($scope.onChange) $scope.onChange({ model: $scope.model });
4871
5216
  };
@@ -4887,11 +5232,14 @@ angular.module('niceElements')
4887
5232
  $scope.$watch('model', function (value_new, value_old) {
4888
5233
  if (value_new) {
4889
5234
  $scope.internalModel = roundN(angular.copy($scope.model) * 100, 6);
5235
+ } else if (value_new === null && $scope.required) {
5236
+ $scope.internalModel = "";
4890
5237
  }
4891
5238
  });
4892
5239
 
4893
5240
  $scope.$watch('internalModel', function (value_new, value_old) {
4894
- if (!$scope.internalModel) {
5241
+ // Empty field falls back to 0, unless required (then it stays empty and invalid)
5242
+ if (!$scope.internalModel && !$scope.required) {
4895
5243
  $scope.internalModel = "0";
4896
5244
  }
4897
5245
  });
@@ -5043,13 +5391,13 @@ angular.module('niceElements')
5043
5391
 
5044
5392
  $scope.close = function () {
5045
5393
  $scope.isOpen = false;
5046
- if ($scope.onChange) $scope.onChange($scope.isOpen);
5394
+ if ($scope.onChange) $scope.onChange({ isOpen: $scope.isOpen });
5047
5395
  };
5048
5396
 
5049
5397
  $scope.open = function () {
5050
5398
  if ($scope.popper) $scope.popper.update();
5051
5399
  $scope.isOpen = true;
5052
- if ($scope.onChange) $scope.onChange($scope.isOpen);
5400
+ if ($scope.onChange) $scope.onChange({ isOpen: $scope.isOpen });
5053
5401
  $timeout(function () {
5054
5402
  if ($scope.popper) $scope.popper.update();
5055
5403
  });
@@ -5213,12 +5561,11 @@ angular.module('niceElements')
5213
5561
  isInline: '=',
5214
5562
  onChange: '&?'
5215
5563
  },
5216
- link: function (scope, element, attrs) {
5564
+ link: function (scope, element, attrs, ctrl, transcludeFn) {
5217
5565
  if (!attrs.title) { attrs.title = ''; }
5218
5566
  if (!attrs.placeholder) { attrs.placeholder = ''; }
5219
5567
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
5220
5568
  if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
5221
- if (!attrs.setText) { attrs.setText = ''; }
5222
5569
 
5223
5570
  attrs.required = attrs.required === 'true' || attrs.required === true;
5224
5571
  attrs.hideValid = attrs.hideValid === 'true' || attrs.hideValid === true;
@@ -5228,15 +5575,25 @@ angular.module('niceElements')
5228
5575
  attrs.disableRow = attrs.disableRow === 'true' || attrs.disableRow === true;
5229
5576
  attrs.noMargin = attrs.noMargin === 'true' || attrs.noMargin === true;
5230
5577
 
5231
- // This is used for connecting directive's scope to transcluded html.
5232
- // transcludeFn(scope, function(clone, scope) {
5233
- // var el = element.find('.nice-search');
5234
- // el.append(clone);
5235
- // });
5578
+ // Custom row content: markup placed inside <nice-search> is rendered for every
5579
+ // result row (with `result` in scope) instead of the default label.
5580
+ scope.rowTransclude = transcludeFn;
5581
+ scope.hasRowTemplate = false;
5582
+
5583
+ // Make one throwaway copy of the content just to check if there is any
5584
+ transcludeFn(function (clone, cloneScope) {
5585
+ for (let i = 0; i < clone.length; i++) {
5586
+ const isElement = clone[i].nodeType === 1;
5587
+ const isText = clone[i].nodeType === 3 && clone[i].textContent.trim() !== '';
5588
+ if (isElement || isText) scope.hasRowTemplate = true;
5589
+ }
5590
+ cloneScope.$destroy();
5591
+ });
5236
5592
 
5237
5593
  // Set default text
5594
+ // (skip when set-text is not used, so the label of a preset model below is kept)
5238
5595
  scope.$watch("setText", function () {
5239
- scope.modelString = scope.setText;
5596
+ if (angular.isDefined(scope.setText)) scope.modelString = scope.setText;
5240
5597
  });
5241
5598
 
5242
5599
  // Check if object is defined
@@ -5247,18 +5604,12 @@ angular.module('niceElements')
5247
5604
  scope.modelString = scope.model;
5248
5605
  }
5249
5606
 
5250
- const setValid = function (isValid) {
5251
- if (scope.required && scope.form) {
5252
- scope.form.$setValidity('objectSelected', isValid);
5253
- }
5254
- };
5255
-
5256
- scope.$watch('model', function (newValue) {
5257
- if (scope.model && scope.model.id) {
5258
- setValid(true);
5259
- } else {
5260
- setValid(false);
5261
- }
5607
+ // When required, an object (with id) has to be selected. Also re-check when
5608
+ // `required` changes, so turning it off clears the error.
5609
+ scope.$watchGroup(['model', 'required'], function () {
5610
+ if (!scope.form) return;
5611
+ const hasObject = !!(scope.model && scope.model.id);
5612
+ scope.form.$setValidity('objectSelected', !scope.required || hasObject);
5262
5613
  });
5263
5614
 
5264
5615
  scope.selectRow = function (obj) {
@@ -5416,6 +5767,23 @@ angular.module('niceElements')
5416
5767
  };
5417
5768
  }
5418
5769
  };
5770
+ })
5771
+
5772
+ // Renders nice-search's transcluded content for one result row, with `result` in scope
5773
+ .directive('niceSearchRowTransclude', function () {
5774
+ return {
5775
+ restrict: 'A',
5776
+ link: function (scope, element) {
5777
+ // Copy the content into this row; the copy gets its own scope (rowScope)
5778
+ scope.rowTransclude(function (clone, rowScope) {
5779
+ // Give the copy access to this row's result, and keep it up to date
5780
+ scope.$watch('result', function (result) {
5781
+ rowScope.result = result;
5782
+ });
5783
+ element.append(clone);
5784
+ });
5785
+ }
5786
+ };
5419
5787
  });
5420
5788
 
5421
5789
  'use strict';
@@ -5452,6 +5820,7 @@ angular.module('niceElements')
5452
5820
  debounceTime: '@',
5453
5821
  isInline: '=',
5454
5822
  help: '@',
5823
+ required: '=',
5455
5824
  placement: '@', // Describes the preferred placement of the popper
5456
5825
  },
5457
5826
  controller: function ($scope, $timeout, $element) {
@@ -5777,7 +6146,10 @@ angular.module('niceElements')
5777
6146
  freezeLast: '@?',
5778
6147
  loadMore: '&?'
5779
6148
  },
5780
- controller: function ($scope, $transclude) {
6149
+ controller: function ($scope, $attrs, $transclude, NiceService) {
6150
+ NiceService.bindFlag($scope, $attrs, 'freezeFirst');
6151
+ NiceService.bindFlag($scope, $attrs, 'freezeLast');
6152
+
5781
6153
  $scope.hasActions = $transclude().length > 0;
5782
6154
 
5783
6155
  $scope.setOrder = function(key) {
@@ -5789,17 +6161,19 @@ angular.module('niceElements')
5789
6161
  } else {
5790
6162
  $scope.order = key;
5791
6163
  }
5792
- if ($scope.orderChanged) $scope.orderChanged($scope.order);
6164
+ if ($scope.orderChanged) $scope.orderChanged({ order: $scope.order });
5793
6165
  }
5794
6166
 
5795
6167
  $scope.rowStyle = function(column, row) {
5796
6168
  if (!column.valueStyle) return;
5797
- return column.valueStyle(row[column.key], row);
6169
+ if (angular.isFunction(column.valueStyle)) return column.valueStyle(row[column.key], row);
6170
+ return column.valueStyle;
5798
6171
  }
5799
6172
 
5800
6173
  $scope.rowClass = function(column, row) {
5801
6174
  if (!column.valueClass) return;
5802
- return column.valueClass(row[column.key], row);
6175
+ if (angular.isFunction(column.valueClass)) return column.valueClass(row[column.key], row);
6176
+ return column.valueClass;
5803
6177
  }
5804
6178
 
5805
6179
  $scope.handleFreeze = function(column, isFirst, isLast, index) {
@@ -6382,7 +6756,9 @@ angular.module('niceElements')
6382
6756
  stickyHeader: '@',
6383
6757
  stickyFooter: '@',
6384
6758
  },
6385
- controller: function ($scope, $transclude) {
6759
+ controller: function ($scope, $attrs, $transclude, NiceService) {
6760
+ NiceService.bindFlag($scope, $attrs, 'collapsed');
6761
+
6386
6762
  $scope.isOpen = true;
6387
6763
  if ($scope.collapsed) $scope.isOpen = false;
6388
6764
  $scope.hasTitle = $transclude.isSlotFilled('title');
@@ -6436,10 +6812,12 @@ angular.module('niceElements')
6436
6812
  if (!$scope.title) { $scope.title = ''; }
6437
6813
  if (!$scope.fieldWidth) { $scope.fieldWidth = 'col-sm-8'; }
6438
6814
  if (!$scope.labelWidth) { $scope.labelWidth = 'col-sm-4'; }
6439
- if (!angular.isDefined($scope.model) && !angular.isDefined($scope.options)) $scope.model = !angular.isDefined($scope.defaultFalse);
6815
+ // default-false: the attribute being present turns it on, unless its value is "false"
6816
+ const defaultFalse = angular.isDefined($scope.defaultFalse) && String($scope.defaultFalse).trim().toLowerCase() !== 'false';
6817
+ if (!angular.isDefined($scope.model) && !angular.isDefined($scope.options)) $scope.model = !defaultFalse;
6440
6818
  if (!angular.isDefined($scope.modelValue) && angular.isDefined($scope.options)) $scope.modelValue = $scope.options[0];
6441
6819
 
6442
- $scope.defaultFalse = angular.isDefined($scope.defaultFalse);
6820
+ $scope.defaultFalse = defaultFalse;
6443
6821
  $scope.noMargin = angular.isDefined($scope.noMargin);
6444
6822
 
6445
6823
  $scope.buttonClass = "";
@@ -6826,13 +7204,28 @@ angular.module('niceElements')
6826
7204
  .service('NiceService', function ($rootScope) {
6827
7205
  const service = {
6828
7206
  name: "Nice elements",
6829
- version: "1.14.1",
7207
+ version: "1.15.1",
6830
7208
  getHeader: function () {
6831
7209
  return {};
6832
7210
  },
6833
7211
  toast: function (message, type) {
6834
7212
  $rootScope.$broadcast('toast', message, type);
6835
7213
  },
7214
+ // On/off attribute value: true or any non-empty string except "false" is on
7215
+ isOn: function (value) {
7216
+ if (value === true) return true;
7217
+ if (!angular.isString(value)) return false;
7218
+ const v = value.trim().toLowerCase();
7219
+ return v !== '' && v !== 'false';
7220
+ },
7221
+ // Keep a "@" on/off attribute as a boolean on the scope
7222
+ // (the isolate binding would otherwise reset it to the raw attribute string)
7223
+ bindFlag: function ($scope, $attrs, name) {
7224
+ $scope[name] = service.isOn($scope[name]);
7225
+ $attrs.$observe(name, function (value) {
7226
+ $scope[name] = service.isOn(value);
7227
+ });
7228
+ },
6836
7229
  // Check if value is a Decimal.js object (also Decimal.clone() instances)
6837
7230
  isDecimal: function (value) {
6838
7231
  return typeof Decimal !== 'undefined' && Decimal.isDecimal(value);
@@ -6937,6 +7330,23 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6937
7330
  );
6938
7331
 
6939
7332
 
7333
+ $templateCache.put('src/components/nice-badges-list/nice-badges-list.html',
7334
+ "<div class=\"nice-badges-list\" ng-class=\"{ 'nice-badges-list-full-width': fullWidth, 'nice-badges-list-expanded': expanded }\">\n" +
7335
+ " \n" +
7336
+ " <div class=\"nice-badge nice-badge-item\" ng-if=\"fullWidth\" ng-class=\"[badgeClass, { 'nice-badge-hidden': !expanded && $index >= visibleCount }]\" ng-repeat=\"item in items track by $index\" title=\"{{ getLabel(item) }}\">{{ getLabel(item) }}</div>\n" +
7337
+ "\n" +
7338
+ " \n" +
7339
+ " <div class=\"nice-badge nice-badge-item\" ng-if=\"!fullWidth\" ng-class=\"badgeClass\" ng-repeat=\"item in items | limitTo:(expanded ? items.length : getLimit()) track by $index\">{{ getLabel(item) }}</div>\n" +
7340
+ "\n" +
7341
+ " \n" +
7342
+ " <div class=\"nice-badge nice-badge-more\" ng-show=\"getHiddenCount() > 0\" ng-click=\"toggle()\">\n" +
7343
+ " <span ng-if=\"!expanded\" translate translate-context=\"Nice\" translate-n=\"getHiddenCount()\" translate-plural=\"+{{$count}} more\">+{{$count}} more</span>\n" +
7344
+ " <span ng-if=\"expanded\" translate translate-context=\"Nice\">Show less</span>\n" +
7345
+ " </div>\n" +
7346
+ "</div>\n"
7347
+ );
7348
+
7349
+
6940
7350
  $templateCache.put('src/components/nice-button-toggle/nice-button-toggle.html',
6941
7351
  "<div class=\"nice-component nice-button-toggle row\">\n" +
6942
7352
  " <div class=\"col-xs-offset-4 col-xs-8\">\n" +
@@ -6969,6 +7379,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
6969
7379
  " <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
6970
7380
  " <div class=\"disabled-shield\" ng-if=\"isDisabled\"></div>\n" +
6971
7381
  "\n" +
7382
+ " \n" +
7383
+ " <input class=\"hidden-input\" ng-model=\"startDate\" ng-required=\"required\" tabindex=\"-1\">\n" +
7384
+ " <input class=\"hidden-input\" ng-model=\"endDate\" ng-required=\"required\" tabindex=\"-1\">\n" +
7385
+ "\n" +
6972
7386
  " <div class=\"nice-calendar-wrapper\">\n" +
6973
7387
  " <div class=\"nice-calendar-weeks\">\n" +
6974
7388
  " <div class=\"nice-calendar-header\">\n" +
@@ -7083,12 +7497,17 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7083
7497
  " 'nice-checkbox-disabled': isDisabled, \n" +
7084
7498
  " 'nice-checkbox-left': titleOnLeft\n" +
7085
7499
  " }\" ng-click=\"toggle()\">\n" +
7086
- " <button type=\"button\" class=\"btn nice-checkbox-checkbox\" ng-disabled=\"isDisabled\">\n" +
7087
- " <nice-icon ng-if=\"model\" class=\"nice-checkbox-check\" icon=\"icon-check\"></nice-icon>\n" +
7088
- " <nice-icon ng-if=\"!model && indeterminate\" class=\"nice-checkbox-check\" icon=\"icon-minus\"></nice-icon>\n" +
7089
- " </button>\n" +
7500
+ " <span class=\"nice-checkbox-box\">\n" +
7501
+ " <button type=\"button\" class=\"btn nice-checkbox-checkbox\" ng-disabled=\"isDisabled\">\n" +
7502
+ " <nice-icon ng-if=\"model\" class=\"nice-checkbox-check\" icon=\"icon-check\"></nice-icon>\n" +
7503
+ " <nice-icon ng-if=\"!model && indeterminate\" class=\"nice-checkbox-check\" icon=\"icon-minus\"></nice-icon>\n" +
7504
+ " </button>\n" +
7505
+ "\n" +
7506
+ " \n" +
7507
+ " <input type=\"checkbox\" class=\"hidden-input\" ng-model=\"model\" ng-required=\"required\" tabindex=\"-1\">\n" +
7508
+ " </span>\n" +
7090
7509
  " <div class=\"nice-checkbox-info\" ng-transclude>\n" +
7091
- " <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"description\" description=\"niceDescription\" label-width=\"col-xs-12\"></nice-title>\n" +
7510
+ " <nice-title text=\"title || niceTitle\" help=\"help\" required=\"required\" description=\"niceDescription\" label-width=\"col-xs-12\"></nice-title>\n" +
7092
7511
  " \n" +
7093
7512
  " \n" +
7094
7513
  " </div>\n" +
@@ -7204,7 +7623,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7204
7623
  " \n" +
7205
7624
  " <div class=\"nice-field col-xs-12\" ng-class=\"fieldWidth ? fieldWidth : 'col-sm-8'\">\n" +
7206
7625
  " <div class=\"input-group\">\n" +
7207
- " <input date-range-picker class=\"form-control date-picker\" type=\"text\" options=\"opts\" ng-model=\"model\">\n" +
7626
+ " <input date-range-picker class=\"form-control date-picker\" type=\"text\" options=\"opts\" ng-model=\"model\" ng-required=\"required\">\n" +
7208
7627
  " <span date-range-picker options=\"opts\" ng-model=\"model\" class=\"input-group-addon\">\n" +
7209
7628
  " <nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
7210
7629
  " </span>\n" +
@@ -7229,7 +7648,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7229
7648
  "\n" +
7230
7649
  " \n" +
7231
7650
  " <div class=\"nice-date-button input-group\" ng-class=\"{ 'open': isOpen }\" ng-show=\"!inline\" ng-click=\"toggleOpen()\">\n" +
7232
- " <input type=\"text\" class=\"form-control\" value=\"{{ innerDate.value }}\" placeholder=\"{{ placeholder }}\" readonly=\"readonly\" ng-disabled=\"isDisabled\">\n" +
7651
+ " <input type=\"text\" class=\"form-control\" ng-model=\"innerDate.value\" placeholder=\"{{ placeholder }}\" ng-required=\"required\" ng-disabled=\"isDisabled\" ng-blur=\"parseTypedDate()\" ng-keydown=\"typedDateKeydown($event)\">\n" +
7233
7652
  " <span class=\"input-group-btn\">\n" +
7234
7653
  " <button type=\"button\" class=\"btn btn-default btn-right\" ng-disabled=\"isDisabled\" ng-if=\"!(model && nullable)\">\n" +
7235
7654
  " <nice-icon icon=\"icon-calendar\"></nice-icon>\n" +
@@ -7320,15 +7739,18 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7320
7739
  " <span class=\"input-group-btn\">\n" +
7321
7740
  " <button type=\"button\" class=\"btn btn-default\" ng-click=\"openDtp()\">\n" +
7322
7741
  " \n" +
7323
- " <nice-icon ng-if=\"date == 'true'\" icon=\"icon-calendar\"></nice-icon>\n" +
7324
- " <nice-icon ng-if=\"date != 'true'\" icon=\"icon-clock\"></nice-icon>\n" +
7742
+ " <nice-icon ng-if=\"isTrue(date)\" icon=\"icon-calendar\"></nice-icon>\n" +
7743
+ " <nice-icon ng-if=\"!isTrue(date)\" icon=\"icon-clock\"></nice-icon>\n" +
7325
7744
  " </button>\n" +
7326
7745
  " </span>\n" +
7327
7746
  " </div>\n" +
7328
7747
  "\n" +
7329
7748
  " \n" +
7749
+ " <input class=\"hidden-input\" ng-model=\"model\" ng-required=\"required\" tabindex=\"-1\">\n" +
7750
+ "\n" +
7751
+ " \n" +
7330
7752
  " <div ng-show=\"isOpen\">\n" +
7331
- " <nice-dtp model=\"internalDate\" format=\"{{ format }}\" model-format=\"{{ modelFormat }}\" date=\"{{ date == 'true' }}\" time=\"{{ time == 'true' }}\" width=\"{{ width }}\" enable-ok-buttons=\"{{ enableOkButtons }}\" lang=\"{{ lang }}\" min-date=\"{{ minDate }}\" max-date=\"{{ maxDate }}\" week-start=\"{{ weekStart }}\" ok-text=\"{{ okText }}\" cancel-text=\"{{ cancelText }}\" closed=\"closeDtp\"></nice-dtp>\n" +
7753
+ " <nice-dtp model=\"internalDate\" format=\"{{ format }}\" model-format=\"{{ modelFormat }}\" date=\"{{ isTrue(date) }}\" time=\"{{ isTrue(time) }}\" width=\"{{ width }}\" enable-ok-buttons=\"{{ enableOkButtons }}\" lang=\"{{ lang }}\" min-date=\"{{ minDate }}\" max-date=\"{{ maxDate }}\" week-start=\"{{ weekStart }}\" ok-text=\"{{ okText }}\" cancel-text=\"{{ cancelText }}\" closed=\"closeDtp\"></nice-dtp>\n" +
7332
7754
  " </div>\n" +
7333
7755
  " </div>\n" +
7334
7756
  " </div>\n" +
@@ -7371,11 +7793,11 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7371
7793
  " </div>\n" +
7372
7794
  "\n" +
7373
7795
  " <div class=\"dtp-left\">\n" +
7374
- " <nice-date model=\"model.innerStartDate\" next-date=\"model.innerEndDate\" is-inline=\"true\" no-margin=\"true\" inline=\"true\" time=\"time\" on-change=\"dateChanged(model)\"></nice-date>\n" +
7796
+ " <nice-date model=\"model.innerStartDate\" next-date=\"model.innerEndDate\" is-inline=\"true\" no-margin=\"true\" inline=\"true\" time=\"time\" min-date=\"minDate\" max-date=\"maxDate\" on-change=\"dateChanged(model)\"></nice-date>\n" +
7375
7797
  " </div>\n" +
7376
7798
  "\n" +
7377
7799
  " <div class=\"dtp-right\">\n" +
7378
- " <nice-date model=\"model.innerEndDate\" next-date=\"model.innerStartDate\" is-inline=\"true\" no-margin=\"true\" inline=\"true\" time=\"time\" on-change=\"dateChanged(model)\"></nice-date>\n" +
7800
+ " <nice-date model=\"model.innerEndDate\" next-date=\"model.innerStartDate\" is-inline=\"true\" no-margin=\"true\" inline=\"true\" time=\"time\" min-date=\"minDate\" max-date=\"maxDate\" on-change=\"dateChanged(model)\"></nice-date>\n" +
7379
7801
  " </div>\n" +
7380
7802
  " </div>\n" +
7381
7803
  " </div>\n" +
@@ -7445,6 +7867,26 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7445
7867
  );
7446
7868
 
7447
7869
 
7870
+ $templateCache.put('src/components/nice-dialog/nice-dialog.html',
7871
+ "<form class=\"nice-dialog\" ng-submit=\"handleSubmit()\">\n" +
7872
+ " \n" +
7873
+ " <div class=\"nice-dialog-header\" ng-transclude=\"header\">\n" +
7874
+ " <nice-icon icon=\"{{ niceIcon }}\" ng-if=\"niceIcon\"></nice-icon>\n" +
7875
+ " <div>\n" +
7876
+ " <div class=\"nice-dialog-sub-title\" ng-if=\"niceSubtitle && !niceHideSubtitle\">{{ niceSubtitle }}</div>\n" +
7877
+ " <div class=\"nice-dialog-title\">{{ niceTitle }}</div>\n" +
7878
+ " </div>\n" +
7879
+ " </div>\n" +
7880
+ "\n" +
7881
+ " \n" +
7882
+ " <div class=\"nice-dialog-body\" ng-transclude></div>\n" +
7883
+ "\n" +
7884
+ " \n" +
7885
+ " <div class=\"nice-dialog-footer\" ng-transclude=\"footer\"></div>\n" +
7886
+ "</form>\n"
7887
+ );
7888
+
7889
+
7448
7890
  $templateCache.put('src/components/nice-dropdown-date/nice-dropdown-date.html',
7449
7891
  "<div class=\"nice-component nice-dropdown-date\" ng-form=\"dropdownDateForm\" ng-class=\"{ 'margin-bottom-0': noMargin, 'nice-component-inline': isInline }\">\n" +
7450
7892
  " <div class=\"row\">\n" +
@@ -7834,7 +8276,10 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
7834
8276
  " </span>\n" +
7835
8277
  "\n" +
7836
8278
  " \n" +
7837
- " <input type=\"number\" step=\"{{ step }}\" ng-change=\"inputChanged()\" class=\"form-control\" max=\"{{ max }}\" min=\"{{ min }}\" ng-disabled=\"isDisabled\" ng-model=\"internal.value\">\n" +
8279
+ " <input ng-if=\"!decimalMode\" type=\"number\" inputmode=\"numeric\" step=\"{{ step }}\" ng-change=\"inputChanged()\" class=\"form-control\" max=\"{{ max }}\" min=\"{{ min }}\" ng-disabled=\"isDisabled\" ng-model=\"internal.value\">\n" +
8280
+ "\n" +
8281
+ " \n" +
8282
+ " <input ng-if=\"decimalMode\" type=\"text\" inputmode=\"decimal\" ng-change=\"inputChanged()\" ng-blur=\"inputBlurred()\" class=\"form-control\" ng-disabled=\"isDisabled\" ng-model=\"internal.value\">\n" +
7838
8283
  "\n" +
7839
8284
  " <span class=\"input-group-btn\">\n" +
7840
8285
  " \n" +
@@ -8016,15 +8461,13 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
8016
8461
  "\n" +
8017
8462
  " <div class=\"nice-dropdown\" ng-if=\"results.length\">\n" +
8018
8463
  " <div ng-repeat=\"result in results\" class=\"nice-search-row\" ng-class=\"{'active': selectedIndex == $index}\" ng-click=\"selectRow(result)\">\n" +
8019
- " <span class=\"text-bold\">{{ result[keyForInputLabel] }}</span>\n" +
8020
- " \n" +
8464
+ " <span class=\"text-bold\" ng-if=\"!hasRowTemplate\">{{ result[keyForInputLabel] }}</span>\n" +
8465
+ " <div ng-if=\"hasRowTemplate\" nice-search-row-transclude></div>\n" +
8021
8466
  " </div>\n" +
8022
8467
  " </div>\n" +
8023
8468
  " </div>\n" +
8024
8469
  " </div>\n" +
8025
8470
  "\n" +
8026
- " \n" +
8027
- " \n" +
8028
8471
  "</ng-form>"
8029
8472
  );
8030
8473
 
@@ -8038,7 +8481,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
8038
8481
  " \n" +
8039
8482
  " <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\" click-outside=\"close()\">\n" +
8040
8483
  " <div class=\"nice-search-button input-group\" ng-class=\"{ 'disabled': isDisabled }\">\n" +
8041
- " <input class=\"form-control\" type=\"text\" id=\"{{ id }}\" ng-model=\"model\" placeholder=\"{{ placeholder }}\" ng-disabled=\"isDisabled\" ng-change=\"updateSearch()\" ng-focus=\"onFocus()\" tabindex=\"{{ tabIndex }}\">\n" +
8484
+ " <input class=\"form-control\" type=\"text\" id=\"{{ id }}\" ng-model=\"model\" placeholder=\"{{ placeholder }}\" ng-disabled=\"isDisabled\" ng-change=\"updateSearch()\" ng-focus=\"onFocus()\" ng-required=\"required\" tabindex=\"{{ tabIndex }}\">\n" +
8042
8485
  "\n" +
8043
8486
  " <button type=\"button\" class=\"btn input-group-addon\" ng-disabled=\"isDisabled\" ng-click=\"buttonClicked()\">\n" +
8044
8487
  " <nice-icon ng-show=\"!loading && model != ''\" icon=\"icon-x\"></nice-icon>\n" +
@@ -9257,44 +9700,189 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
9257
9700
  " </symbol>\n" +
9258
9701
  "\n" +
9259
9702
  " <symbol id=\"icon-input-quantity\" viewBox=\"0 0 24 24\">\n" +
9260
- " <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" +
9261
- " <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" +
9262
- " <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" +
9263
- " <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" +
9703
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9704
+ " <path d=\"M11.999 15.579C11.423 15.577 10.927 15.435 10.512 15.154C10.099 14.873 9.781 14.465 9.558 13.932C9.337 13.398 9.228 12.757 9.23 12.007C9.23 11.259 9.34 10.622 9.561 10.095C9.784 9.568 10.103 9.167 10.516 8.893C10.931 8.616 11.425 8.478 11.999 8.478C12.572 8.478 13.066 8.616 13.479 8.893C13.894 9.17 14.213 9.571 14.436 10.098C14.659 10.623 14.77 11.259 14.768 12.007C14.768 12.759 14.656 13.402 14.433 13.935C14.212 14.469 13.895 14.876 13.482 15.157C13.069 15.439 12.575 15.579 11.999 15.579ZM11.999 14.377C12.392 14.377 12.705 14.18 12.94 13.785C13.174 13.39 13.29 12.797 13.288 12.007C13.288 11.487 13.234 11.054 13.127 10.708C13.022 10.362 12.873 10.102 12.678 9.927C12.487 9.753 12.26 9.666 11.999 9.666C11.608 9.666 11.296 9.862 11.061 10.252C10.827 10.643 10.709 11.228 10.706 12.007C10.706 12.533 10.759 12.973 10.864 13.326C10.971 13.676 11.122 13.94 11.316 14.116C11.51 14.29 11.738 14.377 11.999 14.377Z\"/>\n" +
9705
+ " <path d=\"M16.5 12.214H17.786V13.5C17.786 13.618 17.882 13.714 18 13.714C18.118 13.714 18.214 13.618 18.214 13.5V12.214H19.5C19.618 12.214 19.714 12.118 19.714 12C19.714 11.882 19.618 11.786 19.5 11.786H18.214V10.5C18.214 10.382 18.118 10.286 18 10.286C17.882 10.286 17.786 10.382 17.786 10.5V11.786H16.5C16.382 11.786 16.286 11.882 16.286 12C16.286 12.118 16.382 12.214 16.5 12.214Z\"/>\n" +
9706
+ " <path d=\"M4.5 12.214H7.5C7.618 12.214 7.714 12.128 7.714 12.021C7.714 11.915 7.618 11.829 7.5 11.829H4.5C4.382 11.829 4.286 11.915 4.286 12.021C4.286 12.128 4.382 12.214 4.5 12.214Z\"/>\n" +
9707
+ " </symbol>\n" +
9708
+ "\n" +
9709
+ " <symbol id=\"icon-alert-box\" viewBox=\"0 0 24 24\">\n" +
9710
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 3H19A4 4 0 0 1 23 7V17A4 4 0 0 1 19 21H5A4 4 0 0 1 1 17V7A4 4 0 0 1 5 3ZM5 5H19A2 2 0 0 1 21 7V17A2 2 0 0 1 19 19H5A2 2 0 0 1 3 17V7A2 2 0 0 1 5 5Z\"/>\n" +
9711
+ " <path d=\"M6 8.5L6 12A1 1 0 0 0 8 12L8 8.5A1 1 0 0 0 6 8.5Z\"/>\n" +
9712
+ " <path d=\"M6 15.5A1 1 0 1 1 8 15.5A1 1 0 1 1 6 15.5Z\"/>\n" +
9713
+ " <path d=\"M11 11L18 11A1 1 0 0 0 18 9L11 9A1 1 0 0 0 11 11Z\"/>\n" +
9714
+ " <path d=\"M11 15L15 15A1 1 0 0 0 15 13L11 13A1 1 0 0 0 11 15Z\"/>\n" +
9715
+ " </symbol>\n" +
9716
+ "\n" +
9717
+ " <symbol id=\"icon-avatar\" viewBox=\"0 0 24 24\">\n" +
9718
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 12A11 11 0 1 1 23 12A11 11 0 1 1 1 12ZM3 12A9 9 0 1 1 21 12A9 9 0 1 1 3 12Z\"/>\n" +
9719
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 9.5A4 4 0 1 1 16 9.5A4 4 0 1 1 8 9.5ZM10 9.5A2 2 0 1 1 14 9.5A2 2 0 1 1 10 9.5Z\"/>\n" +
9720
+ " <path d=\"M4.95 18.94A7.5 7.5 0 0 1 19.05 18.94A1 1 0 0 1 17.17 19.62A5.5 5.5 0 0 0 6.83 19.62A1 1 0 0 1 4.95 18.94Z\"/>\n" +
9721
+ " </symbol>\n" +
9722
+ "\n" +
9723
+ " <symbol id=\"icon-button\" viewBox=\"0 0 24 24\">\n" +
9724
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 5H16A7 7 0 0 1 23 12V12A7 7 0 0 1 16 19H8A7 7 0 0 1 1 12V12A7 7 0 0 1 8 5ZM8 7H16A5 5 0 0 1 21 12V12A5 5 0 0 1 16 17H8A5 5 0 0 1 3 12V12A5 5 0 0 1 8 7Z\"/>\n" +
9725
+ " <path d=\"M8 13L16 13A1 1 0 0 0 16 11L8 11A1 1 0 0 0 8 13Z\"/>\n" +
9726
+ " </symbol>\n" +
9727
+ "\n" +
9728
+ " <symbol id=\"icon-choice\" viewBox=\"0 0 24 24\">\n" +
9729
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 7A4 4 0 1 1 9 7A4 4 0 1 1 1 7ZM3 7A2 2 0 1 1 7 7A2 2 0 1 1 3 7Z\"/>\n" +
9730
+ " <path d=\"M4 7A1 1 0 1 1 6 7A1 1 0 1 1 4 7Z\"/>\n" +
9731
+ " <path d=\"M11 8L21 8A1 1 0 0 0 21 6L11 6A1 1 0 0 0 11 8Z\"/>\n" +
9732
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M1 17A4 4 0 1 1 9 17A4 4 0 1 1 1 17ZM3 17A2 2 0 1 1 7 17A2 2 0 1 1 3 17Z\"/>\n" +
9733
+ " <path d=\"M11 18L18 18A1 1 0 0 0 18 16L11 16A1 1 0 0 0 11 18Z\"/>\n" +
9734
+ " </symbol>\n" +
9735
+ "\n" +
9736
+ " <symbol id=\"icon-date\" viewBox=\"0 0 24 24\">\n" +
9737
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.5 4H18.5A3.5 3.5 0 0 1 22 7.5V18.5A3.5 3.5 0 0 1 18.5 22H5.5A3.5 3.5 0 0 1 2 18.5V7.5A3.5 3.5 0 0 1 5.5 4ZM5.5 6H18.5A1.5 1.5 0 0 1 20 7.5V18.5A1.5 1.5 0 0 1 18.5 20H5.5A1.5 1.5 0 0 1 4 18.5V7.5A1.5 1.5 0 0 1 5.5 6Z\"/>\n" +
9738
+ " <path d=\"M3 11L21 11L21 9L3 9Z\"/>\n" +
9739
+ " <path d=\"M7 3L7 7A1 1 0 0 0 9 7L9 3A1 1 0 0 0 7 3Z\"/>\n" +
9740
+ " <path d=\"M15 3L15 7A1 1 0 0 0 17 7L17 3A1 1 0 0 0 15 3Z\"/>\n" +
9741
+ " <path d=\"M13.5 13H16.5A1 1 0 0 1 17.5 14V17A1 1 0 0 1 16.5 18H13.5A1 1 0 0 1 12.5 17V14A1 1 0 0 1 13.5 13Z\"/>\n" +
9742
+ " </symbol>\n" +
9743
+ "\n" +
9744
+ " <symbol id=\"icon-date-range\" viewBox=\"0 0 24 24\">\n" +
9745
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.5 4H18.5A3.5 3.5 0 0 1 22 7.5V18.5A3.5 3.5 0 0 1 18.5 22H5.5A3.5 3.5 0 0 1 2 18.5V7.5A3.5 3.5 0 0 1 5.5 4ZM5.5 6H18.5A1.5 1.5 0 0 1 20 7.5V18.5A1.5 1.5 0 0 1 18.5 20H5.5A1.5 1.5 0 0 1 4 18.5V7.5A1.5 1.5 0 0 1 5.5 6Z\"/>\n" +
9746
+ " <path d=\"M3 11L21 11L21 9L3 9Z\"/>\n" +
9747
+ " <path d=\"M7 3L7 7A1 1 0 0 0 9 7L9 3A1 1 0 0 0 7 3Z\"/>\n" +
9748
+ " <path d=\"M15 3L15 7A1 1 0 0 0 17 7L17 3A1 1 0 0 0 15 3Z\"/>\n" +
9749
+ " <path d=\"M5.75 15.5A1.75 1.75 0 1 1 9.25 15.5A1.75 1.75 0 1 1 5.75 15.5Z\"/>\n" +
9750
+ " <path d=\"M14.75 15.5A1.75 1.75 0 1 1 18.25 15.5A1.75 1.75 0 1 1 14.75 15.5Z\"/>\n" +
9751
+ " <path d=\"M7.5 16.5L16.5 16.5A1 1 0 0 0 16.5 14.5L7.5 14.5A1 1 0 0 0 7.5 16.5Z\"/>\n" +
9752
+ " </symbol>\n" +
9753
+ "\n" +
9754
+ " <symbol id=\"icon-datetime\" viewBox=\"0 0 24 24\">\n" +
9755
+ " <path d=\"M10.88 22H5.5A3.5 3.5 0 0 1 2 18.5V7.5A3.5 3.5 0 0 1 5.5 4H18.5A3.5 3.5 0 0 1 22 7.5V10A1 1 0 0 1 20 10V7.5A1.5 1.5 0 0 0 18.5 6H5.5A1.5 1.5 0 0 0 4 7.5V18.5A1.5 1.5 0 0 0 5.5 20H10.88A1 1 0 0 1 10.88 22Z\"/>\n" +
9756
+ " <path d=\"M3 11L21 11L21 9L3 9Z\"/>\n" +
9757
+ " <path d=\"M7 3L7 7A1 1 0 0 0 9 7L9 3A1 1 0 0 0 7 3Z\"/>\n" +
9758
+ " <path d=\"M15 3L15 7A1 1 0 0 0 17 7L17 3A1 1 0 0 0 15 3Z\"/>\n" +
9759
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.5 17A5.5 5.5 0 1 1 22.5 17A5.5 5.5 0 1 1 11.5 17ZM13.5 17A3.5 3.5 0 1 1 20.5 17A3.5 3.5 0 1 1 13.5 17Z\"/>\n" +
9760
+ " <path d=\"M16 14.75L16 17A1 1 0 0 0 18 17L18 14.75A1 1 0 0 0 16 14.75ZM16.45 17.83L17.95 18.83A1 1 0 0 0 19.05 17.17L17.55 16.17A1 1 0 0 0 16.45 17.83Z\"/>\n" +
9761
+ " </symbol>\n" +
9762
+ "\n" +
9763
+ " <symbol id=\"icon-input-date\" viewBox=\"0 0 24 24\">\n" +
9764
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9765
+ " <path d=\"M6 13L9.5 13A1 1 0 0 0 9.5 11L6 11A1 1 0 0 0 6 13Z\"/>\n" +
9766
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.5 7.75H17.5A2 2 0 0 1 19.5 9.75V14.25A2 2 0 0 1 17.5 16.25H14.5A2 2 0 0 1 12.5 14.25V9.75A2 2 0 0 1 14.5 7.75ZM14.5 9.25H17.5A0.5 0.5 0 0 1 18 9.75V14.25A0.5 0.5 0 0 1 17.5 14.75H14.5A0.5 0.5 0 0 1 14 14.25V9.75A0.5 0.5 0 0 1 14.5 9.25Z\"/>\n" +
9767
+ " <path d=\"M13.25 11.75L18.75 11.75L18.75 10.25L13.25 10.25Z\"/>\n" +
9768
+ " </symbol>\n" +
9769
+ "\n" +
9770
+ " <symbol id=\"icon-shapes\" viewBox=\"0 0 24 24\">\n" +
9771
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 7A5 5 0 1 1 12 7A5 5 0 1 1 2 7ZM4 7A3 3 0 1 1 10 7A3 3 0 1 1 4 7Z\"/>\n" +
9772
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14.5 2H19.5A2.5 2.5 0 0 1 22 4.5V9.5A2.5 2.5 0 0 1 19.5 12H14.5A2.5 2.5 0 0 1 12 9.5V4.5A2.5 2.5 0 0 1 14.5 2ZM14.5 4H19.5A0.5 0.5 0 0 1 20 4.5V9.5A0.5 0.5 0 0 1 19.5 10H14.5A0.5 0.5 0 0 1 14 9.5V4.5A0.5 0.5 0 0 1 14.5 4Z\"/>\n" +
9773
+ " <path d=\"M6.29 13.71L10.29 17.71A1 1 0 0 0 11.71 16.29L7.71 12.29A1 1 0 0 0 6.29 13.71ZM10.29 16.29L6.29 20.29A1 1 0 0 0 7.71 21.71L11.71 17.71A1 1 0 0 0 10.29 16.29ZM7.71 20.29L3.71 16.29A1 1 0 0 0 2.29 17.71L6.29 21.71A1 1 0 0 0 7.71 20.29ZM3.71 17.71L7.71 13.71A1 1 0 0 0 6.29 12.29L2.29 16.29A1 1 0 0 0 3.71 17.71Z\"/>\n" +
9774
+ " <path d=\"M16 13L16 21A1 1 0 0 0 18 21L18 13A1 1 0 0 0 16 13Z\"/>\n" +
9775
+ " <path d=\"M13 18L21 18A1 1 0 0 0 21 16L13 16A1 1 0 0 0 13 18Z\"/>\n" +
9776
+ " </symbol>\n" +
9777
+ "\n" +
9778
+ " <symbol id=\"icon-no-data\" viewBox=\"0 0 24 24\">\n" +
9779
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.5 11H19.5A3.5 3.5 0 0 1 23 14.5V18.5A3.5 3.5 0 0 1 19.5 22H4.5A3.5 3.5 0 0 1 1 18.5V14.5A3.5 3.5 0 0 1 4.5 11ZM4.5 13H19.5A1.5 1.5 0 0 1 21 14.5V18.5A1.5 1.5 0 0 1 19.5 20H4.5A1.5 1.5 0 0 1 3 18.5V14.5A1.5 1.5 0 0 1 4.5 13Z\"/>\n" +
9780
+ " <path d=\"M3 14L7 14A1 1 0 0 0 7 12L3 12A1 1 0 0 0 3 14ZM6.17 13.55L8.17 16.55A1 1 0 0 0 9.83 15.45L7.83 12.45A1 1 0 0 0 6.17 13.55ZM9 17L15 17A1 1 0 0 0 15 15L9 15A1 1 0 0 0 9 17ZM15.83 16.55L17.83 13.55A1 1 0 0 0 16.17 12.45L14.17 15.45A1 1 0 0 0 15.83 16.55ZM17 14L21 14A1 1 0 0 0 21 12L17 12A1 1 0 0 0 17 14Z\"/>\n" +
9781
+ " <path d=\"M11 3L11 7A1 1 0 0 0 13 7L13 3A1 1 0 0 0 11 3Z\"/>\n" +
9782
+ " <path d=\"M4.17 6.05L6.17 9.05A1 1 0 0 0 7.83 7.95L5.83 4.95A1 1 0 0 0 4.17 6.05Z\"/>\n" +
9783
+ " <path d=\"M18.17 4.95L16.17 7.95A1 1 0 0 0 17.83 9.05L19.83 6.05A1 1 0 0 0 18.17 4.95Z\"/>\n" +
9784
+ " </symbol>\n" +
9785
+ "\n" +
9786
+ " <symbol id=\"icon-notifications\" viewBox=\"0 0 24 24\">\n" +
9787
+ " <path d=\"M6 5L18 5A1 1 0 0 0 18 3L6 3A1 1 0 0 0 6 5Z\"/>\n" +
9788
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 7H19A4 4 0 0 1 23 11V18A4 4 0 0 1 19 22H5A4 4 0 0 1 1 18V11A4 4 0 0 1 5 7ZM5 9H19A2 2 0 0 1 21 11V18A2 2 0 0 1 19 20H5A2 2 0 0 1 3 18V11A2 2 0 0 1 5 9Z\"/>\n" +
9789
+ " <path d=\"M5.25 14.5A1.75 1.75 0 1 1 8.75 14.5A1.75 1.75 0 1 1 5.25 14.5Z\"/>\n" +
9790
+ " <path d=\"M11 13.5L18 13.5A1 1 0 0 0 18 11.5L11 11.5A1 1 0 0 0 11 13.5Z\"/>\n" +
9791
+ " <path d=\"M11 17.5L15 17.5A1 1 0 0 0 15 15.5L11 15.5A1 1 0 0 0 11 17.5Z\"/>\n" +
9792
+ " </symbol>\n" +
9793
+ "\n" +
9794
+ " <symbol id=\"icon-popup\" viewBox=\"0 0 24 24\">\n" +
9795
+ " <path d=\"M9.5 18H5A4 4 0 0 1 1 14V6A4 4 0 0 1 5 2H19A4 4 0 0 1 23 6V14A4 4 0 0 1 19 18H14.5A1 1 0 0 1 14.5 16H19A2 2 0 0 0 21 14V6A2 2 0 0 0 19 4H5A2 2 0 0 0 3 6V14A2 2 0 0 0 5 16H9.5A1 1 0 0 1 9.5 18Z\"/>\n" +
9796
+ " <path d=\"M8.69 17.58L11.19 21.08A1 1 0 0 0 12.81 19.92L10.31 16.42A1 1 0 0 0 8.69 17.58ZM12.81 21.08L15.31 17.58A1 1 0 0 0 13.69 16.42L11.19 19.92A1 1 0 0 0 12.81 21.08Z\"/>\n" +
9797
+ " <path d=\"M6.5 9L17.5 9A1 1 0 0 0 17.5 7L6.5 7A1 1 0 0 0 6.5 9Z\"/>\n" +
9798
+ " <path d=\"M6.5 13L14 13A1 1 0 0 0 14 11L6.5 11A1 1 0 0 0 6.5 13Z\"/>\n" +
9799
+ " </symbol>\n" +
9800
+ "\n" +
9801
+ " <symbol id=\"icon-tooltip\" viewBox=\"0 0 24 24\">\n" +
9802
+ " <path d=\"M9.5 14H7A4 4 0 0 1 3 10V6A4 4 0 0 1 7 2H17A4 4 0 0 1 21 6V10A4 4 0 0 1 17 14H14.5A1 1 0 0 1 14.5 12H17A2 2 0 0 0 19 10V6A2 2 0 0 0 17 4H7A2 2 0 0 0 5 6V10A2 2 0 0 0 7 12H9.5A1 1 0 0 1 9.5 14Z\"/>\n" +
9803
+ " <path d=\"M8.73 13.64L11.23 16.64A1 1 0 0 0 12.77 15.36L10.27 12.36A1 1 0 0 0 8.73 13.64ZM12.77 16.64L15.27 13.64A1 1 0 0 0 13.73 12.36L11.23 15.36A1 1 0 0 0 12.77 16.64Z\"/>\n" +
9804
+ " <path d=\"M8.5 9L15.5 9A1 1 0 0 0 15.5 7L8.5 7A1 1 0 0 0 8.5 9Z\"/>\n" +
9805
+ " <path d=\"M6 21.5L18 21.5A1 1 0 0 0 18 19.5L6 19.5A1 1 0 0 0 6 21.5Z\"/>\n" +
9806
+ " </symbol>\n" +
9807
+ "\n" +
9808
+ " <symbol id=\"icon-data-table\" viewBox=\"0 0 24 24\">\n" +
9809
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.5 2H19.5A3.5 3.5 0 0 1 23 5.5V18.5A3.5 3.5 0 0 1 19.5 22H4.5A3.5 3.5 0 0 1 1 18.5V5.5A3.5 3.5 0 0 1 4.5 2ZM4.5 4H19.5A1.5 1.5 0 0 1 21 5.5V18.5A1.5 1.5 0 0 1 19.5 20H4.5A1.5 1.5 0 0 1 3 18.5V5.5A1.5 1.5 0 0 1 4.5 4Z\"/>\n" +
9810
+ " <path d=\"M2 9.5L22 9.5L22 7.5L2 7.5Z\"/>\n" +
9811
+ " <path d=\"M2 16L22 16L22 14L2 14Z\"/>\n" +
9812
+ " <path d=\"M8 3L8 21L10 21L10 3Z\"/>\n" +
9813
+ " </symbol>\n" +
9814
+ "\n" +
9815
+ " <symbol id=\"icon-virtual-scroll\" viewBox=\"0 0 24 24\">\n" +
9816
+ " <path d=\"M3 6L14 6A1 1 0 0 0 14 4L3 4A1 1 0 0 0 3 6Z\"/>\n" +
9817
+ " <path d=\"M3 11L14 11A1 1 0 0 0 14 9L3 9A1 1 0 0 0 3 11Z\"/>\n" +
9818
+ " <path d=\"M3 16L14 16A1 1 0 0 0 14 14L3 14A1 1 0 0 0 3 16Z\"/>\n" +
9819
+ " <path d=\"M3 21L11 21A1 1 0 0 0 11 19L3 19A1 1 0 0 0 3 21Z\"/>\n" +
9820
+ " <path d=\"M19 4.5L19 10.5A1.5 1.5 0 0 0 22 10.5L22 4.5A1.5 1.5 0 0 0 19 4.5Z\"/>\n" +
9821
+ " </symbol>\n" +
9822
+ "\n" +
9823
+ " <symbol id=\"icon-yesno\" viewBox=\"0 0 24 24\">\n" +
9824
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 5H19A4 4 0 0 1 23 9V15A4 4 0 0 1 19 19H5A4 4 0 0 1 1 15V9A4 4 0 0 1 5 5ZM5 7H19A2 2 0 0 1 21 9V15A2 2 0 0 1 19 17H5A2 2 0 0 1 3 15V9A2 2 0 0 1 5 7Z\"/>\n" +
9825
+ " <path d=\"M11 6L11 18L13 18L13 6Z\"/>\n" +
9826
+ " <path d=\"M4.54 12.96L6.04 14.46A1 1 0 0 0 7.46 13.04L5.96 11.54A1 1 0 0 0 4.54 12.96ZM7.52 14.39L10.02 11.39A1 1 0 0 0 8.48 10.11L5.98 13.11A1 1 0 0 0 7.52 14.39Z\"/>\n" +
9827
+ " <path d=\"M14.79 11.21L17.79 14.21A1 1 0 0 0 19.21 12.79L16.21 9.79A1 1 0 0 0 14.79 11.21Z\"/>\n" +
9828
+ " <path d=\"M17.79 9.79L14.79 12.79A1 1 0 0 0 16.21 14.21L19.21 11.21A1 1 0 0 0 17.79 9.79Z\"/>\n" +
9829
+ " </symbol>\n" +
9830
+ "\n" +
9831
+ " <symbol id=\"icon-wrapper\" viewBox=\"0 0 24 24\">\n" +
9832
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 2H19A4 4 0 0 1 23 6V18A4 4 0 0 1 19 22H5A4 4 0 0 1 1 18V6A4 4 0 0 1 5 2ZM5 4H19A2 2 0 0 1 21 6V18A2 2 0 0 1 19 20H5A2 2 0 0 1 3 18V6A2 2 0 0 1 5 4Z\"/>\n" +
9833
+ " <path d=\"M6 8.75L12.5 8.75A1 1 0 0 0 12.5 6.75L6 6.75A1 1 0 0 0 6 8.75Z\"/>\n" +
9834
+ " <path d=\"M15.29 7.71L16.79 9.21A1 1 0 0 0 18.21 7.79L16.71 6.29A1 1 0 0 0 15.29 7.71ZM18.21 9.21L19.71 7.71A1 1 0 0 0 18.29 6.29L16.79 7.79A1 1 0 0 0 18.21 9.21Z\"/>\n" +
9835
+ " <path d=\"M2 13L22 13L22 11L2 11Z\"/>\n" +
9836
+ " <path d=\"M6 17.5L18 17.5A1 1 0 0 0 18 15.5L6 15.5A1 1 0 0 0 6 17.5Z\"/>\n" +
9837
+ " </symbol>\n" +
9838
+ "\n" +
9839
+ " <symbol id=\"icon-badges-list\" viewBox=\"0 0 24 24\">\n" +
9840
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.5 3H9.5A3.5 3.5 0 0 1 13 6.5V6.5A3.5 3.5 0 0 1 9.5 10H4.5A3.5 3.5 0 0 1 1 6.5V6.5A3.5 3.5 0 0 1 4.5 3ZM4.5 5H9.5A1.5 1.5 0 0 1 11 6.5V6.5A1.5 1.5 0 0 1 9.5 8H4.5A1.5 1.5 0 0 1 3 6.5V6.5A1.5 1.5 0 0 1 4.5 5Z\"/>\n" +
9841
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M18.5 3H19.5A3.5 3.5 0 0 1 23 6.5V6.5A3.5 3.5 0 0 1 19.5 10H18.5A3.5 3.5 0 0 1 15 6.5V6.5A3.5 3.5 0 0 1 18.5 3ZM18.5 5H19.5A1.5 1.5 0 0 1 21 6.5V6.5A1.5 1.5 0 0 1 19.5 8H18.5A1.5 1.5 0 0 1 17 6.5V6.5A1.5 1.5 0 0 1 18.5 5Z\"/>\n" +
9842
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.5 14H7.5A3.5 3.5 0 0 1 11 17.5V17.5A3.5 3.5 0 0 1 7.5 21H4.5A3.5 3.5 0 0 1 1 17.5V17.5A3.5 3.5 0 0 1 4.5 14ZM4.5 16H7.5A1.5 1.5 0 0 1 9 17.5V17.5A1.5 1.5 0 0 1 7.5 19H4.5A1.5 1.5 0 0 1 3 17.5V17.5A1.5 1.5 0 0 1 4.5 16Z\"/>\n" +
9843
+ " <path d=\"M13.25 17.5A1.25 1.25 0 1 0 15.75 17.5A1.25 1.25 0 1 0 13.25 17.5ZM16.75 17.5A1.25 1.25 0 1 0 19.25 17.5A1.25 1.25 0 1 0 16.75 17.5ZM20.25 17.5A1.25 1.25 0 1 0 22.75 17.5A1.25 1.25 0 1 0 20.25 17.5Z\"/>\n" +
9844
+ " </symbol>\n" +
9845
+ "\n" +
9846
+ " <symbol id=\"icon-dialog\" viewBox=\"0 0 24 24\">\n" +
9847
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 2H19A4 4 0 0 1 23 6V18A4 4 0 0 1 19 22H5A4 4 0 0 1 1 18V6A4 4 0 0 1 5 2ZM5 4H19A2 2 0 0 1 21 6V18A2 2 0 0 1 19 20H5A2 2 0 0 1 3 18V6A2 2 0 0 1 5 4Z\"/>\n" +
9848
+ " <path d=\"M6 8L13 8A1 1 0 0 0 13 6L6 6A1 1 0 0 0 6 8Z\"/>\n" +
9849
+ " <path d=\"M6 12L18 12A1 1 0 0 0 18 10L6 10A1 1 0 0 0 6 12Z\"/>\n" +
9850
+ " <path d=\"M12 18H17A1 1 0 0 0 18 17V16A1 1 0 0 0 17 15H12A1 1 0 0 0 11 16V17A1 1 0 0 0 12 18Z\"/>\n" +
9264
9851
  " </symbol>\n" +
9265
9852
  "\n" +
9266
9853
  " <symbol id=\"icon-input-percent\" viewBox=\"0 0 24 24\">\n" +
9267
- " <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" +
9268
- " <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" +
9854
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9855
+ " <path d=\"M8.595 14.143V13.781C8.595 13.507 8.653 13.254 8.769 13.025C8.887 12.792 9.058 12.607 9.281 12.469C9.507 12.328 9.781 12.258 10.105 12.258C10.433 12.258 10.709 12.327 10.932 12.465C11.157 12.604 11.327 12.789 11.441 13.021C11.557 13.251 11.615 13.504 11.615 13.781V14.143C11.615 14.417 11.557 14.671 11.441 14.903C11.325 15.133 11.154 15.317 10.929 15.455C10.703 15.596 10.429 15.666 10.105 15.666C9.777 15.666 9.501 15.596 9.278 15.455C9.055 15.317 8.885 15.133 8.769 14.903C8.653 14.671 8.595 14.417 8.595 14.143ZM9.569 13.781V14.143C9.569 14.301 9.607 14.451 9.683 14.591C9.761 14.732 9.902 14.802 10.105 14.802C10.308 14.802 10.446 14.733 10.52 14.595C10.596 14.456 10.634 14.306 10.634 14.143V13.781C10.634 13.618 10.598 13.466 10.527 13.326C10.455 13.185 10.315 13.115 10.105 13.115C9.904 13.115 9.765 13.185 9.686 13.326C9.608 13.466 9.569 13.618 9.569 13.781ZM5.076 10.219V9.857C5.076 9.58 5.135 9.327 5.253 9.097C5.372 8.865 5.542 8.68 5.766 8.541C5.991 8.403 6.263 8.334 6.583 8.334C6.913 8.334 7.19 8.403 7.413 8.541C7.636 8.68 7.806 8.865 7.922 9.097C8.038 9.327 8.096 9.58 8.096 9.857V10.219C8.096 10.496 8.037 10.749 7.919 10.979C7.802 11.209 7.632 11.393 7.406 11.531C7.183 11.667 6.908 11.735 6.583 11.735C6.257 11.735 5.981 11.666 5.756 11.528C5.532 11.387 5.363 11.203 5.247 10.975C5.133 10.746 5.076 10.493 5.076 10.219ZM6.057 9.857V10.219C6.057 10.382 6.095 10.532 6.171 10.671C6.249 10.809 6.386 10.878 6.583 10.878C6.788 10.878 6.927 10.809 7.001 10.671C7.077 10.532 7.115 10.382 7.115 10.219V9.857C7.115 9.694 7.079 9.542 7.008 9.402C6.936 9.261 6.795 9.191 6.583 9.191C6.384 9.191 6.247 9.262 6.171 9.405C6.095 9.548 6.057 9.699 6.057 9.857ZM5.518 15.429L10.232 8.571H11.109L6.395 15.429H5.518Z\"/>\n" +
9269
9856
  " </symbol>\n" +
9270
9857
  "\n" +
9271
9858
  " <symbol id=\"icon-input-number\" viewBox=\"0 0 24 24\">\n" +
9272
- " <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" +
9273
- " <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" +
9274
- " <path d=\"M7.12891 8V16H5.4375V9.60547H5.39062L3.55859 10.7539V9.25391L5.53906 8H7.12891Z\"/>\n" +
9859
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9860
+ " <path d=\"M9.455 15.429V14.384L11.895 12.124C12.103 11.923 12.277 11.742 12.418 11.581C12.561 11.421 12.669 11.263 12.742 11.109C12.816 10.953 12.853 10.785 12.853 10.604C12.853 10.403 12.807 10.23 12.716 10.085C12.624 9.938 12.499 9.825 12.341 9.747C12.182 9.666 12.002 9.626 11.802 9.626C11.592 9.626 11.409 9.669 11.252 9.753C11.096 9.838 10.976 9.96 10.891 10.118C10.806 10.277 10.764 10.465 10.764 10.684H9.388C9.388 10.235 9.489 9.846 9.692 9.516C9.895 9.185 10.18 8.93 10.546 8.749C10.912 8.568 11.334 8.478 11.812 8.478C12.303 8.478 12.73 8.565 13.094 8.739C13.46 8.911 13.745 9.15 13.948 9.455C14.151 9.761 14.252 10.112 14.252 10.507C14.252 10.766 14.201 11.021 14.098 11.273C13.998 11.526 13.818 11.806 13.559 12.114C13.301 12.42 12.936 12.787 12.465 13.215L11.463 14.196V14.243H14.343V15.429H9.455Z\"/>\n" +
9861
+ " <path d=\"M7.825 8.571V15.429H6.375V9.948H6.335L4.765 10.932V9.646L6.462 8.571H7.825Z\"/>\n" +
9275
9862
  " </symbol>\n" +
9276
9863
  "\n" +
9277
9864
  " <symbol id=\"icon-input-text\" viewBox=\"0 0 24 24\">\n" +
9278
- " <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" +
9279
- " <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" +
9280
- " <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" +
9865
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9866
+ " <path d=\"M11.935 15.429V8.571H14.68C15.185 8.571 15.605 8.646 15.943 8.796C16.28 8.945 16.533 9.153 16.703 9.419C16.872 9.682 16.957 9.985 16.957 10.329C16.957 10.597 16.903 10.833 16.796 11.036C16.689 11.237 16.542 11.402 16.354 11.531C16.169 11.659 15.957 11.749 15.718 11.802V11.869C15.979 11.881 16.224 11.954 16.451 12.09C16.681 12.227 16.868 12.417 17.011 12.663C17.153 12.906 17.225 13.196 17.225 13.534C17.225 13.897 17.134 14.222 16.954 14.508C16.775 14.791 16.511 15.016 16.16 15.181C15.81 15.346 15.378 15.429 14.864 15.429H11.935ZM13.384 14.243H14.566C14.97 14.243 15.265 14.166 15.45 14.012C15.636 13.856 15.728 13.648 15.728 13.39C15.728 13.2 15.682 13.032 15.591 12.887C15.499 12.742 15.369 12.628 15.199 12.546C15.032 12.463 14.832 12.422 14.6 12.422H13.384V14.243ZM13.384 11.441H14.459C14.658 11.441 14.834 11.406 14.988 11.337C15.145 11.266 15.267 11.165 15.357 11.036C15.448 10.906 15.494 10.751 15.494 10.57C15.494 10.323 15.406 10.123 15.229 9.971C15.055 9.819 14.807 9.743 14.486 9.743H13.384V11.441Z\"/>\n" +
9867
+ " <path d=\"M6.064 15.429H4.51L6.877 8.571H8.746L11.109 15.429H9.556L7.838 10.138H7.785L6.064 15.429ZM5.967 12.733H9.636V13.865H5.967V12.733Z\"/>\n" +
9281
9868
  " </symbol>\n" +
9282
9869
  "\n" +
9283
9870
  " <symbol id=\"icon-input\" viewBox=\"0 0 24 24\">\n" +
9284
- " <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" +
9285
- " <path d=\"M7 17H5L5 7H7L7 17Z\"/>\n" +
9871
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9872
+ " <path d=\"M5.5 9L5.5 15A1 1 0 0 0 7.5 15L7.5 9A1 1 0 0 0 5.5 9Z\"/>\n" +
9286
9873
  " </symbol>\n" +
9287
9874
  "\n" +
9288
9875
  " <symbol id=\"icon-dropdown\" viewBox=\"0 0 24 24\">\n" +
9289
- " <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" +
9290
- " <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" +
9876
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9877
+ " <path d=\"M6 13L10 13A1 1 0 0 0 10 11L6 11A1 1 0 0 0 6 13Z\"/>\n" +
9878
+ " <path d=\"M14.79 11.71L16.79 13.71A1 1 0 0 0 18.21 12.29L16.21 10.29A1 1 0 0 0 14.79 11.71ZM18.21 13.71L20.21 11.71A1 1 0 0 0 18.79 10.29L16.79 12.29A1 1 0 0 0 18.21 13.71Z\"/>\n" +
9291
9879
  " </symbol>\n" +
9292
9880
  "\n" +
9293
9881
  " <symbol id=\"icon-options\" viewBox=\"0 0 24 24\">\n" +
9294
- " <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" +
9295
- " <path d=\"M4.5 8.5C4.5 7.67157 5.17157 7 6 7V7C6.82843 7 7.5 7.67157 7.5 8.5V15.5C7.5 16.3284 6.82843 17 6 17V17C5.17157 17 4.5 16.3284 4.5 15.5V8.5Z\"/>\n" +
9296
- " <path d=\"M10.5 8.5C10.5 7.67157 11.1716 7 12 7V7C12.8284 7 13.5 7.67157 13.5 8.5V15.5C13.5 16.3284 12.8284 17 12 17V17C11.1716 17 10.5 16.3284 10.5 15.5V8.5Z\"/>\n" +
9297
- " <path d=\"M16.5 8.5C16.5 7.67157 17.1716 7 18 7V7C18.8284 7 19.5 7.67157 19.5 8.5V15.5C19.5 16.3284 18.8284 17 18 17V17C17.1716 17 16.5 16.3284 16.5 15.5V8.5Z\"/>\n" +
9882
+ " <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 4H19A4 4 0 0 1 23 8V16A4 4 0 0 1 19 20H5A4 4 0 0 1 1 16V8A4 4 0 0 1 5 4ZM5 6H19A2 2 0 0 1 21 8V16A2 2 0 0 1 19 18H5A2 2 0 0 1 3 16V8A2 2 0 0 1 5 6Z\"/>\n" +
9883
+ " <path d=\"M6 9L6 15A1 1 0 0 0 8 15L8 9A1 1 0 0 0 6 9Z\"/>\n" +
9884
+ " <path d=\"M11 9L11 15A1 1 0 0 0 13 15L13 9A1 1 0 0 0 11 9Z\"/>\n" +
9885
+ " <path d=\"M16 9L16 15A1 1 0 0 0 18 15L18 9A1 1 0 0 0 16 9Z\"/>\n" +
9298
9886
  " </symbol>\n" +
9299
9887
  "\n" +
9300
9888
  " <symbol id=\"icon-seat\" viewBox=\"0 0 370 370\">\n" +
@@ -9546,6 +10134,9 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
9546
10134
  "\n" +
9547
10135
  " \n" +
9548
10136
  " <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
10137
+ " \n" +
10138
+ " <input type=\"checkbox\" class=\"hidden-input\" ng-model=\"model\" ng-required=\"required\" tabindex=\"-1\">\n" +
10139
+ "\n" +
9549
10140
  " <button type=\"button\" class=\"nice-toggle-field\" ng-click=\"toggle()\" ng-disabled=\"isDisabled\">\n" +
9550
10141
  " <div class=\"nice-toggle-field-handle\">\n" +
9551
10142
  " <nice-icon ng-if=\"showIcons && model\" icon=\"icon-check\"></nice-icon>\n" +
@@ -9586,7 +10177,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
9586
10177
  " </button>\n" +
9587
10178
  "\n" +
9588
10179
  " \n" +
9589
- " <input class=\"input-file\" type=\"file\" accept=\"{{ accept }}\" ng-model=\"file\" ng-required=\"required\" ng-disabled=\"isDisabled || loading\">\n" +
10180
+ " <input class=\"input-file\" type=\"file\" accept=\"{{ accept }}\" ng-model=\"file\" ng-required=\"required && !model\" ng-disabled=\"isDisabled || loading\">\n" +
9590
10181
  "\n" +
9591
10182
  " \n" +
9592
10183
  " <div class=\"nice-upload-loading\" ng-if=\"loading\">\n" +
@@ -9619,6 +10210,7 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
9619
10210
  " <div class=\"nice-view-header-subtitle\">{{ niceSubtitle }}</div>\n" +
9620
10211
  " <div class=\"nice-view-header-title\">{{ niceTitle }}</div>\n" +
9621
10212
  " </div>\n" +
10213
+ " <div class=\"nice-view-header-content\" ng-transclude=\"header\"></div>\n" +
9622
10214
  " </div>\n" +
9623
10215
  " </div>\n" +
9624
10216
  " <div class=\"nice-view-body\" ng-transclude></div>\n" +
@@ -9665,6 +10257,9 @@ angular.module('niceElements').run(['$templateCache', function($templateCache) {
9665
10257
  "\n" +
9666
10258
  " \n" +
9667
10259
  " <div class=\"nice-field col-xs-12\" ng-class=\"[fieldWidth ? fieldWidth : 'col-sm-8', { 'nice-disabled': isDisabled }]\">\n" +
10260
+ " \n" +
10261
+ " <input class=\"hidden-input\" ng-model=\"model\" ng-required=\"required\" tabindex=\"-1\">\n" +
10262
+ "\n" +
9668
10263
  " <div class=\"yesno-wrapper noselect\">\n" +
9669
10264
  " <button type=\"button\" class=\"yesno-yes-bg\" ng-click=\"switch()\" tabindex=\"-1\" ng-disabled=\"isDisabled\">{{ yes }}</button>\n" +
9670
10265
  " <button type=\"button\" class=\"yesno-no-bg\" ng-click=\"switch()\" tabindex=\"-1\" ng-disabled=\"isDisabled\">{{ no }}</button>\n" +