@bildvitta/quasar-ui-asteroid 3.20.0-beta.11 → 3.20.0-beta.13
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/asteroid.js +8 -4
- package/src/components/actions/QasActions.vue +1 -1
- package/src/components/app-user/QasAppUser.vue +2 -1
- package/src/components/dialog-router/QasDialogRouter.vue +1 -1
- package/src/components/form-view/QasFormView.vue +2 -1
- package/src/components/infinite-scroll/QasInfiniteScroll.vue +1 -1
- package/src/components/layout/QasLayout.vue +16 -1
- package/src/components/layout/private/PvLayoutOverlayDrawer.vue +4 -1
- package/src/components/signature-uploader/QasSignatureUploader.vue +1 -1
- package/src/components/single-view/QasSingleView.vue +2 -2
- package/src/components/sortable/QasSortable.vue +1 -1
- package/src/components/uploader/QasUploader.vue +1 -1
- package/src/composables/private/use-view.js +1 -1
- package/src/css/utils/container.scss +4 -3
- package/src/helpers/copy-to-clipboard.js +2 -1
- package/src/helpers/promise-handler.js +2 -1
- package/src/plugins/delete/Delete.js +3 -1
- package/src/vue-plugin.js +5 -7
- package/src/plugins/index.js +0 -5
package/package.json
CHANGED
package/src/asteroid.js
CHANGED
|
@@ -4,7 +4,13 @@ export * from './helpers'
|
|
|
4
4
|
export * from './mixins'
|
|
5
5
|
export * from './vue-plugin'
|
|
6
6
|
export * from './composables'
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
// plugins
|
|
9
|
+
export { default as Delete } from './plugins/delete/Delete.js'
|
|
10
|
+
export { default as Dialog } from './plugins/dialog/Dialog.js'
|
|
11
|
+
export { default as NotifyError } from './plugins/notify-error/NotifyError.js'
|
|
12
|
+
export { default as NotifySuccess } from './plugins/notify-success/NotifySuccess.js'
|
|
13
|
+
export { default as Screen } from './plugins/screen/Screen.js'
|
|
8
14
|
|
|
9
15
|
// components
|
|
10
16
|
export const QasActions = defineAsyncComponent(() => import('./components/actions/QasActions.vue'))
|
|
@@ -15,9 +21,7 @@ export const QasAppMenu = defineAsyncComponent(() => import('./components/app-me
|
|
|
15
21
|
export const QasAppUser = defineAsyncComponent(() => import('./components/app-user/QasAppUser.vue'))
|
|
16
22
|
export const QasAvatar = defineAsyncComponent(() => import('./components/avatar/QasAvatar.vue'))
|
|
17
23
|
export const QasBadge = defineAsyncComponent(() => import('./components/badge/QasBadge.vue'))
|
|
18
|
-
|
|
19
|
-
export { default as QasBoardGenerator } from './components/board-generator/QasBoardGenerator.vue'
|
|
20
|
-
|
|
24
|
+
export const QasBoardGenerator = defineAsyncComponent(() => import('./components/board-generator/QasBoardGenerator.vue'))
|
|
21
25
|
export const QasBox = defineAsyncComponent(() => import('./components/box/QasBox.vue'))
|
|
22
26
|
export const QasBreakline = defineAsyncComponent(() => import('./components/breakline/QasBreakline.vue'))
|
|
23
27
|
export const QasBtn = defineAsyncComponent(() => import('./components/btn/QasBtn.vue'))
|
|
@@ -76,7 +76,8 @@ import useNotifications from '../../composables/use-notifications'
|
|
|
76
76
|
import useQueryCache from '../../composables/use-query-cache'
|
|
77
77
|
import useScreen from '../../composables/use-screen'
|
|
78
78
|
|
|
79
|
-
import
|
|
79
|
+
import NotifySuccess from '../../plugins/notify-success/NotifySuccess.js'
|
|
80
|
+
import NotifyError from '../../plugins/notify-error/NotifyError.js'
|
|
80
81
|
|
|
81
82
|
import { ref, computed, watch, inject } from 'vue'
|
|
82
83
|
import { useRouter } from 'vue-router'
|
|
@@ -40,7 +40,8 @@ import QasBtn from '../btn/QasBtn.vue'
|
|
|
40
40
|
import QasContainer from '../container/QasContainer.vue'
|
|
41
41
|
import QasDialog from '../dialog/QasDialog.vue'
|
|
42
42
|
|
|
43
|
-
import
|
|
43
|
+
import NotifyError from '../../plugins/notify-error/NotifyError.js'
|
|
44
|
+
import NotifySuccess from '../../plugins/notify-success/NotifySuccess.js'
|
|
44
45
|
import { useHistory, useOverlayNavigation } from '../../composables'
|
|
45
46
|
import { viewMixin } from '../../mixins'
|
|
46
47
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import QasEmptyResultText from '../empty-result-text/QasEmptyResultText.vue'
|
|
26
26
|
|
|
27
27
|
import { ref, computed, inject, nextTick } from 'vue'
|
|
28
|
-
import
|
|
28
|
+
import NotifyError from '../../plugins/notify-error/NotifyError.js'
|
|
29
29
|
|
|
30
30
|
defineOptions({ name: 'QasInfiniteScroll' })
|
|
31
31
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<slot>
|
|
12
12
|
<q-page-container>
|
|
13
13
|
<q-page>
|
|
14
|
-
<router-view />
|
|
14
|
+
<router-view :route="overlayBackgroundRoute" />
|
|
15
15
|
</q-page>
|
|
16
16
|
</q-page-container>
|
|
17
17
|
</slot>
|
|
@@ -34,6 +34,7 @@ import useScreen from '../../composables/use-screen'
|
|
|
34
34
|
import useNotifications from '../../composables/use-notifications'
|
|
35
35
|
|
|
36
36
|
import { computed, ref, watch } from 'vue'
|
|
37
|
+
import { useRoute } from 'vue-router'
|
|
37
38
|
|
|
38
39
|
defineOptions({ name: 'QasLayout' })
|
|
39
40
|
|
|
@@ -68,10 +69,24 @@ const screen = useScreen()
|
|
|
68
69
|
|
|
69
70
|
const { isNotificationsEnabled, setUnreadNotificationsCount } = useNotifications()
|
|
70
71
|
|
|
72
|
+
const route = useRoute()
|
|
73
|
+
|
|
71
74
|
const menuDrawer = ref(false)
|
|
72
75
|
const notificationsDrawer = ref(false)
|
|
73
76
|
|
|
74
77
|
// computed
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Sempre fornece uma rota para o <router-view>. Quando o overlay está ativo,
|
|
81
|
+
* usa a rota resolvida do background; sem overlay, usa a rota atual.
|
|
82
|
+
* Isso evita alternância entre `undefined` e objeto de rota, reduzindo remounts.
|
|
83
|
+
*/
|
|
84
|
+
const overlayBackgroundRoute = computed(() => {
|
|
85
|
+
return route.query?.overlay === 'true'
|
|
86
|
+
? route.meta.overlayBackgroundResolvedRoute
|
|
87
|
+
: route
|
|
88
|
+
})
|
|
89
|
+
|
|
75
90
|
const defaultAppMenuProps = computed(() => {
|
|
76
91
|
return {
|
|
77
92
|
...props.appBarProps,
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<template #default>
|
|
20
|
-
<
|
|
20
|
+
<div class="pv-layout-overlay-drawer__content">
|
|
21
|
+
<router-view name="overlay" />
|
|
22
|
+
</div>
|
|
21
23
|
</template>
|
|
22
24
|
</qas-drawer>
|
|
23
25
|
</template>
|
|
@@ -62,6 +64,7 @@ const drawerProps = computed(() => {
|
|
|
62
64
|
position: 'right',
|
|
63
65
|
maxWidth: '90%',
|
|
64
66
|
dialogProps: {
|
|
67
|
+
class: 'pv-layout-overlay-drawer',
|
|
65
68
|
onHide: closeOverlay,
|
|
66
69
|
noRouteDismiss: true,
|
|
67
70
|
persistent: isDisabled.value
|
|
@@ -22,7 +22,7 @@ import QasUploader from '../uploader/QasUploader.vue'
|
|
|
22
22
|
import QasSignaturePad from '../signature-pad/QasSignaturePad.vue'
|
|
23
23
|
|
|
24
24
|
import { base64ToBlob } from '../../helpers'
|
|
25
|
-
import
|
|
25
|
+
import NotifyError from '../../plugins/notify-error/NotifyError.js'
|
|
26
26
|
|
|
27
27
|
export default {
|
|
28
28
|
name: 'QasSignatureUploader',
|
|
@@ -71,7 +71,7 @@ const qas = inject('qas')
|
|
|
71
71
|
// composables
|
|
72
72
|
const route = useRoute()
|
|
73
73
|
|
|
74
|
-
const { isBackgroundOverlay } = useOverlayNavigation()
|
|
74
|
+
const { isBackgroundOverlay, route: overlayRoute } = useOverlayNavigation()
|
|
75
75
|
|
|
76
76
|
const {
|
|
77
77
|
// state
|
|
@@ -96,7 +96,7 @@ const {
|
|
|
96
96
|
defineExpose({ fetchSingle, fetchHandler })
|
|
97
97
|
|
|
98
98
|
// computed
|
|
99
|
-
const id = computed(() => props.customId ||
|
|
99
|
+
const id = computed(() => props.customId || overlayRoute.value.params.id)
|
|
100
100
|
|
|
101
101
|
const resultModel = computed(() => {
|
|
102
102
|
if (props.useStore) return qas.getGetter({ entity: props.entity, key: 'byId' })(id.value) || {}
|
|
@@ -9,7 +9,7 @@ import { Loading, extend } from 'quasar'
|
|
|
9
9
|
import Sortable from 'sortablejs'
|
|
10
10
|
import { getAction } from '@bildvitta/store-adapter'
|
|
11
11
|
|
|
12
|
-
import
|
|
12
|
+
import NotifyError from '../../plugins/notify-error/NotifyError.js'
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
15
|
name: 'QasSortable',
|
|
@@ -52,7 +52,7 @@ import { getImageSize, getResizeDimensions } from '../../helpers/images.js'
|
|
|
52
52
|
import { constructObject } from '../../helpers'
|
|
53
53
|
|
|
54
54
|
import { uid, extend } from 'quasar'
|
|
55
|
-
import
|
|
55
|
+
import NotifyError from '../../plugins/notify-error/NotifyError.js'
|
|
56
56
|
|
|
57
57
|
import Pica from 'pica'
|
|
58
58
|
|
|
@@ -36,9 +36,10 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Adiciona padding no container para evitar que o botão do Gleap
|
|
40
|
-
*
|
|
39
|
+
* - Adiciona padding no ultimo container da pagina e no ultimo elemento do overlay para evitar que o botão do Gleap
|
|
40
|
+
* fique sobreposto ao conteúdo da página.
|
|
41
41
|
*/
|
|
42
|
-
body:has(.bb-feedback-button) .container
|
|
42
|
+
body:has(.bb-feedback-button) .q-page > .container:last-child,
|
|
43
|
+
body:has(.bb-feedback-button) .pv-layout-overlay-drawer__content > :last-child {
|
|
43
44
|
padding-bottom: 80px;
|
|
44
45
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { copyToClipboard } from 'quasar'
|
|
2
|
-
import
|
|
2
|
+
import NotifySuccess from '../plugins/notify-success/NotifySuccess.js'
|
|
3
|
+
import NotifyError from '../plugins/notify-error/NotifyError.js'
|
|
3
4
|
|
|
4
5
|
export default async (text, onLoading = () => {}) => {
|
|
5
6
|
onLoading(true)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Loading } from 'quasar'
|
|
2
|
-
import
|
|
2
|
+
import NotifySuccess from '../plugins/notify-success/NotifySuccess.js'
|
|
3
|
+
import NotifyError from '../plugins/notify-error/NotifyError.js'
|
|
3
4
|
|
|
4
5
|
/** Função para lidar com promises, por exemplo requests.
|
|
5
6
|
*
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Dialog from '../dialog/Dialog.js'
|
|
2
|
+
import NotifySuccess from '../notify-success/NotifySuccess.js'
|
|
3
|
+
import NotifyError from '../notify-error/NotifyError.js'
|
|
2
4
|
import { getAction } from '@bildvitta/store-adapter'
|
|
3
5
|
import { useHistory } from '../../composables'
|
|
4
6
|
|
package/src/vue-plugin.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { getAction, getGetter } from '@bildvitta/store-adapter'
|
|
2
2
|
|
|
3
3
|
// Plugins
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Screen
|
|
10
|
-
} from './plugins'
|
|
4
|
+
import Delete from './plugins/delete/Delete.js'
|
|
5
|
+
import Dialog from './plugins/dialog/Dialog.js'
|
|
6
|
+
import NotifyError from './plugins/notify-error/NotifyError.js'
|
|
7
|
+
import NotifySuccess from './plugins/notify-success/NotifySuccess.js'
|
|
8
|
+
import Screen from './plugins/screen/Screen.js'
|
|
11
9
|
|
|
12
10
|
import packageInfo from '../package.json'
|
|
13
11
|
|
package/src/plugins/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as Delete } from './delete/Delete.js'
|
|
2
|
-
export { default as Dialog } from './dialog/Dialog.js'
|
|
3
|
-
export { default as NotifyError } from './notify-error/NotifyError.js'
|
|
4
|
-
export { default as NotifySuccess } from './notify-success/NotifySuccess.js'
|
|
5
|
-
export { default as Screen } from './screen/Screen.js'
|