@afeefa/vue-app 0.0.86 → 0.0.88
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/AAlert.vue +1 -1
- package/src/components/ABadge.vue +1 -1
- package/src/components/AContextMenuItem.vue +1 -1
- package/src/components/ADatePicker.vue +1 -1
- package/src/components/ADialog.vue +1 -1
- package/src/components/AModal.vue +15 -2
- package/src/components/APagination.vue +1 -1
- package/src/components/ARadioGroup.vue +1 -1
- package/src/components/ARichTextArea.vue +4 -6
- package/src/components/ASearchSelect.vue +15 -9
- package/src/components/ATable.vue +1 -1
- package/src/components/ATextArea.vue +1 -1
- package/src/components/ATextField.vue +1 -1
- package/src/components/form/EditModal.vue +1 -2
- package/src/components/list/ListFilterRow.vue +1 -1
- package/src-admin/components/SidebarMenu.vue +1 -1
- package/src-admin/components/controls/SearchSelectFormField.vue +4 -4
- package/src-admin/components/detail/DetailProperty.vue +2 -3
- package/src-admin/components/list/ListColumnHeader.vue +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.88
|
package/package.json
CHANGED
|
@@ -23,6 +23,19 @@
|
|
|
23
23
|
|
|
24
24
|
<v-card v-if="modal">
|
|
25
25
|
<v-card-title v-if="title">
|
|
26
|
+
<v-avatar
|
|
27
|
+
v-if="icon"
|
|
28
|
+
color="#FFFFFF"
|
|
29
|
+
size="2rem"
|
|
30
|
+
class="ml-n1 mr-2"
|
|
31
|
+
>
|
|
32
|
+
<v-icon
|
|
33
|
+
:color="icon.color"
|
|
34
|
+
size="1.2rem"
|
|
35
|
+
v-text="icon.icon"
|
|
36
|
+
/>
|
|
37
|
+
</v-avatar>
|
|
38
|
+
|
|
26
39
|
{{ title }}
|
|
27
40
|
</v-card-title>
|
|
28
41
|
|
|
@@ -43,7 +56,7 @@ import { ComponentWidthMixin } from './mixins/ComponentWidthMixin'
|
|
|
43
56
|
import { CancelOnEscMixin } from '@a-vue/services/escape/CancelOnEscMixin'
|
|
44
57
|
|
|
45
58
|
@Component({
|
|
46
|
-
props: ['show', 'title', 'beforeClose', 'triggerClass', 'anchorPosition']
|
|
59
|
+
props: ['show', 'icon', 'title', 'beforeClose', 'triggerClass', 'anchorPosition']
|
|
47
60
|
})
|
|
48
61
|
export default class ADialog extends Mixins(UsesPositionServiceMixin, ComponentWidthMixin, CancelOnEscMixin) {
|
|
49
62
|
modalId = randomCssClass(10)
|
|
@@ -189,7 +202,7 @@ export default class ADialog extends Mixins(UsesPositionServiceMixin, ComponentW
|
|
|
189
202
|
color: inherit !important;
|
|
190
203
|
}
|
|
191
204
|
|
|
192
|
-
|
|
205
|
+
:deep(.v-dialog) {
|
|
193
206
|
position: absolute;
|
|
194
207
|
top: 0;
|
|
195
208
|
left: 0;
|
|
@@ -200,10 +200,8 @@ export default class ARichTextArea extends Vue {
|
|
|
200
200
|
|
|
201
201
|
<style lang="scss" scoped>
|
|
202
202
|
.a-rich-text-editor {
|
|
203
|
-
|
|
204
|
-
&-focused {
|
|
203
|
+
:deep(.ProseMirror-focused) {
|
|
205
204
|
outline: none;
|
|
206
|
-
}
|
|
207
205
|
}
|
|
208
206
|
}
|
|
209
207
|
|
|
@@ -226,14 +224,14 @@ export default class ARichTextArea extends Vue {
|
|
|
226
224
|
box-shadow: none;
|
|
227
225
|
border-radius: 0;
|
|
228
226
|
|
|
229
|
-
|
|
227
|
+
:deep(.v-icon) {
|
|
230
228
|
font-size: 20px;
|
|
231
229
|
width: 20px;
|
|
232
230
|
height: 20px;
|
|
233
231
|
}
|
|
234
232
|
|
|
235
233
|
&.strike {
|
|
236
|
-
|
|
234
|
+
:deep(.v-icon) {
|
|
237
235
|
width: 15px;
|
|
238
236
|
}
|
|
239
237
|
}
|
|
@@ -251,7 +249,7 @@ export default class ARichTextArea extends Vue {
|
|
|
251
249
|
}
|
|
252
250
|
}
|
|
253
251
|
|
|
254
|
-
|
|
252
|
+
:deep(.ProseMirror) {
|
|
255
253
|
min-height: 200px;
|
|
256
254
|
|
|
257
255
|
> :last-child {
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
style="width: max-content;"
|
|
6
6
|
@click="open"
|
|
7
7
|
>
|
|
8
|
-
<slot
|
|
8
|
+
<slot
|
|
9
|
+
v-if="!autoOpen"
|
|
10
|
+
name="activator"
|
|
11
|
+
>
|
|
9
12
|
<a-icon class="contextButton">
|
|
10
13
|
$dotsHorizontalIcon
|
|
11
14
|
</a-icon>
|
|
@@ -99,9 +102,10 @@ import { ComponentWidthMixin } from './mixins/ComponentWidthMixin'
|
|
|
99
102
|
'listAction',
|
|
100
103
|
'q',
|
|
101
104
|
'width',
|
|
102
|
-
'closeOnSelect',
|
|
103
105
|
'loadOnlyIfKeyword',
|
|
104
106
|
{
|
|
107
|
+
autoOpen: false,
|
|
108
|
+
closeOnSelect: true,
|
|
105
109
|
selectedItems: []
|
|
106
110
|
}
|
|
107
111
|
],
|
|
@@ -120,6 +124,12 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
|
120
124
|
filters = []
|
|
121
125
|
count = 0
|
|
122
126
|
|
|
127
|
+
mounted () {
|
|
128
|
+
if (this.autoOpen) {
|
|
129
|
+
this.open()
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
123
133
|
destroyed () {
|
|
124
134
|
this.close()
|
|
125
135
|
}
|
|
@@ -167,10 +177,6 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
|
167
177
|
return this.loadOnlyIfKeyword === undefined || this.loadOnlyIfKeyword
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
get _closeOnSelect () {
|
|
171
|
-
return this.closeOnSelect === undefined || this.closeOnSelect
|
|
172
|
-
}
|
|
173
|
-
|
|
174
180
|
positionize () {
|
|
175
181
|
const position = new PositionConfig()
|
|
176
182
|
.setAnchor(this, '.activator')
|
|
@@ -249,7 +255,7 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
|
249
255
|
|
|
250
256
|
selectHandler (model) {
|
|
251
257
|
return event => {
|
|
252
|
-
if (this.
|
|
258
|
+
if (this.closeOnSelect) {
|
|
253
259
|
this.close()
|
|
254
260
|
}
|
|
255
261
|
this.$emit('select', model, {
|
|
@@ -319,7 +325,7 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
|
319
325
|
display: block;
|
|
320
326
|
padding: 0 .5rem;
|
|
321
327
|
|
|
322
|
-
|
|
328
|
+
:deep(.a-row) {
|
|
323
329
|
overflow: unset;
|
|
324
330
|
}
|
|
325
331
|
}
|
|
@@ -334,7 +340,7 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
|
334
340
|
overflow-x: hidden;
|
|
335
341
|
overscroll-behavior: contain;
|
|
336
342
|
|
|
337
|
-
|
|
343
|
+
:deep(.a-table-row) {
|
|
338
344
|
&:not(.selected) {
|
|
339
345
|
cursor: pointer;
|
|
340
346
|
}
|
|
@@ -100,7 +100,7 @@ export default class ATextField extends Mixins(ComponentWidthMixin) {
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
<style lang="scss" scoped>
|
|
103
|
-
.v-input:not(.v-input--is-focused)
|
|
103
|
+
.v-input:not(.v-input--is-focused) :deep(.v-counter) {
|
|
104
104
|
display: none;
|
|
105
105
|
}
|
|
106
106
|
</style>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<a-modal
|
|
3
|
-
:title="title"
|
|
4
3
|
:beforeClose="beforeClose"
|
|
5
4
|
:show.sync="show_"
|
|
6
5
|
v-bind="$attrs"
|
|
@@ -61,7 +60,7 @@ import { Component, Vue, Watch } from '@a-vue'
|
|
|
61
60
|
import { DialogEvent } from '@a-vue/events'
|
|
62
61
|
|
|
63
62
|
@Component({
|
|
64
|
-
props: ['model', 'createModelToEdit', '
|
|
63
|
+
props: ['model', 'createModelToEdit', 'show']
|
|
65
64
|
})
|
|
66
65
|
export default class EditModal extends Vue {
|
|
67
66
|
show_ = false
|
|
@@ -206,19 +206,19 @@ export default class SearchSelectFormField extends Vue {
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
<style scoped lang="scss">
|
|
209
|
-
.selectedIcon
|
|
209
|
+
.selectedIcon:deep() {
|
|
210
210
|
padding-right: .3rem !important;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
.selectableIcon
|
|
213
|
+
.selectableIcon:deep() {
|
|
214
214
|
padding-right: 2rem !important;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
.selectedContent
|
|
217
|
+
.selectedContent:deep() {
|
|
218
218
|
width: 100%;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
.selectableContent
|
|
221
|
+
.selectableContent:deep() {
|
|
222
222
|
width: 100%;
|
|
223
223
|
}
|
|
224
224
|
</style>
|