@bildvitta/quasar-ui-asteroid 3.18.0-beta.2 → 3.18.0-beta.3
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/package.json +1 -1
- package/src/components/actions-menu/QasActionsMenu.vue +1 -1
- package/src/components/alert/QasAlert.vue +1 -1
- package/src/components/app-menu/QasAppMenu.vue +19 -6
- package/src/components/btn-dropdown/QasBtnDropdown.vue +2 -2
- package/src/components/table-generator/QasTableGenerator.vue +3 -1
- package/src/components/table-generator/_components/PvTableGeneratorTd.vue +1 -1
- package/src/components/tree-generator/QasTreeGenerator.vue +2 -2
- package/src/components/uploader/QasUploader.vue +3 -4
- package/src/css/components/menu.scss +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="hasList" class="qas-actions-menu" data-cy="actions-menu">
|
|
3
3
|
<qas-btn-dropdown v-bind="btnDropdownProps">
|
|
4
|
-
<q-list data-cy="actions-menu-list"
|
|
4
|
+
<q-list data-cy="actions-menu-list">
|
|
5
5
|
<slot v-for="(item, key) in formattedList.dropdownList" :item="item" :name="key">
|
|
6
6
|
<q-item v-bind="getItemProps(item)" :key="key" active-class="primary" clickable data-cy="actions-menu-list-item" @click="setClickHandler(item)">
|
|
7
7
|
<q-item-section avatar>
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
</q-list>
|
|
84
84
|
|
|
85
85
|
<!-- usuário + chat ajuda -->
|
|
86
|
-
<div v-if="showAppUser" class="
|
|
86
|
+
<div v-if="showAppUser" class="column justify-end no-wrap qas-app-menu__user-chat" @mouseenter="onMouseEvent" @mouseleave="onMouseEvent">
|
|
87
87
|
<!-- Chat Ajuda -->
|
|
88
88
|
<q-list v-if="useChat" class="q-mt-md">
|
|
89
|
-
<q-item class="q-pb-none" clickable @click="toggleChat">
|
|
90
|
-
<q-item-section avatar>
|
|
91
|
-
<q-icon
|
|
89
|
+
<q-item class="q-pb-none qas-app-menu__chat-item" clickable @click="toggleChat">
|
|
90
|
+
<q-item-section avatar class="qas-app-menu__chat-item-section text-primary">
|
|
91
|
+
<q-icon name="sym_r_chat" />
|
|
92
92
|
</q-item-section>
|
|
93
93
|
|
|
94
|
-
<q-item-section>
|
|
94
|
+
<q-item-section class="qas-app-menu__chat-item-section text-primary">
|
|
95
95
|
<q-item-label>
|
|
96
|
-
<div class="ellipsis text-
|
|
96
|
+
<div class="ellipsis text-subtitle2">
|
|
97
97
|
Solicitar ajuda
|
|
98
98
|
</div>
|
|
99
99
|
</q-item-label>
|
|
@@ -478,6 +478,19 @@ function useChatMenu () {
|
|
|
478
478
|
padding-right: 0 !important;
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
+
// Faz com que essa área ocupe todo o tamanho restante até o QList, adicionando o evento de mouseover.
|
|
482
|
+
&__user-chat {
|
|
483
|
+
flex: 1 1 auto;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
&__chat-item:hover &__chat-item-section {
|
|
487
|
+
color: var(--qas-primary-contrast) !important;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
&__chat-item-section {
|
|
491
|
+
transition: color var(--qas-generic-transition);
|
|
492
|
+
}
|
|
493
|
+
|
|
481
494
|
.q-item:not(&__item--label-mini) {
|
|
482
495
|
padding-left: var(--qas-spacing-xl) !important;
|
|
483
496
|
padding-right: var(--qas-spacing-xl) !important;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div v-for="(buttonProps, key, index) in props.buttonsPropsList" :key="key">
|
|
5
5
|
<div class="flex no-wrap">
|
|
6
6
|
<qas-btn :disable="props.disable" v-bind="buttonProps" no-wrap variant="tertiary" @click="onClick">
|
|
7
|
-
<q-menu v-if="hasMenuOnLeftSide" v-model="isMenuOpened" anchor="bottom right" auto-close self="top right" @update:model-value="onUpdateMenuValue">
|
|
7
|
+
<q-menu v-if="hasMenuOnLeftSide" v-model="isMenuOpened" anchor="bottom right" auto-close class="qas-menu" self="top right" @update:model-value="onUpdateMenuValue">
|
|
8
8
|
<div :class="classes.menuContent">
|
|
9
9
|
<slot />
|
|
10
10
|
</div>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
<div v-if="props.useSplit">
|
|
22
22
|
<qas-btn v-bind="splittedButtonProps">
|
|
23
|
-
<q-menu v-if="hasDefaultSlot" anchor="bottom right" auto-close self="top right">
|
|
23
|
+
<q-menu v-if="hasDefaultSlot" anchor="bottom right" auto-close class="qas-menu" self="top right">
|
|
24
24
|
<div :class="classes.menuContent">
|
|
25
25
|
<slot />
|
|
26
26
|
</div>
|
|
@@ -193,6 +193,8 @@ export default {
|
|
|
193
193
|
},
|
|
194
194
|
|
|
195
195
|
columnsByFields () {
|
|
196
|
+
const hasMultipleResults = this.rowsPerPage > 1
|
|
197
|
+
|
|
196
198
|
if (!this.hasFields) {
|
|
197
199
|
return this.normalizedColumns.filter(column => column instanceof Object)
|
|
198
200
|
}
|
|
@@ -208,7 +210,7 @@ export default {
|
|
|
208
210
|
label,
|
|
209
211
|
name,
|
|
210
212
|
headerClasses: 'text-grey-10',
|
|
211
|
-
sortable: sortable ??
|
|
213
|
+
sortable: sortable ?? hasMultipleResults,
|
|
212
214
|
sort,
|
|
213
215
|
rawSort
|
|
214
216
|
})
|
|
@@ -71,7 +71,7 @@ const component = computed(() => {
|
|
|
71
71
|
maxWidth: 260,
|
|
72
72
|
|
|
73
73
|
// caso personalize o componente passando "list", não pode enviar "text" senão vai ter erro de tipo
|
|
74
|
-
text: props.componentData.props
|
|
74
|
+
text: 'list' in (props.componentData.props || {}) ? '' : defaultValue
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
<span v-if="hasMenuButton(node)" class="q-ml-sm">
|
|
11
11
|
<!-- TODO: rever para o uso QasActionsMenu -->
|
|
12
12
|
<qas-btn color="grey-10" icon="sym_r_more_vert" variant="tertiary" @click.stop.prevent>
|
|
13
|
-
<q-menu auto-close>
|
|
14
|
-
<q-list
|
|
13
|
+
<q-menu auto-close class="qas-menu">
|
|
14
|
+
<q-list>
|
|
15
15
|
<q-item v-if="useAddButton" v-ripple class="qas-tree-generator__item" clickable @click="handleTreeFormDialog(node, true, tree)">
|
|
16
16
|
<q-item-section avatar>
|
|
17
17
|
<q-icon name="sym_r_add_circle_outline" />
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
<!-- ------------------------------------ tags hidden -------------------------------------- -->
|
|
19
19
|
<input ref="hiddenInput" :accept="attributes.accept" class="qas-uploader__input" :multiple="isMultiple" type="file">
|
|
20
|
-
<qas-btn ref="buttonCleanFiles" class="hidden" @click="scope.removeUploadedFiles" />
|
|
21
20
|
</slot>
|
|
22
21
|
</template>
|
|
23
22
|
|
|
@@ -337,13 +336,13 @@ export default {
|
|
|
337
336
|
},
|
|
338
337
|
|
|
339
338
|
dispatchUpload () {
|
|
340
|
-
this
|
|
341
|
-
this.hiddenInputElement
|
|
339
|
+
this.uploader?.removeUploadedFiles?.()
|
|
340
|
+
this.hiddenInputElement?.click?.()
|
|
342
341
|
},
|
|
343
342
|
|
|
344
343
|
async factory ([file]) {
|
|
345
344
|
if (!this.isMultiple && !this.hasHeaderSlot) {
|
|
346
|
-
this
|
|
345
|
+
this.uploader.removeUploadedFiles()
|
|
347
346
|
}
|
|
348
347
|
|
|
349
348
|
const name = `${uid()}.${file.name.split('.').pop()}`
|