nice-elements 1.12.2 → 1.12.4

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.
@@ -37,21 +37,21 @@ angular.module('niceElements')
37
37
  isInline: '=',
38
38
  onChange: '&?'
39
39
  },
40
- link: function (scope, element, attrs, ctrl, transcludeFn) {
41
-
40
+ link: function (scope, element, attrs) {
42
41
  if (!attrs.title) { attrs.title = ''; }
43
42
  if (!attrs.placeholder) { attrs.placeholder = ''; }
44
- attrs.required = angular.isDefined(attrs.required);
45
43
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
46
44
  if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
47
- attrs.hideValid = angular.isDefined(attrs.hideValid);
48
- attrs.showDropdown = angular.isDefined(attrs.showDropdown);
49
- attrs.clearInput = angular.isDefined(attrs.clearInput);
50
- attrs.resetSearchInput = angular.isDefined(attrs.resetSearchInput);
51
- attrs.disableRow = angular.isDefined(attrs.disableRow);
52
- attrs.noMargin = angular.isDefined(attrs.noMargin);
53
45
  if (!attrs.setText) { attrs.setText = ''; }
54
46
 
47
+ attrs.required = attrs.required === 'true' || attrs.required === true;
48
+ attrs.hideValid = attrs.hideValid === 'true' || attrs.hideValid === true;
49
+ attrs.showDropdown = attrs.showDropdown === 'true' || attrs.showDropdown === true;
50
+ attrs.clearInput = attrs.clearInput === 'true' || attrs.clearInput === true;
51
+ attrs.resetSearchInput = attrs.resetSearchInput === 'true' || attrs.resetSearchInput === true;
52
+ attrs.disableRow = attrs.disableRow === 'true' || attrs.disableRow === true;
53
+ attrs.noMargin = attrs.noMargin === 'true' || attrs.noMargin === true;
54
+
55
55
  // This is used for connecting directive's scope to transcluded html.
56
56
  // transcludeFn(scope, function(clone, scope) {
57
57
  // var el = element.find('.nice-search');
@@ -237,7 +237,7 @@ angular.module('niceElements')
237
237
  $scope.remove = function () {
238
238
  $scope.model = null;
239
239
  $scope.modelString = null;
240
- }
240
+ };
241
241
  }
242
- }
242
+ };
243
243
  });
@@ -1158,6 +1158,16 @@
1158
1158
  <path d="M23.6 7.70001L21.8 5.90001C21.5 5.60001 21 5.60001 20.6 5.80001C20.4 5.90001 19.1 6.90001 18.1 5.90001C17.1 4.90001 18.1 3.60001 18.2 3.40001C18.5 3.00001 18.4 2.50001 18.1 2.20001L16.3 0.400006C16.1 0.200006 15.9 0.100006 15.7 0.100006C15.5 0.100006 15.2 0.200006 15.1 0.400006L0.399976 15C0.199976 15.2 0.0999756 15.4 0.0999756 15.6C0.0999756 15.8 0.199976 16.1 0.399976 16.2L2.19998 18C2.59998 18.4 3.09998 18.4 3.49998 18C3.69998 17.8 4.79998 16.9 5.89998 18C6.99998 19.1 6.19998 20.1 5.89998 20.4C5.69998 20.6 5.59998 20.8 5.59998 21C5.59998 21.2 5.69998 21.5 5.89998 21.6L7.69998 23.4C7.89998 23.6 8.09998 23.7 8.29998 23.7C8.49998 23.7 8.79997 23.6 8.89997 23.4L23.6 9.00001C24 8.60001 24 8.00001 23.6 7.70001ZM18.1 12L17 10.9L15.9 12L17 13.1L8.29998 21.8L7.69998 21.2C7.79998 21 7.99998 20.7 8.09998 20.4C8.49998 19.2 8.19998 17.9 7.19998 17C5.69998 15.5 4.09998 15.8 2.99998 16.4L2.39998 15.8L10.9 7.00001L12 8.10001L13.1 7.00001L12 5.90001L15.7 2.20001L16.4 3.00001C15.8 4.10001 15.5 5.80001 16.9 7.20001C18.3 8.60001 20 8.30001 21.1 7.70001L21.8 8.40001L18.1 12Z"></path>
1159
1159
  </symbol>
1160
1160
 
1161
+ <symbol id="icon-x-o" viewBox="0 0 36 36">
1162
+ <path d="M34 18C34 9.16344 26.8366 2 18 2C9.16344 2 2 9.16344 2 18C2 26.8366 9.16344 34 18 34V36C8.05887 36 0 27.9411 0 18C0 8.05887 8.05887 0 18 0C27.9411 0 36 8.05887 36 18C36 27.9411 27.9411 36 18 36V34C26.8366 34 34 26.8366 34 18Z" />
1163
+ <path d="M11.293 12.707L16.586 18L11.293 23.293C10.902 23.684 10.902 24.317 11.293 24.707C11.684 25.097 12.317 25.098 12.707 24.707L18 19.414L23.293 24.707C23.684 25.098 24.317 25.098 24.707 24.707C25.097 24.316 25.098 23.683 24.707 23.293L19.414 18L24.707 12.707C25.098 12.316 25.098 11.683 24.707 11.293C24.316 10.903 23.683 10.902 23.293 11.293L18 16.586L12.707 11.293C12.316 10.902 11.683 10.902 11.293 11.293C10.903 11.684 10.902 12.317 11.293 12.707Z" />
1164
+ </symbol>
1165
+
1166
+ <symbol id="icon-check-o" viewBox="0 0 36 36">
1167
+ <path d="M34 18C34 9.16344 26.8366 2 18 2C9.16344 2 2 9.16344 2 18C2 26.8366 9.16344 34 18 34V36C8.05887 36 0 27.9411 0 18C0 8.05887 8.05887 0 18 0C27.9411 0 36 8.05887 36 18C36 27.9411 27.9411 36 18 36V34C26.8366 34 34 26.8366 34 18Z" />
1168
+ <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" />
1169
+ </symbol>
1170
+
1161
1171
  <symbol id="icon-seat" viewBox="0 0 370 370">
