nice-elements 1.13.8 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/bower.json +1 -1
  4. package/dist/nice.js +233 -169
  5. package/dist/nice.min.js +1 -1
  6. package/dist/style.css +391 -1002
  7. package/dist/style.css.map +1 -59
  8. package/dist/style.min.css +2 -2
  9. package/package.json +6 -6
  10. package/src/components/nice-alert/nice-alert.scss +5 -0
  11. package/src/components/nice-comment/nice-comment.js +11 -11
  12. package/src/components/nice-comment/nice-comment.scss +0 -2
  13. package/src/components/nice-date/nice-date.js +8 -1
  14. package/src/components/nice-date/nice-date.scss +1 -0
  15. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.js +9 -2
  16. package/src/components/nice-datetimerange-picker-2/nice-datetimerange-picker-2.scss +1 -0
  17. package/src/components/nice-dropdown/nice-dropdown.html +3 -3
  18. package/src/components/nice-dropdown/nice-dropdown.js +21 -15
  19. package/src/components/nice-dropdown/nice-dropdown.scss +20 -0
  20. package/src/components/nice-help/nice-help.html +3 -4
  21. package/src/components/nice-help/nice-help.js +10 -37
  22. package/src/components/nice-help/nice-help.scss +59 -27
  23. package/src/components/nice-input/nice-input.html +3 -0
  24. package/src/components/nice-input/nice-input.js +4 -4
  25. package/src/components/nice-input/nice-input.scss +1 -1
  26. package/src/components/nice-notification/nice-notification.html +9 -4
  27. package/src/components/nice-notification/nice-notification.js +66 -46
  28. package/src/components/nice-notification/nice-notification.scss +99 -19
  29. package/src/components/nice-percent/nice-percent.html +5 -5
  30. package/src/components/nice-popup/nice-popup.js +10 -5
  31. package/src/components/nice-search2/nice-search2.js +15 -5
  32. package/src/components/nice-toggle/nice-toggle.html +1 -1
  33. package/src/components/nice-toggle/nice-toggle.scss +15 -1
  34. package/src/components/nice-upload/nice-upload.html +1 -1
  35. package/src/components/nice-upload/nice-upload.scss +3 -0
  36. package/src/components/nice-virtual-scroll/nice-virtual-scroll.js +15 -3
  37. package/src/directives/nice-click-outside.js +24 -18
  38. package/src/directives/nice-tooltip/nice-tooltip.js +14 -4
  39. package/src/services/nice-service.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.13.8",
3
+ "version": "1.14.1",
4
4
  "description": "Nice elements used in olaii angular 1.x webapps.",
5
5
  "main": "dist/nice.js",
6
6
  "license": "MIT",
@@ -10,11 +10,11 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@olaii/ng-infinite-scroll": "1.3.1",
13
- "angular-infinite-scroll": "3.1.1",
14
13
  "@popperjs/core": "2.11.6",
15
14
  "angular": "1.5.8",
16
15
  "angular-animate": "1.5.8",
17
16
  "angular-gettext": "2.4.2",
17
+ "angular-infinite-scroll": "3.1.1",
18
18
  "angular-route": "1.5.8",
19
19
  "angular-sanitize": "1.5.8",
20
20
  "angular-touch": "1.5.8",
@@ -27,10 +27,10 @@
27
27
  "ng-dialog": "0.5.6"
28
28
  },
29
29
  "devDependencies": {
30
- "@eslint/js": "^9.2.0",
31
- "eslint": "^9.2.0",
32
- "globals": "^15.2.0",
30
+ "@eslint/js": "9.2.0",
31
+ "eslint": "9.2.0",
33
32
  "express": "4.17.1",
33
+ "globals": "15.2.0",
34
34
  "grunt": "1.6.1",
35
35
  "grunt-angular-templates": "1.2.0",
36
36
  "grunt-contrib-clean": "2.0.0",
@@ -40,6 +40,6 @@
40
40
  "grunt-contrib-uglify": "5.0.1",
41
41
  "grunt-sass": "3.1.0",
42
42
  "load-grunt-tasks": "5.1.0",
43
- "node-sass": "9.0.0"
43
+ "sass": "1.107.1"
44
44
  }
45
45
  }
