@afeefa/vue-app 0.0.258 → 0.0.261
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/EditModal.vue +2 -1
- package/src/components/list/filters/ListFilterSearchSelect.vue +2 -1
- package/src-admin/components/app/AppBarTitle.vue +2 -2
- package/src-admin/components/controls/SearchSelectNavigator.vue +0 -22
- package/src-admin/components/form/EditFormButtons.vue +10 -5
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.261
|
package/package.json
CHANGED
@@ -53,6 +53,7 @@
|
|
53
53
|
:changed="changed || forceChanged"
|
54
54
|
:forceActive="forceActive"
|
55
55
|
:valid="validFromOutside && valid"
|
56
|
+
:saveTitle="saveTitle"
|
56
57
|
angular
|
57
58
|
:has="{reset: reset && !!modelToEdit.id}"
|
58
59
|
@save="$emit('save', modelToEdit, ignoreChangesOnClose, close)"
|
@@ -72,7 +73,7 @@ import { Component, Vue, Watch } from '@a-vue'
|
|
72
73
|
import { DialogEvent } from '@a-vue/events'
|
73
74
|
|
74
75
|
@Component({
|
75
|
-
props: ['model', 'createModelToEdit', 'show', {deleteButton: false, reset: true, valid: true, forceChanged: false, forceActive: false}]
|
76
|
+
props: ['model', 'createModelToEdit', 'show', {deleteButton: false, reset: true, valid: true, forceChanged: false, forceActive: false, saveTitle: 'Speichern'}]
|
76
77
|
})
|
77
78
|
export default class EditModal extends Vue {
|
78
79
|
show_ = false
|
@@ -85,7 +85,7 @@ import { ListAction, GetAction } from '@a-vue/api-resources/ApiActions'
|
|
85
85
|
import { Category } from '@/models'
|
86
86
|
|
87
87
|
@Component({
|
88
|
-
props: ['itemTitle', 'itemValue', {
|
88
|
+
props: ['itemTitle', 'itemValue', 'optionRequestFilters', {
|
89
89
|
selectedKey: 'id',
|
90
90
|
getTitle: {type: Function, default: m => m.getTitle()},
|
91
91
|
getSubtitle: {type: Function, default: m => m.getSubtitle()},
|
@@ -145,6 +145,7 @@ export default class ListFilterSearchSelect extends Mixins(ListFilterMixin) {
|
|
145
145
|
createListAction () {
|
146
146
|
const request = this.filter
|
147
147
|
.createOptionsRequest()
|
148
|
+
.addFilters(this.optionRequestFilters || {})
|
148
149
|
return ListAction.fromRequest(request)
|
149
150
|
}
|
150
151
|
|
@@ -60,13 +60,13 @@ export default class appBarTitle extends Vue {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
getLastNamedRoute () {
|
63
|
-
const
|
63
|
+
const currentRoutePath = this.$route.path
|
64
64
|
const historyStack = routeConfigPlugin.getRouteHistory()
|
65
65
|
|
66
66
|
// Durchlaufe die Historie rückwärts, um die letzte benannte Route zu finden, die sich vom aktuellen Namen unterscheidet
|
67
67
|
for (let i = historyStack.length - 2; i >= 0; i--) {
|
68
68
|
const route = historyStack[i]
|
69
|
-
if (route.
|
69
|
+
if (route.path && route.path !== currentRoutePath) {
|
70
70
|
return {
|
71
71
|
route,
|
72
72
|
index: i
|
@@ -15,7 +15,6 @@
|
|
15
15
|
ref="input"
|
16
16
|
readonly
|
17
17
|
:label="label"
|
18
|
-
:rules="validationRules"
|
19
18
|
placeholder="Mausklick oder Space/↓-Taste zum Auswählen"
|
20
19
|
:clearable="false"
|
21
20
|
appendIcon="$dropdown"
|
@@ -82,8 +81,6 @@ import { ListAction } from '@a-vue/api-resources/ApiActions'
|
|
82
81
|
'modelType',
|
83
82
|
'label',
|
84
83
|
'fields',
|
85
|
-
'customValidator',
|
86
|
-
'additionalRules',
|
87
84
|
{
|
88
85
|
getTitle: {type: Function, default: m => m.getTitle()},
|
89
86
|
getSubtitle: {type: Function, default: m => m.getSubtitle()}
|
@@ -92,12 +89,6 @@ import { ListAction } from '@a-vue/api-resources/ApiActions'
|
|
92
89
|
export default class SearchSelectNavigator extends Vue {
|
93
90
|
$hasOptions = ['icon']
|
94
91
|
|
95
|
-
mounted () {
|
96
|
-
if (this.validator) {
|
97
|
-
this.$refs.input.validate()
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
92
|
calculateSelectorSize () {
|
102
93
|
const input = this.$refs.input.$el
|
103
94
|
const inputWidth = input.offsetWidth
|
@@ -121,19 +112,6 @@ export default class SearchSelectNavigator extends Vue {
|
|
121
112
|
focusInput () {
|
122
113
|
this.$refs.input.setFocus(true)
|
123
114
|
}
|
124
|
-
|
125
|
-
get validator () {
|
126
|
-
const validator = this.customValidator
|
127
|
-
if (this.additionalRules) {
|
128
|
-
validator.setAdditionalRules(this.additionalRules)
|
129
|
-
}
|
130
|
-
return validator
|
131
|
-
}
|
132
|
-
|
133
|
-
get validationRules () {
|
134
|
-
const label = this.label
|
135
|
-
return (this.validator && this.validator.getRules(label)) || []
|
136
|
-
}
|
137
115
|
}
|
138
116
|
</script>
|
139
117
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
small
|
12
12
|
:disabled="disabled"
|
13
13
|
color="green white--text"
|
14
|
-
title="
|
14
|
+
:title="saveTitle"
|
15
15
|
@click="$emit('save')"
|
16
16
|
>
|
17
17
|
<v-icon
|
@@ -22,7 +22,7 @@
|
|
22
22
|
</v-icon>
|
23
23
|
|
24
24
|
<template v-if="angular">
|
25
|
-
|
25
|
+
{{ saveTitle }}
|
26
26
|
</template>
|
27
27
|
</v-btn>
|
28
28
|
</div>
|
@@ -30,10 +30,10 @@
|
|
30
30
|
|
31
31
|
<span v-if="disabled">
|
32
32
|
<template v-if="!valid">
|
33
|
-
Daten berichtigen,<br>um zu
|
33
|
+
Daten berichtigen,<br>um zu {{ saveTitle.toLowerCase() }}
|
34
34
|
</template>
|
35
35
|
<template v-else>
|
36
|
-
Daten ändern,<br>um zu
|
36
|
+
Daten ändern,<br>um zu {{ saveTitle.toLowerCase() }}
|
37
37
|
</template>
|
38
38
|
</span>
|
39
39
|
</v-tooltip>
|
@@ -64,7 +64,12 @@ import { mdiRotateLeft} from '@mdi/js'
|
|
64
64
|
props: [
|
65
65
|
'changed',
|
66
66
|
'valid',
|
67
|
-
{
|
67
|
+
{
|
68
|
+
angular: false,
|
69
|
+
small: false,
|
70
|
+
forceActive: false,
|
71
|
+
saveTitle: 'Speichern'
|
72
|
+
}
|
68
73
|
]
|
69
74
|
})
|
70
75
|
export default class EditFormButtons extends Vue {
|