1162
1172
  <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>
1163
1173
  <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>
@@ -39,12 +39,12 @@ angular.module('niceElements')
39
39
  if (!attrs.fieldWidth) { attrs.fieldWidth = 'col-sm-8'; }
40
40
  if (!attrs.labelWidth) { attrs.labelWidth = 'col-sm-4'; }
41
41
  if (!attrs.maxFileSize) scope.maxFileSize = 1; // 1MB
42
- attrs.noMargin = angular.isDefined(attrs.noMargin);
42
+ attrs.noMargin = attrs.noMargin === 'true' || attrs.noMargin === true;
43
43
 
44
- scope.startDragging = function () { $timeout(function () { scope.dragging = true; }); }
45
- scope.endDragging = function () { $timeout(function () { scope.dragging = false; }); }
46
- scope.startDraggingGlobal = function () { $timeout(function () { scope.draggingGlobal = true; }); }
47
- scope.endDraggingGlobal = function () { $timeout(function () { scope.dragging = false; scope.draggingGlobal = false; }); }
44
+ scope.startDragging = function () { $timeout(function () { scope.dragging = true; }); };
45
+ scope.endDragging = function () { $timeout(function () { scope.dragging = false; }); };
46
+ scope.startDraggingGlobal = function () { $timeout(function () { scope.draggingGlobal = true; }); };
47
+ scope.endDraggingGlobal = function () { $timeout(function () { scope.dragging = false; scope.draggingGlobal = false; }); };
48
48
 
49
49
  scope.dragging = false;
50
50
  scope.draggingGlobal = false;
@@ -10,7 +10,7 @@ angular.module('niceElements')
10
10
  .service('NiceService', function ($rootScope) {
11
11
  const service = {
12
12
  name: "Nice elements",
13
- version: "1.12.2",
13
+ version: "1.12.4",
14
14
  getHeader: function () {
15
15
  return {};
16
16
  },
@@ -42,6 +42,10 @@ label.nice {
42
42
  .form-group {
43
43
  display: flex;
44
44
 
45
+ .input-group-btns {
46
+ display: flex;
47
+ }
48
+
45
49
  .input-group-addon,
46
50
  .input-group-btn {
47
51
  width: auto;
@@ -81,8 +85,8 @@ label.nice {
81
85
  z-index: unset;
82
86
  }
83
87
 
84
- .input-group-btn:last-child>.btn,
85
- .input-group-btn:last-child>.btn-group {
88
+ .input-group-btn:last-child > .btn,
89
+ .input-group-btn:last-child > .btn-group {
86
90
  z-index: unset;
87
91
  }
88
92
 
@@ -127,7 +131,7 @@ label.nice {
127
131
  padding-left: 1px;
128
132
  }
129
133
 
130
- .nice-title-text+.nice-title-help {
134
+ .nice-title-text + .nice-title-help {
131
135
  margin-left: 5px;
132
136
  line-height: 1;
133
137
  }
@@ -163,7 +167,7 @@ label.nice {
163
167
  // border-color: $nice-focus-border;
164
168
  box-shadow: 0 0 0;
165
169
 
166
- &+.input-group-addon {
170
+ & + .input-group-addon {
167
171
  // border-color: $nice-focus-border;
168
172
  // background-color: $nice-focus-border;
169
173
  // color: white;
@@ -212,7 +216,6 @@ label.nice {
212
216
  }
213
217
  }
214
218
 
215
-
216
219
  .nice-component-inline {
217
220
  .nice-title {
218
221
  justify-content: flex-start;
@@ -226,7 +229,6 @@ label.nice {
226
229
  }
227
230
  }
228
231
 
229
-
230
232
  .margin-top-20 {
231
233
  margin-top: 20px;
232
234
  }
@@ -268,8 +270,6 @@ p.nice {
268
270
  padding: 10px 0px;
269
271
  border-top: 1px solid $nice-border-color;
270
272
 
271
-
272
-
273
273
  .list-inline {
274
274
  margin-bottom: 0px;
275
275
  }
@@ -416,7 +416,6 @@ p.nice {
416
416
  .has-warning {
417
417
  outline-color: $nice-input-invalid !important;
418
418
 
419
-
420
419
  .form-control,
421
420
  .btn {
422
421
  border-color: $nice-input-invalid !important;
@@ -469,4 +468,4 @@ p.nice {
469
468
 
470
469
  .d-block {
471
470
  display: block;
472
- }
471
+ }
@@ -124,6 +124,7 @@ $nice-table-bg-active: #f5f5f5 !default;
124
124
  --nice-font-family: #{$nice-font-family};
125
125
  --nice-font-weight: #{$nice-font-weight};
126
126
  --nice-font-color: #{$nice-font-color};
127
+ --nice-font-color-darker: #{darken($nice-font-color, 15%)};
127
128
  --nice-font-color-lighter: #767676;
128
129
 
129
130
  // ---------- Common ----------
@@ -188,4 +189,7 @@ $nice-table-bg-active: #f5f5f5 !default;
188
189
  // ---------- Tooltip ----------
189
190
  --nice-help-popup-bg: #3e3e3e;
190
191
  --nice-help-popup-color: white;
192
+
193
+ // ---------- Choice ----------
194
+ --nice-choice-hover-border: #{$nice-choice-hover-border};
191
195
  }