@afeefa/vue-app 0.0.84 → 0.0.85
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.85
|
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BulkAction } from './ApiAction'
|
1
|
+
import { BulkAction, SequentialBulkAction } from './ApiAction'
|
2
2
|
import { DeleteAction } from './DeleteAction'
|
3
3
|
import { GetAction } from './GetAction'
|
4
4
|
import { ListAction } from './ListAction'
|
@@ -6,6 +6,7 @@ import { SaveAction } from './SaveAction'
|
|
6
6
|
|
7
7
|
export {
|
8
8
|
BulkAction,
|
9
|
+
SequentialBulkAction,
|
9
10
|
ListAction,
|
10
11
|
GetAction,
|
11
12
|
SaveAction,
|
@@ -2,7 +2,7 @@ import { Component, Vue } from '@a-vue'
|
|
2
2
|
import { ListAction } from '@a-vue/api-resources/ApiActions'
|
3
3
|
|
4
4
|
@Component({
|
5
|
-
props: ['name', 'label', 'additionalRules']
|
5
|
+
props: ['name', 'label', 'additionalRules', 'optionRequestParams']
|
6
6
|
})
|
7
7
|
export class FormFieldMixin extends Vue {
|
8
8
|
get model () {
|
@@ -55,6 +55,7 @@ export class FormFieldMixin extends Vue {
|
|
55
55
|
if (field.hasOptionsRequest()) {
|
56
56
|
const request = field
|
57
57
|
.getOptionsRequest()
|
58
|
+
.addParams(this.optionRequestParams || {})
|
58
59
|
.addFilters(filters)
|
59
60
|
|
60
61
|
const {models} = await new ListAction()
|
@@ -129,6 +129,7 @@ export default class ListView extends Mixins(ListViewMixin) {
|
|
129
129
|
} // else { a: true, b: true, c: true }
|
130
130
|
|
131
131
|
classes = {
|
132
|
+
clickable: this.hasClickListener,
|
132
133
|
selectable: this.hasFlyingContext,
|
133
134
|
...classes
|
134
135
|
}
|
@@ -144,6 +145,10 @@ export default class ListView extends Mixins(ListViewMixin) {
|
|
144
145
|
return !!this.$listeners.flyingContext
|
145
146
|
}
|
146
147
|
|
148
|
+
get hasClickListener () {
|
149
|
+
return !!this.getRowListeners().click
|
150
|
+
}
|
151
|
+
|
147
152
|
emitFlyingContext (model) {
|
148
153
|
if (window.getSelection().toString()) { // do not open if text selected
|
149
154
|
// console.log(window.getSelection().toString())
|
@@ -171,4 +176,8 @@ export default class ListView extends Mixins(ListViewMixin) {
|
|
171
176
|
.a-table-row > :last-child {
|
172
177
|
width: 100%;
|
173
178
|
}
|
179
|
+
|
180
|
+
.a-table-row.clickable {
|
181
|
+
cursor: pointer;
|
182
|
+
}
|
174
183
|
</style>
|