@afeefa/vue-app 0.0.170 → 0.0.172
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.172
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div
|
3
|
-
:class="['a-table-row',
|
3
|
+
:class="['a-table-row', {border: hasBorder, small, tiny, selected, disabled}]"
|
4
4
|
@click="$emit('click')"
|
5
5
|
>
|
6
6
|
<slot />
|
@@ -12,7 +12,7 @@
|
|
12
12
|
import { Component, Vue } from '@a-vue'
|
13
13
|
|
14
14
|
@Component({
|
15
|
-
props: [
|
15
|
+
props: [{tiny: false, small: false}, 'selected', 'disabled']
|
16
16
|
})
|
17
17
|
export default class ATableRow extends Vue {
|
18
18
|
$hasOptions = ['border']
|
@@ -31,12 +31,6 @@ export default class ATableRow extends Vue {
|
|
31
31
|
get hasBorder () {
|
32
32
|
return this.$has.border && this.table.$has.border
|
33
33
|
}
|
34
|
-
|
35
|
-
get getFontSizeCssClass () {
|
36
|
-
if (this.small !== undefined) {
|
37
|
-
return 'small'
|
38
|
-
}
|
39
|
-
}
|
40
34
|
}
|
41
35
|
</script>
|
42
36
|
|
@@ -102,6 +96,21 @@ export default class ATableRow extends Vue {
|
|
102
96
|
}
|
103
97
|
}
|
104
98
|
|
99
|
+
&.tiny {
|
100
|
+
font-size: .8rem;
|
101
|
+
|
102
|
+
&.border {
|
103
|
+
> * {
|
104
|
+
padding-top: .1rem;
|
105
|
+
padding-bottom: .1rem;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.textblock--tiny {
|
110
|
+
font-size: .7rem;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
105
114
|
.textblock--small {
|
106
115
|
font-size: .9rem;
|
107
116
|
line-height: .9;
|
@@ -22,7 +22,7 @@
|
|
22
22
|
name="form"
|
23
23
|
:modelToEdit="modelToEdit"
|
24
24
|
:changed="changed"
|
25
|
-
:valid="valid"
|
25
|
+
:valid="validFromOutside && valid"
|
26
26
|
/>
|
27
27
|
|
28
28
|
<slot name="after-form-fields" />
|
@@ -41,7 +41,7 @@
|
|
41
41
|
|
42
42
|
<edit-form-buttons
|
43
43
|
:changed="changed"
|
44
|
-
:valid="valid"
|
44
|
+
:valid="validFromOutside && valid"
|
45
45
|
angular
|
46
46
|
:has="{reset: reset && !!modelToEdit.id}"
|
47
47
|
@save="$emit('save', modelToEdit, ignoreChangesOnClose, close)"
|
@@ -61,7 +61,7 @@ import { Component, Vue, Watch } from '@a-vue'
|
|
61
61
|
import { DialogEvent } from '@a-vue/events'
|
62
62
|
|
63
63
|
@Component({
|
64
|
-
props: ['model', 'createModelToEdit', 'show', {reset: true}]
|
64
|
+
props: ['model', 'createModelToEdit', 'show', {reset: true, valid: true}]
|
65
65
|
})
|
66
66
|
export default class EditModal extends Vue {
|
67
67
|
show_ = false
|
@@ -103,6 +103,10 @@ export default class EditModal extends Vue {
|
|
103
103
|
}
|
104
104
|
}
|
105
105
|
|
106
|
+
get validFromOutside () {
|
107
|
+
return this.valid
|
108
|
+
}
|
109
|
+
|
106
110
|
open () {
|
107
111
|
this.show_ = true
|
108
112
|
}
|