@afeefa/vue-app 0.0.215 → 0.0.217
Sign up to get free protection for your applications and to get access to all the features.
- package/.afeefa/package/release/version.txt +1 -1
- package/package.json +1 -1
- package/src/components/AIcon.vue +7 -2
- package/src/components/index.js +2 -0
- package/src/components/list/filters/ListFilterDate.vue +22 -0
- package/src-admin/components/sidebar/InformationBarItem.vue +7 -2
- package/src-admin/config/vuetify.js +3 -1
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.217
|
package/package.json
CHANGED
package/src/components/AIcon.vue
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<v-icon
|
3
3
|
:class="{button}"
|
4
|
+
:color="icon && icon.color"
|
4
5
|
v-bind="$attrs"
|
5
6
|
v-on="$listeners"
|
6
7
|
>
|
7
|
-
<
|
8
|
+
<template v-if="icon">
|
9
|
+
{{ icon.icon }}
|
10
|
+
</template>
|
11
|
+
|
12
|
+
<slot v-else />
|
8
13
|
</v-icon>
|
9
14
|
</template>
|
10
15
|
|
@@ -13,7 +18,7 @@
|
|
13
18
|
import { Component, Vue } from '@a-vue'
|
14
19
|
|
15
20
|
@Component({
|
16
|
-
props: [{button: false}]
|
21
|
+
props: ['icon', {button: false}]
|
17
22
|
})
|
18
23
|
export default class AIcon extends Vue {
|
19
24
|
}
|
package/src/components/index.js
CHANGED
@@ -15,6 +15,7 @@ import FormFieldText from './form/fields/FormFieldText'
|
|
15
15
|
import FormFieldTextArea from './form/fields/FormFieldTextArea'
|
16
16
|
import FormFieldTime from './form/fields/FormFieldTime'
|
17
17
|
import NestedEditForm from './form/NestedEditForm'
|
18
|
+
import ListFilterDate from './list/filters/ListFilterDate'
|
18
19
|
import ListFilterPage from './list/filters/ListFilterPage'
|
19
20
|
import ListFilterSearch from './list/filters/ListFilterSearch'
|
20
21
|
import ListFilterSearchSelect from './list/filters/ListFilterSearchSelect'
|
@@ -39,3 +40,4 @@ Vue.component('ListFilterPage', ListFilterPage)
|
|
39
40
|
Vue.component('ListFilterSearch', ListFilterSearch)
|
40
41
|
Vue.component('ListFilterSelect', ListFilterSelect)
|
41
42
|
Vue.component('ListFilterSearchSelect', ListFilterSearchSelect)
|
43
|
+
Vue.component('ListFilterDate', ListFilterDate)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<template>
|
2
|
+
<a-date-picker
|
3
|
+
ref="datePicker"
|
4
|
+
v-model="filter.value"
|
5
|
+
:defaultValue="filter.defaultValue"
|
6
|
+
:clearable="filter.hasDefaultValue() && !filter.hasDefaultValueSet()"
|
7
|
+
:label="label || name"
|
8
|
+
hide-details
|
9
|
+
v-bind="$attrs"
|
10
|
+
v-on="$listeners"
|
11
|
+
/>
|
12
|
+
</template>
|
13
|
+
|
14
|
+
|
15
|
+
<script>
|
16
|
+
import { Component, Mixins } from '@a-vue'
|
17
|
+
import { ListFilterMixin } from '../ListFilterMixin'
|
18
|
+
|
19
|
+
@Component
|
20
|
+
export default class ListFilterDate extends Mixins(ListFilterMixin) {
|
21
|
+
}
|
22
|
+
</script>
|
@@ -76,7 +76,8 @@ import { SidebarEvent } from '@a-admin/events'
|
|
76
76
|
top: true,
|
77
77
|
bottom: false,
|
78
78
|
width: '100%',
|
79
|
-
open: false
|
79
|
+
open: false,
|
80
|
+
prepend: false
|
80
81
|
}
|
81
82
|
]
|
82
83
|
})
|
@@ -92,7 +93,11 @@ export default class InformationBarItem extends Vue {
|
|
92
93
|
|
93
94
|
mounted () {
|
94
95
|
const container = this.getSidebarContainer()
|
95
|
-
|
96
|
+
if (this.prepend) {
|
97
|
+
container.prepend(this.getContent())
|
98
|
+
} else {
|
99
|
+
container.append(this.getContent())
|
100
|
+
}
|
96
101
|
}
|
97
102
|
|
98
103
|
destroyed () {
|
@@ -14,6 +14,7 @@ import {
|
|
14
14
|
mdiDelete,
|
15
15
|
mdiDotsHorizontal,
|
16
16
|
mdiDotsVertical,
|
17
|
+
mdiDownload,
|
17
18
|
mdiFilter,
|
18
19
|
mdiInformationOutline,
|
19
20
|
mdiLock,
|
@@ -70,7 +71,8 @@ export default new Vuetify({
|
|
70
71
|
paletteIcon: mdiPalette,
|
71
72
|
addIcon: mdiPlusCircle,
|
72
73
|
filterIcon: mdiFilter,
|
73
|
-
infoIcon: mdiInformationOutline
|
74
|
+
infoIcon: mdiInformationOutline,
|
75
|
+
downloadIcon: mdiDownload
|
74
76
|
}
|
75
77
|
},
|
76
78
|
breakpoint: {
|