@bildvitta/quasar-ui-asteroid 3.11.0-beta.16 → 3.11.0-beta.17
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
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<q-breadcrumbs v-if="useBreadcrumbs" class="text-caption" gutter="xs" separator-color="grey-8">
|
|
10
10
|
<q-breadcrumbs-el v-if="useHomeIcon" class="qas-page-header__breadcrumbs-el text-grey-8" icon="sym_r_home" :to="homeRoute" />
|
|
11
11
|
|
|
12
|
-
<q-breadcrumbs-el v-for="(item, index) in normalizedBreadcrumbs" :key="index" class="qas-page-header__breadcrumbs-el" :label="item.label" :to="item.route" />
|
|
12
|
+
<q-breadcrumbs-el v-for="(item, index) in normalizedBreadcrumbs" :key="index" class="ellipsis inline-block qas-page-header__breadcrumbs-el" :label="item.label" :to="item.route" />
|
|
13
13
|
</q-breadcrumbs>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
@@ -142,6 +142,7 @@ export default {
|
|
|
142
142
|
<style lang="scss">
|
|
143
143
|
.qas-page-header {
|
|
144
144
|
&__breadcrumbs-el {
|
|
145
|
+
max-width: 180px;
|
|
145
146
|
transition: color var(--qas-generic-transition);
|
|
146
147
|
|
|
147
148
|
&.q-breadcrumbs__el:not(.q-router-link--exact-active):hover {
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="q-mb-xl qas-welcome text-left">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<div class="items-center justify-between row">
|
|
4
|
+
<div>
|
|
5
|
+
<h3 class="text-grey-9 text-h3">
|
|
6
|
+
{{ welcomeMessage }}<span v-if="firstName">, {{ firstName }}</span>
|
|
7
|
+
</h3>
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
<div class="text-caption text-grey-8">{{ currentDay }}</div>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<slot name="actions">
|
|
13
|
+
<qas-actions-menu v-if="hasActionsMenuProps" v-bind="actionsMenuProps" />
|
|
14
|
+
</slot>
|
|
15
|
+
</div>
|
|
8
16
|
|
|
9
17
|
<div v-if="hasShortcuts">
|
|
10
|
-
<
|
|
18
|
+
<qas-label class="q-mt-lg" label="Atalhos" />
|
|
11
19
|
|
|
12
20
|
<div class="qas-welcome__container">
|
|
13
21
|
<div ref="scrollArea" class="row" :class="contentClasses">
|
|
@@ -34,6 +42,11 @@ export default {
|
|
|
34
42
|
},
|
|
35
43
|
|
|
36
44
|
props: {
|
|
45
|
+
actionsMenuProps: {
|
|
46
|
+
default: () => ({}),
|
|
47
|
+
type: Object
|
|
48
|
+
},
|
|
49
|
+
|
|
37
50
|
name: {
|
|
38
51
|
default: '',
|
|
39
52
|
type: String
|
|
@@ -68,6 +81,10 @@ export default {
|
|
|
68
81
|
return this.name.split(' ')?.[0]
|
|
69
82
|
},
|
|
70
83
|
|
|
84
|
+
hasActionsMenuProps () {
|
|
85
|
+
return !!Object.keys(this.actionsMenuProps).length
|
|
86
|
+
},
|
|
87
|
+
|
|
71
88
|
hasShortcuts () {
|
|
72
89
|
return !!this.shortcuts.length
|
|
73
90
|
},
|
|
@@ -4,6 +4,11 @@ meta:
|
|
|
4
4
|
desc: Componente de boas-vindas para ser usado na Home dos sistemas.
|
|
5
5
|
|
|
6
6
|
props:
|
|
7
|
+
actions-menu-props:
|
|
8
|
+
desc: Propriedades repassadas para o QasActionsMenu.
|
|
9
|
+
default: {}
|
|
10
|
+
type: Object
|
|
11
|
+
|
|
7
12
|
name:
|
|
8
13
|
desc: Nome do usuário a ser mostrado na tela.
|
|
9
14
|
type: String
|
|
@@ -12,3 +17,7 @@ props:
|
|
|
12
17
|
desc: Lista de cards de atalhos.
|
|
13
18
|
default: []
|
|
14
19
|
type: Array
|
|
20
|
+
|
|
21
|
+
slots:
|
|
22
|
+
actions:
|
|
23
|
+
desc: Slot para substituir o QasActionsMenu.
|