@@ -31,6 +31,11 @@
31
31
  .nice-alert-title {
32
32
  font-size: 1.2em;
33
33
  font-weight: bold;
34
+ margin-bottom: 3px;
35
+ }
36
+
37
+ .nice-alert-message {
38
+ line-height: 1.4;
34
39
  }
35
40
 
36
41
  &.nice-alert-success {
@@ -45,21 +45,21 @@ angular.module('niceElements')
45
45
  });
46
46
  };
47
47
 
48
- textareas[0].addEventListener('keydown', autosize);
49
- autosize();
50
-
48
+ // Resize to fit the content. Runs outside Angular: it only touches the
49
+ // textarea's style, so it never triggers a digest.
51
50
  function autosize() {
52
51
  const el = textareas[0];
53
- $timeout(function () {
54
- el.style.cssText = 'height:auto; padding:0';
52
+ el.style.height = 'auto';
53
+ el.style.height = (el.scrollHeight + 2) + 'px';
54
+ }
55
55
 
56
- // for box-sizing other than "content-box" use:
57
- el.style.cssText = '-moz-box-sizing:content-box';
56
+ // 'input' fires after the value changes (typing, paste, cut), so no timeout is needed
57
+ textareas[0].addEventListener('input', autosize);
58
58
 
59
- // Fix height
60
- el.style.cssText = 'height:' + (el.scrollHeight + 2) + 'px';
61
- });
62
- }
59
+ // Also fit when the model is set from outside; wait for ngModel to render it
60
+ scope.$watch('model', function () {
61
+ $timeout(autosize, 0, false);
62
+ });
63
63
  },
64
64
  controller: function ($scope) {
65
65
  $scope.editing = false;
@@ -27,13 +27,11 @@
27
27
 
28
28
  border-radius: $nice-border-radius;
29
29
  border-color: transparent;
30
- color: $nice-base-color;
31
30
  -webkit-user-select: none;
32
31
  padding: 6px 0px;
33
32
 
34
33
  &.editing {
35
34
  padding: 6px;
36
- color: $nice-font-color;
37
35
  -webkit-user-select: initial;
38
36
  }
39
37
  }
@@ -114,10 +114,17 @@ angular.module('niceElements')
114
114
  });
115
115
  };
116
116
 
