@afeefa/vue-app 0.0.214 → 0.0.216
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/.afeefa/package/release/version.txt +1 -1
- package/package.json +1 -1
- package/src/components/form/fields/FormFieldDate.vue +1 -1
- 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.216
|
package/package.json
CHANGED
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: {
|