@bildvitta/quasar-ui-asteroid 3.0.0-beta.2 → 3.0.0-beta.20
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/dist/api/QasActionsMenu.json +15 -15
- package/dist/api/QasAppBar.json +4 -8
- package/dist/api/QasAppMenu.json +11 -7
- package/dist/api/QasBtn.json +8 -4
- package/dist/api/QasCard.json +17 -13
- package/dist/api/QasCheckboxGroup.json +8 -8
- package/dist/api/QasCopy.json +4 -4
- package/dist/api/QasDateTimeInput.json +16 -16
- package/dist/api/QasDelete.json +17 -17
- package/dist/api/QasDialog.json +24 -20
- package/dist/api/QasFilters.json +14 -14
- package/dist/api/QasFormGenerator.json +57 -26
- package/dist/api/QasFormView.json +115 -87
- package/dist/api/QasGallery.json +4 -4
- package/dist/api/QasGridGenerator.json +40 -39
- package/dist/api/QasInput.json +13 -13
- package/dist/api/QasListItems.json +18 -17
- package/dist/api/QasListView.json +67 -53
- package/dist/api/QasNestedFields.json +45 -35
- package/dist/api/QasNumericInput.json +31 -12
- package/dist/api/QasPageHeader.json +7 -7
- package/dist/api/QasPasswordInput.json +13 -13
- package/dist/api/QasPasswordStrengthChecker.json +12 -12
- package/dist/api/QasProfile.json +5 -5
- package/dist/api/QasResizer.json +11 -11
- package/dist/api/QasSearchBox.json +90 -8
- package/dist/api/QasSelect.json +92 -25
- package/dist/api/QasSelectList.json +16 -14
- package/dist/api/QasSignaturePad.json +1 -1
- package/dist/api/QasSignatureUploader.json +9 -9
- package/dist/api/QasSingleView.json +52 -43
- package/dist/api/QasSortable.json +20 -20
- package/dist/api/QasTableGenerator.json +5 -5
- package/dist/api/QasTabsGenerator.json +5 -2
- package/dist/api/QasTransfer.json +9 -9
- package/dist/api/QasUploader.json +22 -17
- package/dist/asteroid.cjs.css +1 -1
- package/dist/asteroid.cjs.js +3904 -3102
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +3908 -3106
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +3907 -3106
- package/dist/asteroid.umd.min.js +2 -2
- package/dist/vetur/asteroid-attributes.json +387 -303
- package/dist/vetur/asteroid-tags.json +129 -108
- package/package.json +1 -1
- package/src/assets/gear.svg +27 -0
- package/src/components/actions/QasActions.vue +1 -5
- package/src/components/actions-menu/QasActionsMenu.vue +4 -10
- package/src/components/actions-menu/QasActionsMenu.yml +15 -15
- package/src/components/app-bar/QasAppBar.vue +18 -14
- package/src/components/app-bar/QasAppBar.yml +4 -8
- package/src/components/app-menu/QasAppMenu.vue +8 -7
- package/src/components/app-menu/QasAppMenu.yml +11 -7
- package/src/components/avatar/QasAvatar.vue +0 -4
- package/src/components/box/QasBox.vue +1 -1
- package/src/components/btn/QasBtn.vue +11 -15
- package/src/components/btn/QasBtn.yml +7 -3
- package/src/components/card/QasCard.vue +18 -9
- package/src/components/card/QasCard.yml +17 -13
- package/src/components/checkbox-group/QasCheckboxGroup.yml +9 -8
- package/src/components/copy/QasCopy.vue +1 -1
- package/src/components/copy/QasCopy.yml +4 -3
- package/src/components/date-time-input/QasDateTimeInput.vue +39 -41
- package/src/components/date-time-input/QasDateTimeInput.yml +16 -16
- package/src/components/delete/QasDelete.vue +15 -1
- package/src/components/delete/QasDelete.yml +15 -15
- package/src/components/dialog/QasDialog.vue +28 -9
- package/src/components/dialog/QasDialog.yml +22 -18
- package/src/components/dialog-router/QasDialogRouter.vue +1 -1
- package/src/components/field/QasField.vue +15 -14
- package/src/components/filters/QasFilters.vue +30 -13
- package/src/components/filters/QasFilters.yml +14 -14
- package/src/components/form-generator/QasFormGenerator.vue +87 -12
- package/src/components/form-generator/QasFormGenerator.yml +32 -18
- package/src/components/form-view/QasFormView.vue +142 -60
- package/src/components/form-view/QasFormView.yml +91 -67
- package/src/components/gallery/QasGallery.vue +4 -8
- package/src/components/gallery/QasGallery.yml +4 -4
- package/src/components/grid-generator/QasGridGenerator.vue +23 -7
- package/src/components/grid-generator/QasGridGenerator.yml +29 -27
- package/src/components/input/QasInput.vue +37 -21
- package/src/components/input/QasInput.yml +13 -13
- package/src/components/layout/QasLayout.vue +4 -0
- package/src/components/list-items/QasListItems.vue +16 -24
- package/src/components/list-items/QasListItems.yml +14 -15
- package/src/components/list-view/QasListView.vue +48 -20
- package/src/components/list-view/QasListView.yml +58 -46
- package/src/components/map/QasMap.vue +5 -5
- package/src/components/nested-fields/QasNestedFields.vue +29 -21
- package/src/components/nested-fields/QasNestedFields.yml +35 -28
- package/src/components/numeric-input/QasNumericInput.vue +45 -27
- package/src/components/numeric-input/QasNumericInput.yml +26 -12
- package/src/components/page-header/QasPageHeader.vue +14 -11
- package/src/components/page-header/QasPageHeader.yml +4 -4
- package/src/components/password-input/QasPasswordInput.vue +17 -16
- package/src/components/password-input/QasPasswordInput.yml +11 -11
- package/src/components/password-strength-checker/QasPasswordStrengthChecker.yml +10 -10
- package/src/components/profile/QasProfile.vue +3 -6
- package/src/components/profile/QasProfile.yml +5 -5
- package/src/components/resizer/QasResizer.vue +1 -1
- package/src/components/resizer/QasResizer.yml +6 -5
- package/src/components/search-box/QasSearchBox.vue +138 -42
- package/src/components/search-box/QasSearchBox.yml +74 -7
- package/src/components/select/QasSelect.vue +63 -53
- package/src/components/select/QasSelect.yml +68 -17
- package/src/components/select-list/QasSelectList.vue +13 -32
- package/src/components/select-list/QasSelectList.yml +13 -14
- package/src/components/signature-pad/QasSignaturePad.vue +1 -1
- package/src/components/signature-pad/QasSignaturePad.yml +1 -1
- package/src/components/signature-uploader/QasSignatureUploader.vue +13 -14
- package/src/components/signature-uploader/QasSignatureUploader.yml +9 -9
- package/src/components/single-view/QasSingleView.vue +24 -8
- package/src/components/single-view/QasSingleView.yml +45 -38
- package/src/components/sortable/QasSortable.yml +17 -17
- package/src/components/table-generator/QasTableGenerator.vue +14 -6
- package/src/components/table-generator/QasTableGenerator.yml +5 -5
- package/src/components/tabs-generator/QasTabsGenerator.vue +2 -2
- package/src/components/tabs-generator/QasTabsGenerator.yml +2 -2
- package/src/components/text-truncate/QasTextTruncate.vue +2 -5
- package/src/components/transfer/QasTransfer.vue +5 -7
- package/src/components/transfer/QasTransfer.yml +9 -9
- package/src/components/uploader/QasUploader.vue +63 -16
- package/src/components/uploader/QasUploader.yml +17 -12
- package/src/composables/index.js +1 -1
- package/src/composables/{useHistory.js → use-history.js} +0 -0
- package/src/css/components/base.scss +3 -0
- package/src/css/components/field.scss +4 -0
- package/src/css/components/index.scss +4 -0
- package/src/css/components/radio.scss +3 -0
- package/src/css/components/tabs.scss +3 -0
- package/src/css/mixins/index.scss +1 -0
- package/src/css/{set-brand.scss → mixins/set-brand.scss} +0 -0
- package/src/css/{background.scss → utils/background.scss} +0 -0
- package/src/css/{border-radius.scss → utils/border-radius.scss} +0 -0
- package/src/css/{border.scss → utils/border.scss} +0 -0
- package/src/css/{container.scss → utils/container.scss} +0 -0
- package/src/css/{fonts.scss → utils/fonts.scss} +0 -0
- package/src/css/utils/index.scss +9 -0
- package/src/css/{line-height.scss → utils/line-height.scss} +0 -0
- package/src/css/{opacity.scss → utils/opacity.scss} +0 -0
- package/src/css/{text.scss → utils/text.scss} +0 -0
- package/src/css/{unset.scss → utils/unset.scss} +0 -0
- package/src/css/variables/button.scss +3 -0
- package/src/css/variables/index.scss +3 -0
- package/src/css/variables/shadow.scss +33 -0
- package/src/css/variables/typography.scss +139 -0
- package/src/helpers/camelize-fields-name.js +15 -0
- package/src/helpers/filters.js +2 -0
- package/src/helpers/get-normalized-options.js +20 -0
- package/src/helpers/handle-process.js +13 -0
- package/src/helpers/index.js +3 -0
- package/src/index.scss +11 -12
- package/src/mixins/generator.js +10 -2
- package/src/mixins/index.js +3 -3
- package/src/mixins/search-filter.js +227 -0
- package/src/mixins/view.js +35 -13
- package/src/pages/ErrorComponent.vue +56 -0
- package/src/pages/Forbidden.vue +21 -5
- package/src/pages/NotFound.vue +21 -5
- package/src/pages/ServerError.vue +25 -0
- package/src/pages/Unauthorized.vue +28 -0
- package/src/plugins/index.js +4 -2
- package/src/plugins/logger/Logger.js +44 -0
- package/src/plugins/logger/Logger.yml +9 -0
- package/src/plugins/screen/Screen.js +5 -0
- package/src/vue-plugin.js +6 -3
- package/src/assets/logo-modular.svg +0 -1
- package/src/css/design-system.scss +0 -18
- package/src/css/shadow.scss +0 -7
- package/src/mixins/screen.js +0 -34
package/src/mixins/view.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { camelizeFieldsName } from '../helpers'
|
|
2
2
|
import { markRaw } from 'vue'
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
props: {
|
|
6
|
-
dialog: {
|
|
7
|
-
type: Boolean
|
|
8
|
-
},
|
|
9
|
-
|
|
10
6
|
entity: {
|
|
11
7
|
required: true,
|
|
12
8
|
type: String
|
|
@@ -34,6 +30,16 @@ export default {
|
|
|
34
30
|
|
|
35
31
|
fetching: {
|
|
36
32
|
type: Boolean
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
useBoundary: {
|
|
36
|
+
default: true,
|
|
37
|
+
type: Boolean
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
beforeFetch: {
|
|
41
|
+
default: null,
|
|
42
|
+
type: Function
|
|
37
43
|
}
|
|
38
44
|
},
|
|
39
45
|
|
|
@@ -49,7 +55,7 @@ export default {
|
|
|
49
55
|
mx_errors: {},
|
|
50
56
|
mx_fields: {},
|
|
51
57
|
mx_metadata: {},
|
|
52
|
-
|
|
58
|
+
mx_cancelBeforeFetch: false,
|
|
53
59
|
mx_isFetching: false
|
|
54
60
|
}
|
|
55
61
|
},
|
|
@@ -62,11 +68,11 @@ export default {
|
|
|
62
68
|
|
|
63
69
|
computed: {
|
|
64
70
|
mx_componentTag () {
|
|
65
|
-
return this.
|
|
71
|
+
return this.useBoundary ? 'q-page' : 'div'
|
|
66
72
|
},
|
|
67
73
|
|
|
68
74
|
mx_componentClass () {
|
|
69
|
-
return
|
|
75
|
+
return this.useBoundary && 'container spaced'
|
|
70
76
|
},
|
|
71
77
|
|
|
72
78
|
mx_hasFooterSlot () {
|
|
@@ -86,7 +92,9 @@ export default {
|
|
|
86
92
|
this.$qas.error('Ops! Erro ao obter os dados.', exception)
|
|
87
93
|
|
|
88
94
|
const status = response?.status
|
|
89
|
-
const redirect =
|
|
95
|
+
const redirect = status >= 500
|
|
96
|
+
? 'ServerError'
|
|
97
|
+
: ({ 401: 'Unauthorized', 403: 'Forbidden', 404: 'NotFound' })[status]
|
|
90
98
|
|
|
91
99
|
if (redirect) {
|
|
92
100
|
this.$router.replace({ name: redirect })
|
|
@@ -98,11 +106,9 @@ export default {
|
|
|
98
106
|
},
|
|
99
107
|
|
|
100
108
|
mx_setFields (fields = {}) {
|
|
101
|
-
|
|
102
|
-
fields[field].name = camelize(fields[field].name)
|
|
103
|
-
}
|
|
109
|
+
const camelizedFields = camelizeFieldsName(fields)
|
|
104
110
|
|
|
105
|
-
this.mx_fields = markRaw(
|
|
111
|
+
this.mx_fields = markRaw(camelizedFields)
|
|
106
112
|
},
|
|
107
113
|
|
|
108
114
|
mx_setMetadata (metadata = {}) {
|
|
@@ -115,6 +121,22 @@ export default {
|
|
|
115
121
|
|
|
116
122
|
this.$emit(`update:${key}`, models[key])
|
|
117
123
|
}
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
mx_fetchHandler (payload, resolve) {
|
|
127
|
+
const hasBeforeFetch = typeof this.beforeFetch === 'function'
|
|
128
|
+
|
|
129
|
+
if (hasBeforeFetch && !this.mx_cancelBeforeFetch) {
|
|
130
|
+
return this.beforeFetch({
|
|
131
|
+
payload,
|
|
132
|
+
resolve: payload => resolve(payload),
|
|
133
|
+
done: () => {
|
|
134
|
+
this.mx_cancelBeforeFetch = true
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
resolve()
|
|
118
140
|
}
|
|
119
141
|
}
|
|
120
142
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="column error-component items-center justify-around q-px-xl">
|
|
3
|
+
<div class="column full-width items-center justify-center q-gutter-md q-py-md row">
|
|
4
|
+
<q-img src="../assets/gear.svg" :width="gearSize" />
|
|
5
|
+
<div class="text-bold text-h1 text-primary">{{ code }}</div>
|
|
6
|
+
<div class="text-bold text-center text-grey-9 text-h6">{{ title }}</div>
|
|
7
|
+
<div v-if="subtitle" class="text-bold text-center text-grey-9 text-subtitle2">{{ subtitle }}</div>
|
|
8
|
+
<qas-btn v-if="hasButtonProps" class="text-bold text-primary" v-bind="buttonProps" />
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
name: 'ErrorComponent',
|
|
16
|
+
|
|
17
|
+
props: {
|
|
18
|
+
buttonProps: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
code: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
subtitle: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ''
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
title: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
computed: {
|
|
40
|
+
gearSize () {
|
|
41
|
+
return this.$qas.screen.isSmall ? '90px' : '160px'
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
hasButtonProps () {
|
|
45
|
+
return !!Object.keys(this.buttonProps).length
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style lang="scss">
|
|
52
|
+
.error-component {
|
|
53
|
+
background-color: var(--qas-background-color);
|
|
54
|
+
min-height: 100vh;
|
|
55
|
+
}
|
|
56
|
+
</style>
|
package/src/pages/Forbidden.vue
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<p class="q-my-lg text-faded">Ops, você não tem permissão para acessar esta página <strong>(403).</strong></p>
|
|
4
|
-
<q-btn color="primary" flat @click="$router.push('/')">Voltar</q-btn>
|
|
5
|
-
</div>
|
|
2
|
+
<error-component v-bind="errorProps" />
|
|
6
3
|
</template>
|
|
7
4
|
|
|
8
5
|
<script>
|
|
6
|
+
import ErrorComponent from './ErrorComponent.vue'
|
|
7
|
+
|
|
9
8
|
export default {
|
|
10
|
-
name: 'Forbidden'
|
|
9
|
+
name: 'Forbidden',
|
|
10
|
+
|
|
11
|
+
components: {
|
|
12
|
+
ErrorComponent
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
computed: {
|
|
16
|
+
errorProps () {
|
|
17
|
+
return {
|
|
18
|
+
code: '403',
|
|
19
|
+
title: 'Ops, parece que você não tem acesso para este recurso!',
|
|
20
|
+
buttonProps: {
|
|
21
|
+
to: { path: '/' },
|
|
22
|
+
label: 'Voltar ao início'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
11
27
|
}
|
|
12
28
|
</script>
|
package/src/pages/NotFound.vue
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<p class="q-my-lg text-faded">Ops, nada aqui... <strong>(404)</strong></p>
|
|
4
|
-
<q-btn color="primary" flat @click="$router.push('/')">Voltar</q-btn>
|
|
5
|
-
</div>
|
|
2
|
+
<error-component v-bind="errorProps" />
|
|
6
3
|
</template>
|
|
7
4
|
|
|
8
5
|
<script>
|
|
6
|
+
import ErrorComponent from './ErrorComponent.vue'
|
|
7
|
+
|
|
9
8
|
export default {
|
|
10
|
-
name: 'NotFound'
|
|
9
|
+
name: 'NotFound',
|
|
10
|
+
|
|
11
|
+
components: {
|
|
12
|
+
ErrorComponent
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
computed: {
|
|
16
|
+
errorProps () {
|
|
17
|
+
return {
|
|
18
|
+
code: '404',
|
|
19
|
+
title: 'Ops! Parece que a página que está tentando acessar não existe!',
|
|
20
|
+
buttonProps: {
|
|
21
|
+
to: { path: '/' },
|
|
22
|
+
label: 'Voltar ao início'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
11
27
|
}
|
|
12
28
|
</script>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<error-component v-bind="errorProps" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ErrorComponent from './ErrorComponent.vue'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: 'ServerError',
|
|
10
|
+
|
|
11
|
+
components: {
|
|
12
|
+
ErrorComponent
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
computed: {
|
|
16
|
+
errorProps () {
|
|
17
|
+
return {
|
|
18
|
+
code: '500',
|
|
19
|
+
title: 'Ops, ocorreu um erro interno no nosso servidor!',
|
|
20
|
+
subtitle: 'Tente novamente em alguns instantes.'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<error-component v-bind="errorProps" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ErrorComponent from './ErrorComponent.vue'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: 'Unauthorized',
|
|
10
|
+
|
|
11
|
+
components: {
|
|
12
|
+
ErrorComponent
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
computed: {
|
|
16
|
+
errorProps () {
|
|
17
|
+
return {
|
|
18
|
+
code: '401',
|
|
19
|
+
title: 'Ops! Parece que você está sem acesso ao sistema!',
|
|
20
|
+
buttonProps: {
|
|
21
|
+
to: { path: '/auth/login' },
|
|
22
|
+
label: 'Fazer login'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
</script>
|
package/src/plugins/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import Dialog from './dialog/Dialog.js'
|
|
2
|
+
import Logger from './logger/Logger.js'
|
|
2
3
|
import NotifyError from './notify-error/NotifyError.js'
|
|
3
4
|
import NotifySuccess from './notify-success/NotifySuccess.js'
|
|
4
5
|
import Screen from './screen/Screen.js'
|
|
5
6
|
|
|
6
7
|
export {
|
|
7
8
|
Dialog,
|
|
9
|
+
Logger,
|
|
8
10
|
NotifyError,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
NotifySuccess,
|
|
12
|
+
Screen
|
|
11
13
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export default () => {
|
|
2
|
+
const isDebugEnabled = process.env.DEBUGGING
|
|
3
|
+
|
|
4
|
+
const normalizeMessage = msg => `%c ${msg}`
|
|
5
|
+
const getStyle = isError => (
|
|
6
|
+
`
|
|
7
|
+
background: ${isError ? '#C10015 ' : '#1976d2'};
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
color: white;
|
|
10
|
+
padding: 6px 20px;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100%;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
`
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
group (message, payload = [], { error } = {}) {
|
|
20
|
+
if (!isDebugEnabled) return
|
|
21
|
+
|
|
22
|
+
console.groupCollapsed(normalizeMessage(message), getStyle(error))
|
|
23
|
+
|
|
24
|
+
for (const item of payload) {
|
|
25
|
+
if (typeof item === 'string') {
|
|
26
|
+
console.info(normalizeMessage(item), getStyle(error))
|
|
27
|
+
continue
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
console.table(item)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
console.groupEnd()
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
info (message) {
|
|
37
|
+
isDebugEnabled && console.info(normalizeMessage(message), getStyle())
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
error (message) {
|
|
41
|
+
isDebugEnabled && console.info(normalizeMessage(message), getStyle(true))
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -2,10 +2,15 @@ import { Screen, Platform } from 'quasar'
|
|
|
2
2
|
|
|
3
3
|
export default () => {
|
|
4
4
|
const screensModel = {
|
|
5
|
+
// até 599px
|
|
5
6
|
isSmall: () => Screen.xs,
|
|
7
|
+
// de 600 até 1023px
|
|
6
8
|
isMedium: () => Screen.sm,
|
|
9
|
+
// de 600 até 1023px
|
|
7
10
|
isLarge: () => Screen.gt.sm,
|
|
11
|
+
// de 0 até 599px
|
|
8
12
|
untilMedium: () => Screen.lt.sm,
|
|
13
|
+
// de 0 ate 1023px
|
|
9
14
|
untilLarge: () => Screen.lt.md,
|
|
10
15
|
|
|
11
16
|
// Plataforma
|
package/src/vue-plugin.js
CHANGED
|
@@ -55,7 +55,8 @@ import {
|
|
|
55
55
|
Dialog,
|
|
56
56
|
NotifyError,
|
|
57
57
|
NotifySuccess,
|
|
58
|
-
Screen
|
|
58
|
+
Screen,
|
|
59
|
+
Logger
|
|
59
60
|
} from './plugins'
|
|
60
61
|
|
|
61
62
|
import packageInfo from '../package.json'
|
|
@@ -124,8 +125,9 @@ function install (app) {
|
|
|
124
125
|
app.config.globalProperties.$qas = {
|
|
125
126
|
dialog: Dialog,
|
|
126
127
|
error: NotifyError,
|
|
127
|
-
|
|
128
|
-
screen: Screen()
|
|
128
|
+
logger: Logger(),
|
|
129
|
+
screen: Screen(),
|
|
130
|
+
success: NotifySuccess
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
app.directive(Test.name, Test)
|
|
@@ -186,6 +188,7 @@ export {
|
|
|
186
188
|
|
|
187
189
|
// plugins
|
|
188
190
|
Dialog,
|
|
191
|
+
Logger,
|
|
189
192
|
NotifyError,
|
|
190
193
|
NotifySuccess,
|
|
191
194
|
Screen,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="126" height="26" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity=".3"><g clip-path="url(#a)"><path d="M6.829 10.909c.02-2.295.059-4.6.119-6.895C9.197 2.653 11.41 1.3 13.58 0c2.172 1.301 4.393 2.653 6.634 4.014.07 2.295.11 4.6.12 6.895a342.175 342.175 0 0 0 6.048 3.417c-.02 2.504-.1 5.017-.238 7.521A575.699 575.699 0 0 0 19.392 26a404.892 404.892 0 0 1-5.81-3.388A525.05 525.05 0 0 1 7.77 26a574.702 574.702 0 0 0-6.753-4.153 158.72 158.72 0 0 1-.238-7.52 381.833 381.833 0 0 0 6.049-3.418Zm6.752-9.24c-1.487.884-2.994 1.788-4.521 2.702 1.487.855 2.994 1.73 4.521 2.613a830.152 830.152 0 0 1 4.522-2.613c-1.527-.904-3.034-1.818-4.522-2.702Zm.714 6.577v5.295c1.537-.884 3.064-1.768 4.591-2.642-.01-1.759-.03-3.507-.06-5.266-1.487.855-3.004 1.729-4.53 2.613Zm5.87 15.658a402.133 402.133 0 0 1 4.602-2.792c.079-1.719.128-3.438.158-5.156-1.547.884-3.084 1.788-4.62 2.692-.04 1.749-.08 3.507-.14 5.256Zm4.046-9.16c-1.517-.845-3.044-1.72-4.571-2.593a767.782 767.782 0 0 0-4.601 2.652c1.527.884 3.044 1.759 4.551 2.613 1.547-.894 3.084-1.788 4.621-2.672Zm-15.806 9.21c1.468-.835 2.955-1.71 4.462-2.594 0-1.768-.01-3.546-.01-5.315a577.521 577.521 0 0 1-4.56 2.623c.029 1.758.059 3.527.108 5.285Zm3.719-9.15c-1.537-.885-3.064-1.78-4.601-2.653a310.65 310.65 0 0 1-4.572 2.593c1.537.874 3.084 1.768 4.621 2.672a573.757 573.757 0 0 0 4.552-2.613Z" fill="#00314D"/></g><path d="m47.676 21.17-.022-10.315-5.113 8.536h-1.29l-5.112-8.403V21.17h-2.756V5.61h2.378l6.18 10.314L48.01 5.61h2.378l.022 15.56h-2.734ZM58.193 21.325c-1.2 0-2.282-.26-3.245-.778a5.774 5.774 0 0 1-2.268-2.156c-.533-.934-.8-1.986-.8-3.157 0-1.17.267-2.215.8-3.134a5.774 5.774 0 0 1 2.267-2.156c.964-.52 2.045-.778 3.246-.778 1.215 0 2.304.259 3.268.778a5.619 5.619 0 0 1 2.245 2.156c.548.919.822 1.963.822 3.134 0 1.17-.274 2.223-.822 3.157a5.62 5.62 0 0 1-2.245 2.156c-.964.518-2.053.778-3.268.778Zm0-2.379c1.023 0 1.867-.34 2.534-1.022.667-.682 1-1.578 1-2.69 0-1.111-.333-2.008-1-2.69-.667-.681-1.511-1.022-2.534-1.022s-1.867.34-2.534 1.022c-.652.682-.978 1.579-.978 2.69 0 1.112.326 2.008.978 2.69.667.681 1.511 1.022 2.534 1.022ZM78.513 4.675V21.17h-2.667v-1.534c-.46.563-1.03.986-1.712 1.267-.667.282-1.408.423-2.223.423-1.14 0-2.17-.252-3.09-.756a5.47 5.47 0 0 1-2.133-2.134c-.52-.934-.779-2-.779-3.2 0-1.201.26-2.26.778-3.18a5.471 5.471 0 0 1 2.135-2.134c.918-.504 1.948-.755 3.09-.755.785 0 1.503.133 2.155.4a4.337 4.337 0 0 1 1.668 1.2v-6.09h2.778Zm-6.268 14.271c.667 0 1.267-.148 1.8-.444a3.372 3.372 0 0 0 1.267-1.312c.312-.563.467-1.215.467-1.956 0-.74-.155-1.393-.467-1.956a3.217 3.217 0 0 0-1.267-1.29 3.507 3.507 0 0 0-1.8-.466c-.667 0-1.267.155-1.8.467a3.217 3.217 0 0 0-1.268 1.289c-.311.563-.467 1.215-.467 1.956 0 .741.156 1.393.467 1.956.311.563.734 1 1.267 1.312a3.644 3.644 0 0 0 1.8.444ZM91.854 9.299v11.87H89.21v-1.511c-.444.533-1 .948-1.667 1.244a5.487 5.487 0 0 1-2.156.423c-1.586 0-2.838-.437-3.757-1.312-.904-.889-1.356-2.2-1.356-3.934v-6.78h2.779V15.7c0 1.067.237 1.867.711 2.4.49.52 1.178.779 2.067.779.993 0 1.779-.304 2.357-.912.592-.622.889-1.511.889-2.667V9.299h2.778ZM93.805 4.675h2.78V21.17h-2.78V4.675ZM103.773 9.166c1.749 0 3.083.422 4.002 1.267.933.83 1.4 2.09 1.4 3.778v6.958h-2.623v-1.445c-.341.519-.83.92-1.467 1.2-.622.267-1.378.4-2.267.4-.89 0-1.668-.147-2.334-.444-.667-.311-1.186-.733-1.556-1.267a3.317 3.317 0 0 1-.534-1.845c0-1.067.393-1.919 1.178-2.556.8-.652 2.053-.978 3.757-.978h3.067v-.178c0-.83-.252-1.467-.755-1.912-.489-.444-1.223-.667-2.201-.667-.667 0-1.326.104-1.978.312-.638.207-1.179.496-1.623.867l-1.09-2.023c.623-.475 1.371-.838 2.246-1.09a9.984 9.984 0 0 1 2.778-.377Zm-.377 10.136c.696 0 1.311-.156 1.845-.467a2.638 2.638 0 0 0 1.155-1.378v-1.378h-2.867c-1.601 0-2.401.526-2.401 1.578 0 .504.2.904.6 1.2.4.297.956.445 1.668.445ZM113.997 11.033c.8-1.245 2.208-1.867 4.224-1.867v2.645a3.532 3.532 0 0 0-.645-.067c-1.082 0-1.927.319-2.534.956-.608.622-.912 1.526-.912 2.712v5.757h-2.778V9.3h2.645v1.734Z" fill="#00314D"/></g><defs><clipPath id="a"><path fill="#fff" transform="matrix(-1 0 0 1 26.383 0)" d="M0 0h25.603v26H0z"/></clipPath></defs></svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
background-color: $background-color;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
// Fields
|
|
6
|
-
.q-field--outlined .q-field__inner {
|
|
7
|
-
background-color: white;
|
|
8
|
-
border-radius: $generic-border-radius;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.q-radio__inner::before {
|
|
12
|
-
color: $primary;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Tabs
|
|
16
|
-
.q-tabs__arrow {
|
|
17
|
-
color: $primary;
|
|
18
|
-
}
|
package/src/css/shadow.scss
DELETED
package/src/mixins/screen.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
// TODO: Esses nomes precisam ser alterados para algo mais inteligente.
|
|
3
|
-
|
|
4
|
-
computed: {
|
|
5
|
-
mx_isSmall () {
|
|
6
|
-
// until 599
|
|
7
|
-
return this.$q.screen.xs
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
mx_isMedium () {
|
|
11
|
-
// from 600 until 1023
|
|
12
|
-
return this.$q.screen.sm
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
mx_isLarge () {
|
|
16
|
-
// from 1024 until the limit
|
|
17
|
-
return this.$q.screen.gt.sm
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
mx_untilMedium () {
|
|
21
|
-
// from 0 until 599
|
|
22
|
-
return this.$q.screen.lt.sm
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
mx_untilLarge () {
|
|
26
|
-
// from 0 until 1023
|
|
27
|
-
return this.$q.screen.lt.md
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
mx_isMobile () {
|
|
31
|
-
return this.$q.platform.is.mobile
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|