117
- $timeout(function () {
117
+ const setupTimer = $timeout(function () {
118
118
  if (!$scope.inline) $scope.setupPopper();
119
119
  }, 100);
120
120
 
121
+ // Popper adds scroll/resize listeners to window; remove them with the component
122
+ $scope.$on('$destroy', function () {
123
+ $timeout.cancel(setupTimer);
124
+ if ($scope.popper) $scope.popper.destroy();
125
+ $scope.popper = null;
126
+ });
127
+
121
128
 
122
129
  // ------------------ Time changes ------------------
123
130
  $scope.timeChange = function () {
@@ -194,6 +194,7 @@
194
194
 
195
195
  &.between {
196
196
  background: var(--nice-primary-color-lighter);
197
+ color: white;
197
198
  }
198
199
 
199
200
  &:hover {
@@ -83,10 +83,17 @@ angular.module('niceElements')
83
83
  });
84
84
  };
85
85
 
86
- $timeout(function () {
86
+ const setupTimer = $timeout(function () {
87
87
  $scope.setupPopper();
88
88
  });
89
89
 
90
+ // Popper adds scroll/resize listeners to window; remove them with the component
91
+ $scope.$on('$destroy', function () {
92
+ $timeout.cancel(setupTimer);
93
+ if ($scope.popper) $scope.popper.destroy();
94
+ $scope.popper = null;
95
+ });
96
+
90
97
 
91
98
  $scope.format = function () {
92
99
  $scope.modelFormat = $scope.startDate.format($scope.formatString) + " - " + $scope.endDate.format($scope.formatString);
@@ -96,7 +103,7 @@ angular.module('niceElements')
96
103
  $scope.open = function () {
97
104
  if (!$scope.isDisabled) {
98
105
  $scope.isOpen = true;
99
- $scope.popper.update();
106
+ if ($scope.popper) $scope.popper.update();
100
107
  }
101
108
  };
102
109
 
@@ -32,6 +32,7 @@
32
32
  width: 110px;
33
33
  display: flex;
34
34
  flex-direction: column;
35
+ flex-shrink: 0;
35
36
 
36
37
  @media (max-width: $screen-md-min) {
37
38
  width: auto;
@@ -11,9 +11,9 @@
11
11
  <input class="hidden-input" ng-model="model" ng-required="required" ng-disabled="disabled" tabindex="-1" />
12
12
  <div class="btn-dropdown-inside" ng-transclude="button" ng-if="selected != null">
13
13
  <span ng-if="!multiple">{{ selected[objValue] }}</span>
14
- <span ng-if="multiple">
15
- <span ng-if="selected.length > 1">{{ selected.length }} {{ selectedText }}</span>
16
- <span ng-if="selected.length == 1">{{ selected[0][objValue] }}</span>
14
+ <span ng-if="multiple" class="multiple-selected" ng-class="{ 'has-more': selected.length > maxSelectedShown }">
15
+ <span ng-if="selected.length > 0" class="multiple-selected-values"><span ng-repeat="item in selected | limitTo: maxSelectedShown">{{ item[objValue] }}{{ $last ? '' : ', ' }}</span></span>
16
+ <span ng-if="selected.length > maxSelectedShown" class="multiple-selected-more">+{{ selected.length - maxSelectedShown }} {{ moreText }}</span>
17
17
  <span ng-if="selected.length == 0" class="not-selected">{{ nullableText }}</span>
18
18
  </span>
19
19
  </div>
@@ -46,6 +46,8 @@ angular.module('niceElements')
46
46
  noSearch: '=',
47
47
  nullableText: '@',
48
48
  selectedText: '@',
49
+ maxSelectedShown: '@?', // Multiple: number of selected values shown before "+x more" (default 4)
50
+ moreText: '@?', // Multiple: text after "+x" (default "more")
49
51
  dropdownDistance: '@',
50
52
  searchFunction: '=?',
51
53
  filterFunction: '=?',
@@ -65,6 +67,9 @@ angular.module('niceElements')
65
67
  if (!$scope.nullableText) { $scope.nullableText = gettextCatalog.getString("None", null, "Nice"); }
66
68
  if (!$scope.selectText) { $scope.selectText = gettextCatalog.getString("None", null, "Nice"); }
67
69
  if (!$scope.selectedText) { $scope.selectedText = gettextCatalog.getString("selected", null, "Nice"); }
70
+ if (!$scope.moreText) { $scope.moreText = gettextCatalog.getString("more", null, "Nice"); }
71
+ $scope.maxSelectedShown = parseInt($scope.maxSelectedShown, 10);
72
+ if (isNaN($scope.maxSelectedShown) || $scope.maxSelectedShown < 1) { $scope.maxSelectedShown = 4; }
68
73
  if (!$scope.addButtonFunction) { $scope.addButtonFunction = null; }
69
74
  if (!$scope.placement) { $scope.placement = "bottom-start"; }
70
75
  $scope.noMargin = $scope.noMargin === 'true' || $scope.noMargin === true;
@@ -91,8 +96,6 @@ angular.module('niceElements')
91
96
  $scope.popper = Popper.createPopper(button, tooltip, {
92
97
  strategy: 'fixed',
93
98
  placement: $scope.placement,
94
- scroll: true,
95
- resize: true,
96
99
  modifiers: [
97
100
  {
98
101
  name: 'offset',
@@ -122,10 +125,17 @@ angular.module('niceElements')
122
125
  });
123
126
  };
124
127
 
125
- $timeout(function () {
128
+ const setupTimer = $timeout(function () {
126
129
  $scope.setupPopper();
127
130
  });
128
131
 
132
+ // Popper adds scroll/resize listeners to window; remove them with the component
133
+ $scope.$on('$destroy', function () {
134
+ $timeout.cancel(setupTimer);
135
+ if ($scope.popper) $scope.popper.destroy();
136
+ $scope.popper = null;
137
+ });
138
+
129
139
 
130
140
  // ----------------------------------- Open -----------------------------------
131
141
  $scope.toggle = function () {
@@ -142,13 +152,13 @@ angular.module('niceElements')
142
152
  };
143
153
 
144
154
  $scope.open = function () {
145
- $scope.popper.update();
155
+ if ($scope.popper) $scope.popper.update();
146
156
  if ($scope.filterFunction) $scope.internalList = $scope.filterFunction($scope.originalList, $scope.model);
147
157
  $timeout(function () {
148
158
  $scope.isOpen = true;
149
159
  if ($scope.onOpen) $scope.onOpen();
150
160
  $timeout(function () {
151
- $scope.popper.update();
161
+ if ($scope.popper) $scope.popper.update();
152
162
  });
153
163
  });
154
164
  $timeout(function () {
@@ -504,16 +514,12 @@ angular.module('niceElements')
504
514
 
505
515
  // ----------------------------------- Handle add button function -----------------------------------
506
516
  $scope.handleAddButton = function ($event) {
507
- let element = $event.target;
508
- while (true) {
509
- if (element.nodeName == 'BUTTON') {
510
- element.blur();
511
- break;
512
- }
513
- element = element.parentElement;
514
- }
515
- $scope.addButtonFunction();
516
- }
517
+ // Blur the clicked button. closest() stops at the root instead of
518
+ // walking past it (the old loop crashed if no <button> was found).
519
+ const button = $event && $event.target && $event.target.closest ? $event.target.closest('button') : null;
520
+ if (button) button.blur();
521
+ if ($scope.addButtonFunction) $scope.addButtonFunction();
522
+ };
517
523
  }
518
524
  };
519
525
  });
@@ -205,6 +205,26 @@
205
205
  line-height: 1.2;
206
206
  margin-top: 1px;
207
207
  flex-grow: 1;
208
+
209
+ .multiple-selected {
210
+ display: flex;
211
+ align-items: baseline;
212
+ min-width: 0;
213
+ }
214
+
215
+ .multiple-selected-values {
216
+ overflow: hidden;
217
+ text-overflow: ellipsis;
218
+ white-space: nowrap;
219
+ min-width: 0;
220
+ }
221
+
222
+ .multiple-selected-more {
223
+ flex-shrink: 0;
224
+ margin-left: 6px;
225
+ opacity: 0.6;
226
+ white-space: nowrap;
227
+ }
208
228
  }
209
229
 
210
230
  .caret {
@@ -1,7 +1,6 @@
1
- <div class="nice-help" ng-mouseover="onHover()">
1
+ <div class="nice-help" ng-class="'nice-help-' + placement" style="anchor-name: --nice-help-{{ id }}">
2
2
  <nice-icon icon="icon-help-circle" class="nice-help-button"></nice-icon>
3
- <div class="nice-help-popup">
3
+ <div class="nice-help-popup" role="tooltip" style="position-anchor: --nice-help-{{ id }}">
4
4
  <span ng-bind-html="text">{{ text }}</span>
5
- <div data-popper-arrow class="nice-help-arrow"></div>
6
5
  </div>
7
- </div>
6
+ </div>
@@ -5,6 +5,8 @@
5
5
  * @name niceElements.directive:niceHelp
6
6
  * @description
7
7
  * # niceHelp
8
+ * Help icon with a hover popup. Positioning is pure CSS (anchor positioning,
9
+ * with an absolute-position fallback), so there are no JS listeners to clean up.
8
10
  */
9
11
  angular.module('niceElements')
10
12
  .directive('niceHelp', function () {
@@ -14,45 +16,16 @@ angular.module('niceElements')
14
16
  replace: true,
15
17
  scope: {
16
18
  text: '@',
17
- placement: '@', // Describes the preferred placement of the popper
19
+ placement: '@', // top (default) | bottom | left | right
18
20
  },
19
- controller: function ($scope, $element, $timeout) {
20
- if (!$scope.placement) { $scope.placement = "top"; }
21
+ controller: function ($scope) {
22
+ const placements = ['top', 'bottom', 'left', 'right'];
23
+ // Popper-style values like "top-start" map to their base side
24
+ const side = ($scope.placement || 'top').split('-')[0];
25
+ $scope.placement = placements.indexOf(side) >= 0 ? side : 'top';
21
26
 
22
- // Setup popper
23
- // https://popper.js.org/docs/v2/constructors/
24
- $scope.setupPopper = function () {
25
- const button = $element[0].getElementsByClassName('nice-help-button')[0];
26
- const tooltip = $element[0].getElementsByClassName('nice-help-popup')[0];
27
- $scope.popper = Popper.createPopper(button, tooltip, {
28
- strategy: 'fixed',
29
- placement: $scope.placement,
30
- scroll: true,
31
- resize: true,
32
- modifiers: [
33
- {
34
- name: 'offset',
35
- options: {
36
- offset: [0, 5],
37
- },
38
- },
39
- {
40
- name: 'arrow',
41
- options: {
42
- padding: 2,
43
- },
44
- }
45
- ],
46
- });
47
- };
48
-
49
- // $timeout(function () {
50
- // $scope.setupPopper();
51
- // });
52
-
53
- $scope.onHover = function () {
54
- $scope.setupPopper();
55
- }
27
+ // Unique anchor name so each popup attaches to its own icon
28
+ $scope.id = Math.random().toString(36).substring(2, 9);
56
29
  }
57
30
  };
58
31
  });
@@ -1,5 +1,5 @@
1
1
  .nice-help {
2
- $nice-help-popup-color: #3e3e3e;
2
+ $nice-help-offset: 6px;
3
3
  position: relative;
4
4
  display: inline-block;
5
5
 
@@ -15,7 +15,8 @@
15
15
  display: block;
16
16
  }
17
17
 
18
- &:hover {
18
+ &:hover,
19
+ &:focus-within {
19
20
  .nice-help-popup {
20
21
  display: block;
21
22
  }
@@ -24,8 +25,8 @@
24
25
  .nice-help-popup {
25
26
  display: none;
26
27
  z-index: 9999;
27
- background: $nice-help-popup-color;
28
- color: white;
28
+ background: var(--nice-help-popup-bg);
29
+ color: var(--nice-help-popup-color);
29
30
  max-width: 200px;
30
31
  width: max-content;
31
32
  border-radius: $nice-border-radius;
@@ -34,46 +35,77 @@
34
35
  padding: 7px 10px;
35
36
  font-weight: normal;
36
37
  text-align: center;
38
+ white-space: normal;
37
39
 
38
40
  a {
39
41
  color: $nice-base-color;
40
42
  text-transform: none;
41
43
  }
44
+ }
42
45
 
43
- .nice-help-arrow,
44
- .nice-help-arrow::before {
45
- position: absolute;
46
- width: 8px;
47
- height: 8px;
48
- background: inherit;
46
+ // ---------- Native anchor positioning ----------
47
+ // Fixed + anchored: escapes overflow:hidden parents (tables, modals)
48
+ // and flips automatically when there is no room, like Popper did.
49
+ @supports (position-area: top) {
50
+ .nice-help-popup {
51
+ position: fixed;
52
+ margin: 0;
53
+ position-try-fallbacks: flip-block, flip-inline;
54
+ }
55
+
56
+ &.nice-help-top .nice-help-popup {
57
+ position-area: top;
58
+ margin-bottom: $nice-help-offset;
59
+ }
60
+
61
+ &.nice-help-bottom .nice-help-popup {
62
+ position-area: bottom;
63
+ margin-top: $nice-help-offset;
64
+ }
65
+
66
+ &.nice-help-left .nice-help-popup {
67
+ position-area: left;
68
+ margin-right: $nice-help-offset;
49
69
  }
50
70
 
51
- .nice-help-arrow {
52
- visibility: hidden;
71
+ &.nice-help-right .nice-help-popup {
72
+ position-area: right;
73
+ margin-left: $nice-help-offset;
53
74
  }
75
+ }
54
76
 
55
- .nice-help-arrow::before {
56
- visibility: visible;
57
- content: "";
58
- transform: rotate(45deg);
77
+ // ---------- Fallback for browsers without anchor positioning ----------
78
+ @supports not (position-area: top) {
79
+ .nice-help-popup {
80
+ position: absolute;
59
81
  }
60
82
 
61
- &[data-popper-placement^="top"]>.nice-help-arrow {
62
- bottom: -2px;
63
- margin-left: -4px;
83
+ &.nice-help-top .nice-help-popup {
84
+ bottom: 100%;
85
+ left: 50%;
86
+ transform: translateX(-50%);
87
+ margin-bottom: $nice-help-offset;
64
88
  }
65
89
 
66
- &[data-popper-placement^="bottom"]>.nice-help-arrow {
67
- top: -2px;
68
- margin-left: -4px;
90
+ &.nice-help-bottom .nice-help-popup {
91
+ top: 100%;
92
+ left: 50%;
93
+ transform: translateX(-50%);
94
+ margin-top: $nice-help-offset;
69
95
  }
70
96
 
71
- &[data-popper-placement^="left"]>.nice-help-arrow {
72
- right: 1px;
97
+ &.nice-help-left .nice-help-popup {
98
+ right: 100%;
99
+ top: 50%;
100
+ transform: translateY(-50%);
101
+ margin-right: $nice-help-offset;
73
102
  }
74
103
 
75
- &[data-popper-placement^="right"]>.nice-help-arrow {
76
- left: -6px;
104
+ &.nice-help-right .nice-help-popup {
105
+ left: 100%;
106
+ top: 50%;
107
+ transform: translateY(-50%);
108
+ margin-left: $nice-help-offset;
77
109
  }
78
110
  }
79
- }
111
+ }
@@ -63,6 +63,9 @@
63
63
  />
64
64
 
65
65
  <div class="input-group-addon" ng-if="symbol">{{ symbol }}</div>
66
+ <button type="button" class="input-group-btn" ng-if="type=='password'" ng-click="togglePasswordType()">
67
+ <nice-icon icon="icon-eye"></nice-icon>
68
+ </button>
66
69
  <button type="button" class="input-group-btn" ng-if="!multilanguageDisabled && multilanguageField" ng-click="openMultilanguage()">
67
70
  <nice-icon icon="icon-translate"></nice-icon>
68
71
  <div class="nice-input-addon-bubble" ng-if="numberOfLanguages > 0">{{ numberOfLanguages }}</div>
@@ -109,8 +109,6 @@ angular.module('niceElements')
109
109
  } else if ($scope.type == "email") {
110
110
  $scope.inputMode = "email";
111
111
  $scope.regexexp = new RegExp("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$");
112
- } else {
113
- $scope.internalType = "text";
114
112
  }
115
113
 
116
114
  if (angular.isDefined($scope.valid)) {
@@ -143,8 +141,6 @@ angular.module('niceElements')
143
141
  } else if ($scope.type == "number" && value_old && value_old[value_old.length - 1] == ".") {
144
142
  // IGNORE
145
143
  } else {
146
- // Parent switched to plain value (null keeps Decimal, e.g. cleared input)
147
- if ($scope.model != null) $scope.decimalConstructor = null;
148
144
  $scope.internalModel = angular.copy($scope.model);
149
145
  }
150
146
 
@@ -233,6 +229,10 @@ angular.module('niceElements')
233
229
  };
234
230
  };
235
231
 
232
+ $scope.togglePasswordType = function () {
233
+ $scope.internalType = $scope.internalType == 'password' ? 'text' : 'password';
234
+ };
235
+
236
236
  $scope.keypress = function (event) {
237
237
  if ($scope.numbersOnly) {
238
238
  if ((event.charCode >= 48 && event.charCode <= 58) || event.charCode == 0) { // Allow only numbers
@@ -53,7 +53,7 @@
53
53
 
54
54
  .input-group-addon {
55
55
  line-height: 31px;
56
- padding-left: 4px;
56
+ padding-left: 4px;
57
57
  }
58
58
  }
59
59
 
@@ -1,4 +1,9 @@
1
- <div class="notification">
2
- <h3 ng-show="title" ng-bind-html="title"></h3>
3
- <div class="message" ng-bind-html="message"></div>
4
- </div>
1
+ <div class="notification" ng-class="{ 'has-icon': icon }">
2
+ <div class="notification-inner">
3
+ <nice-icon ng-if="icon" class="notification-icon" icon="{{ icon }}"></nice-icon>
4
+ <div class="notification-content">
5
+ <div class="notification-title" ng-show="title" ng-bind-html="title"></div>
6
+ <div class="notification-message" ng-bind-html="message"></div>
7
+ </div>
8
+ </div>
9
+ </div>