@enso-ui/ui 7.0.2 → 7.0.3

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/ui",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "description": "Laravel Enso UI",
5
5
  "main": "bulma/index.js",
6
6
  "scripts": {
@@ -49,7 +49,6 @@
49
49
  "@enso-ui/people": "^5.0",
50
50
  "@enso-ui/permissions": "^5.0",
51
51
  "@enso-ui/progress-bar": "^2.0",
52
- "@enso-ui/pull-to-refresh": "^0.1.0",
53
52
  "@enso-ui/roles": "^5.0",
54
53
  "@enso-ui/route-mapper": "^1.0",
55
54
  "@enso-ui/scroll-to-top": "^3.0",
@@ -3,7 +3,7 @@
3
3
  <core-default v-slot="{
4
4
  appState, bookmarks, sidebar, settings, rtl, header, footer,
5
5
  }">
6
- <navbar-refresh/>
6
+ <navbar/>
7
7
  <slide enter="down"
8
8
  leave="up">
9
9
  <bookmarks :class="[
@@ -47,7 +47,7 @@ import { Slide } from '@enso-ui/transitions';
47
47
  import ScrollToTop from '@enso-ui/scroll-to-top/bulma';
48
48
  import Bookmarks from '@enso-ui/bookmarks/src/bulma/components/Bookmarks.vue';
49
49
  import CoreDefault from '../../core/layouts/Default.vue';
50
- import NavbarRefresh from '../components/navbar/NavbarRefresh.vue';
50
+ import Navbar from '../components/navbar/Navbar.vue';
51
51
  import Sidebar from '../components/menu/Sidebar.vue';
52
52
  import Settings from '../components/settings/Settings.vue';
53
53
  import AppFooter from '../components/AppFooter.vue';
@@ -60,7 +60,7 @@ export default {
60
60
  components: {
61
61
  CoreDefault,
62
62
  Slide,
63
- NavbarRefresh,
63
+ Navbar,
64
64
  Sidebar,
65
65
  Settings,
66
66
  ScrollToTop,
@@ -1,47 +0,0 @@
1
- <template>
2
- <pull-to-refresh
3
- :config="config"
4
- :on-refresh="refresh">
5
- <slide enter="down"
6
- leave="up">
7
- <navbar/>
8
- </slide>
9
- </pull-to-refresh>
10
- </template>
11
-
12
- <script>
13
- import { Slide } from '@enso-ui/transitions';
14
- import PullToRefresh from '@enso-ui/pull-to-refresh';
15
- import Navbar from './Navbar.vue';
16
-
17
- export default {
18
- name: 'NavbarRefresh',
19
-
20
- components: {
21
- Slide, PullToRefresh, Navbar,
22
- },
23
-
24
- inject: ['i18n'],
25
-
26
- data: v => ({
27
- config: {
28
- startLabel: v.i18n('Pull down to refresh'),
29
- readyLabel: v.i18n('Release to refresh'),
30
- loadingLabel: v.i18n('Refreshing...'),
31
- errorLabel: v.i18n('Something wrong happened'),
32
- },
33
- }),
34
-
35
- methods: {
36
- refresh() {
37
- return new Promise(() => window.location.reload(true));
38
- },
39
- },
40
- };
41
- </script>
42
-
43
- <style>
44
- .pull-down-header {
45
- z-index: 1000;
46
- }
47
- </style>