@enso-ui/notifications 2.0.8 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/notifications",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "Basic notifications package",
|
|
5
5
|
"main": "src/bulma/pages/Index.vue",
|
|
6
6
|
"scripts": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@enso-ui/dropdown": "^3.0",
|
|
26
26
|
"@enso-ui/toastr": "^3.0",
|
|
27
27
|
"@enso-ui/ui": "^5.0",
|
|
28
|
+
"@enso-ui/transitions": "^2.0",
|
|
28
29
|
"@fortawesome/fontawesome-svg-core": "^1.2.2",
|
|
29
30
|
"@fortawesome/free-solid-svg-icons": "^5.2.0",
|
|
30
31
|
"@fortawesome/vue-fontawesome": "3.0.0-5",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<div class="level is-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
<
|
|
2
|
+
<div class="level is-mobile">
|
|
3
|
+
<div class="level-left">
|
|
4
|
+
<div class="level-item is-marginless">
|
|
5
|
+
{{ i18n('Notifications') }}
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="level-right">
|
|
9
|
+
<div class="level-item toastr-position">
|
|
10
|
+
<core-toastr-position>
|
|
11
|
+
<template #default="{ positions, toastrPosition, update }">
|
|
12
12
|
<dropdown>
|
|
13
13
|
<template #label>
|
|
14
14
|
<figure class="image is-16x16 ml-1">
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
</dropdown-item>
|
|
27
27
|
</template>
|
|
28
28
|
</dropdown>
|
|
29
|
-
</
|
|
30
|
-
</
|
|
29
|
+
</template>
|
|
30
|
+
</core-toastr-position>
|
|
31
31
|
</div>
|
|
32
|
-
</
|
|
33
|
-
</
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script>
|
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
</a>
|
|
14
14
|
</div>
|
|
15
15
|
<div class="level-item">
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
<fade>
|
|
17
|
+
<a :class="['button', {'is-loading': loading}]"
|
|
18
|
+
@click="fetch">
|
|
19
|
+
<span>{{ i18n('Reload') }}</span>
|
|
20
|
+
<span class="icon is-small">
|
|
21
|
+
<fa icon="sync"/>
|
|
22
|
+
</span>
|
|
23
|
+
</a>
|
|
24
|
+
</fade>
|
|
23
25
|
</div>
|
|
24
26
|
<div class="level-item is-marginless"
|
|
25
27
|
v-if="notifications.length">
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
</template>
|
|
75
77
|
|
|
76
78
|
<script>
|
|
79
|
+
import { Fade } from '@enso-ui/transitions';
|
|
77
80
|
import debounce from 'lodash/debounce';
|
|
78
81
|
import { mapState } from 'vuex';
|
|
79
82
|
import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
|
|
@@ -92,7 +95,12 @@ export default {
|
|
|
92
95
|
|
|
93
96
|
inject: ['errorHandler', 'i18n', 'route', 'routerErrorHandler'],
|
|
94
97
|
|
|
95
|
-
|
|
98
|
+
emits: [
|
|
99
|
+
'read-notification', 'read-all-notifications',
|
|
100
|
+
'destroy-notification', 'destroy-all-notification',
|
|
101
|
+
],
|
|
102
|
+
|
|
103
|
+
components: { Fa, Fade },
|
|
96
104
|
|
|
97
105
|
data: () => ({
|
|
98
106
|
paginate: 200,
|