@bildvitta/quasar-ui-asteroid 3.5.0 → 3.6.0-beta.1

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.
Files changed (61) hide show
  1. package/package.json +1 -1
  2. package/src/assets/big-shoes-hero.svg +1 -0
  3. package/src/assets/big-shoes-sitting-on-rock.svg +1 -0
  4. package/src/assets/big-shoes-walking-the-dog.svg +1 -0
  5. package/src/components/actions/QasActions.vue +1 -1
  6. package/src/components/actions-menu/QasActionsMenu.vue +5 -3
  7. package/src/components/alert/QasAlert.vue +1 -1
  8. package/src/components/app-bar/QasAppBar.vue +1 -1
  9. package/src/components/app-menu/QasAppMenu.vue +2 -2
  10. package/src/components/badge/QasBadge.vue +40 -0
  11. package/src/components/badge/QasBadge.yml +28 -0
  12. package/src/components/btn/QasBtn.vue +87 -2
  13. package/src/components/btn/QasBtn.yml +18 -0
  14. package/src/components/card/QasCard.vue +1 -1
  15. package/src/components/copy/QasCopy.vue +1 -6
  16. package/src/components/copy/QasCopy.yml +0 -6
  17. package/src/components/date-time-input/QasDateTimeInput.vue +27 -6
  18. package/src/components/delete/QasDelete.vue +14 -1
  19. package/src/components/dialog/QasDialog.vue +4 -4
  20. package/src/components/filters/QasFilters.vue +80 -65
  21. package/src/components/form-view/QasFormView.vue +22 -20
  22. package/src/components/gallery/QasGallery.vue +2 -4
  23. package/src/components/gallery/private/PvGalleryCarouselDialog.vue +33 -16
  24. package/src/components/list-items/QasListItems.vue +4 -6
  25. package/src/components/list-items/QasListItems.yml +4 -4
  26. package/src/components/list-view/QasListView.vue +1 -1
  27. package/src/components/nested-fields/QasNestedFields.vue +9 -10
  28. package/src/components/pagination/QasPagination.vue +36 -3
  29. package/src/components/search-box/QasSearchBox.vue +2 -3
  30. package/src/components/search-box/QasSearchBox.yml +1 -1
  31. package/src/components/select/QasSelect.vue +0 -1
  32. package/src/components/select/QasSelect.yml +1 -1
  33. package/src/components/select-list/QasSelectList.vue +3 -6
  34. package/src/components/signature-pad/QasSignaturePad.vue +1 -1
  35. package/src/components/signature-uploader/QasSignatureUploader.vue +1 -1
  36. package/src/components/{tabs-generator/private/PvTabsGeneratorStatus.vue → status/QasStatus.vue} +4 -4
  37. package/src/components/status/QasStatus.yml +10 -0
  38. package/src/components/tabs-generator/QasTabsGenerator.vue +3 -3
  39. package/src/components/text-truncate/QasTextTruncate.vue +32 -10
  40. package/src/components/transfer/QasTransfer.vue +2 -2
  41. package/src/components/tree-generator/QasTreeGenerator.vue +2 -1
  42. package/src/components/uploader/QasUploader.vue +7 -5
  43. package/src/css/components/button.scss +101 -0
  44. package/src/css/components/index.scss +1 -0
  45. package/src/css/mixins/index.scss +1 -0
  46. package/src/css/mixins/set-button.scss +16 -0
  47. package/src/css/plugins/notify.scss +21 -0
  48. package/src/css/variables/button.scss +2 -1
  49. package/src/css/variables/spacing.scss +40 -27
  50. package/src/css/variables/typography.scss +11 -11
  51. package/src/index.scss +1 -1
  52. package/src/mixins/view.js +1 -1
  53. package/src/pages/ErrorComponent.vue +33 -14
  54. package/src/pages/Forbidden.vue +2 -1
  55. package/src/pages/NotFound.vue +2 -1
  56. package/src/pages/ServerError.vue +6 -2
  57. package/src/pages/Unauthorized.vue +3 -2
  58. package/src/plugins/notify-error/NotifyError.js +2 -1
  59. package/src/plugins/notify-success/NotifySuccess.js +2 -1
  60. package/src/vue-plugin.js +6 -0
  61. package/src/assets/gear.svg +0 -27
@@ -1,11 +1,17 @@
1
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" />
2
+ <div class="container error-component flex">
3
+ <div class="column full-width items-center justify-center row">
4
+ <h2 :aria-label="ariaLabelCode" class="q-mb-sm text-grey-9 text-h2" role="heading">
5
+ {{ code }}
6
+ </h2>
7
+
8
+ <div class="q-mb-2xl text-body1 text-center text-grey-8">
9
+ <qas-breakline :text="description" />
10
+ </div>
11
+
12
+ <q-img alt="ilustração do código de erro" class="error-component__image" :src="imagePath" />
13
+
14
+ <qas-btn v-if="hasButtonProps" class="q-mt-xl" v-bind="buttonProps" color="primary" icon="chevron_left" variant="tertiary" />
9
15
  </div>
10
16
  </div>
11
17
  </template>
@@ -25,24 +31,24 @@ export default {
25
31
  required: true
26
32
  },
27
33
 
28
- subtitle: {
34
+ description: {
29
35
  type: String,
30
36
  default: ''
31
37
  },
32
38
 
33
- title: {
39
+ imagePath: {
34
40
  type: String,
35
- required: true
41
+ default: ''
36
42
  }
37
43
  },
38
44
 
39
45
  computed: {
40
- gearSize () {
41
- return this.$qas.screen.isSmall ? '90px' : '160px'
42
- },
43
-
44
46
  hasButtonProps () {
45
47
  return !!Object.keys(this.buttonProps).length
48
+ },
49
+
50
+ ariaLabelCode () {
51
+ return `Código de erro ${this.code}`
46
52
  }
47
53
  }
48
54
  }
@@ -52,5 +58,18 @@ export default {
52
58
  .error-component {
53
59
  background-color: var(--qas-background-color);
54
60
  min-height: 100vh;
61
+ padding: var(--qas-spacing-3xl) 0;
62
+
63
+ &__image {
64
+ width: 300px;
65
+ }
66
+
67
+ @media (max-width: $breakpoint-xs) {
68
+ padding: var(--qas-spacing-xl) 0;
69
+
70
+ &__image {
71
+ width: 265px;
72
+ }
73
+ }
55
74
  }
56
75
  </style>
@@ -16,7 +16,8 @@ export default {
16
16
  errorProps () {
17
17
  return {
18
18
  code: '403',
19
- title: 'Ops, parece que você não tem acesso para este recurso!',
19
+ description: 'Parece que você não tem permissão para acessar esta página. \n Sugerimos que entre em contato com o administrador.',
20
+ imagePath: require('../assets/big-shoes-walking-the-dog.svg'),
20
21
  buttonProps: {
21
22
  to: { path: '/' },
22
23
  label: 'Voltar ao início'
@@ -16,7 +16,8 @@ export default {
16
16
  errorProps () {
17
17
  return {
18
18
  code: '404',
19
- title: 'Ops! Parece que a página que está tentando acessar não existe!',
19
+ description: 'A página que você está tentando acessar está indisponível ou não existe.',
20
+ imagePath: require('../assets/big-shoes-hero.svg'),
20
21
  buttonProps: {
21
22
  to: { path: '/' },
22
23
  label: 'Voltar ao início'
@@ -16,8 +16,12 @@ export default {
16
16
  errorProps () {
17
17
  return {
18
18
  code: '500',
19
- title: 'Ops, ocorreu um erro interno no nosso servidor!',
20
- subtitle: 'Tente novamente em alguns instantes.'
19
+ description: 'Ops... O sistema está passando por uma instabilidade. \n Já identificamos o problema e estamos trabalhando na solução.',
20
+ imagePath: require('../assets/big-shoes-sitting-on-rock.svg'),
21
+ buttonProps: {
22
+ to: { path: '/' },
23
+ label: 'Voltar ao início'
24
+ }
21
25
  }
22
26
  }
23
27
  }
@@ -16,10 +16,11 @@ export default {
16
16
  errorProps () {
17
17
  return {
18
18
  code: '401',
19
- title: 'Ops! Parece que você está sem acesso ao sistema!',
19
+ description: 'Ops... Parece que você foi desconectado do sistema. \n Por favor, entre na sua conta novamente.',
20
+ imagePath: require('../assets/big-shoes-walking-the-dog.svg'),
20
21
  buttonProps: {
21
22
  to: { path: '/auth/login' },
22
- label: 'Fazer login'
23
+ label: 'Entrar novamente'
23
24
  }
24
25
  }
25
26
  }
@@ -1,11 +1,12 @@
1
1
  import { Notify } from 'quasar'
2
2
  import notifyConfig from '../../shared/notify-config.js'
3
3
 
4
- Notify.registerType('error', { icon: 'sym_r_cancel', ...notifyConfig })
4
+ Notify.registerType('error', notifyConfig)
5
5
 
6
6
  export default (message, caption) => {
7
7
  Notify.create({
8
8
  caption,
9
+ classes: 'qas-notification--error',
9
10
  message,
10
11
  type: 'error'
11
12
  })
@@ -1,11 +1,12 @@
1
1
  import { Notify } from 'quasar'
2
2
  import notifyConfig from '../../shared/notify-config.js'
3
3
 
4
- Notify.registerType('success', { icon: 'sym_r_check_circle', ...notifyConfig })
4
+ Notify.registerType('success', notifyConfig)
5
5
 
6
6
  export default (message, caption) => {
7
7
  Notify.create({
8
8
  caption,
9
+ classes: 'qas-notification--success',
9
10
  message,
10
11
  type: 'success'
11
12
  })
package/src/vue-plugin.js CHANGED
@@ -5,6 +5,7 @@ import QasAppBar from './components/app-bar/QasAppBar.vue'
5
5
  import QasAppMenu from './components/app-menu/QasAppMenu.vue'
6
6
  import QasAppUser from './components/app-user/QasAppUser.vue'
7
7
  import QasAvatar from './components/avatar/QasAvatar.vue'
8
+ import QasBadge from './components/badge/QasBadge.vue'
8
9
  import QasBox from './components/box/QasBox.vue'
9
10
  import QasBreakline from './components/breakline/QasBreakline.vue'
10
11
  import QasBtn from './components/btn/QasBtn.vue'
@@ -45,6 +46,7 @@ import QasSignaturePad from './components/signature-pad/QasSignaturePad.vue'
45
46
  import QasSignatureUploader from './components/signature-uploader/QasSignatureUploader.vue'
46
47
  import QasSingleView from './components/single-view/QasSingleView.vue'
47
48
  import QasSortable from './components/sortable/QasSortable.vue'
49
+ import QasStatus from './components/status/QasStatus.vue'
48
50
  import QasTableGenerator from './components/table-generator/QasTableGenerator.vue'
49
51
  import QasTabsGenerator from './components/tabs-generator/QasTabsGenerator.vue'
50
52
  import QasTextTruncate from './components/text-truncate/QasTextTruncate.vue'
@@ -80,6 +82,7 @@ function install (app) {
80
82
  app.component('QasAppMenu', QasAppMenu)
81
83
  app.component('QasAppUser', QasAppUser)
82
84
  app.component('QasAvatar', QasAvatar)
85
+ app.component('QasBadge', QasBadge)
83
86
  app.component('QasBox', QasBox)
84
87
  app.component('QasBreakline', QasBreakline)
85
88
  app.component('QasBtn', QasBtn)
@@ -120,6 +123,7 @@ function install (app) {
120
123
  app.component('QasSignatureUploader', QasSignatureUploader)
121
124
  app.component('QasSingleView', QasSingleView)
122
125
  app.component('QasSortable', QasSortable)
126
+ app.component('QasStatus', QasStatus)
123
127
  app.component('QasTableGenerator', QasTableGenerator)
124
128
  app.component('QasTabsGenerator', QasTabsGenerator)
125
129
  app.component('QasTextTruncate', QasTextTruncate)
@@ -156,6 +160,7 @@ export {
156
160
  QasAppMenu,
157
161
  QasAppUser,
158
162
  QasAvatar,
163
+ QasBadge,
159
164
  QasBox,
160
165
  QasBreakline,
161
166
  QasBtn,
@@ -196,6 +201,7 @@ export {
196
201
  QasSignatureUploader,
197
202
  QasSingleView,
198
203
  QasSortable,
204
+ QasStatus,
199
205
  QasTableGenerator,
200
206
  QasTabsGenerator,
201
207
  QasTextTruncate,
@@ -1,27 +0,0 @@
1
- <?xml version='1.0' encoding='utf-8'?>
2
- <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100">
3
- <g>
4
- <path id="small" fill="#424242" d="m86.6 10.3v-0.1c-1.5-2-3.3-3.7-5.4-5.3v0.1c-1.7 1.3-3.4 2.7-5 4.1-0.7-0.4-1.3-0.7-1.9-1-0.8-0.4-1.6-0.8-2.5-1-0.3-0.1-0.6-0.2-0.9-0.2-0.2-2.2-0.4-4.4-0.7-6.6-1-0.2-2-0.2-3.1-0.3h-1.6c-1 0.1-1.9 0.1-2.8 0.3-0.3 2.1-0.5 4.3-0.6 6.5-0.4 0-0.7 0.1-1.1 0.2-0.1 0-0.2 0-0.3 0.1-0.8 0.2-1.6 0.6-2.4 1-0.7 0.3-1.3 0.6-1.9 1-1.7-1.4-3.3-2.7-5-4.1l-0.1-0.1c-0.4 0.3-0.8 0.6-1.1 0.9-0.7 0.5-1.3 1.1-1.8 1.7-0.9 0.8-1.6 1.8-2.4 2.8h0.1c1.3 1.7 2.7 3.3 4.1 5-0.4 0.6-0.8 1.3-1.1 1.9-0.4 0.8-0.7 1.7-0.9 2.5-0.2 0.4-0.3 0.8-0.3 1.1-2.2 0.2-4.4 0.4-6.5 0.7-0.2 1-0.3 2-0.3 3.1 0 1.5 0.1 3 0.4 4.4 2.1 0.2 4.2 0.4 6.4 0.6 0 0.4 0.1 0.8 0.3 1.1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2.3 5.6s0.8 4 2.3 5.6c1.6 1.6 3.4 2.4 5.6 2.4s4-0.8 5.6-2.4 2.3-3.4 2.3-5.6-0.7-4-2.3-5.6c-1.6-1.5-3.4-2.3-5.6-2.3zm-4.2 3.7c1.2-1.1 2.6-1.7 4.2-1.7s3 0.6 4.2 1.7c1.2 1.2 1.7 2.5 1.7 4.2s-0.5 3.1-1.7 4.2c-1.2 1.2-2.6 1.8-4.2 1.8s-3-0.6-4.2-1.8c-1.1-1.1-1.7-2.5-1.7-4.2 0-1.6 0.6-3 1.7-4.2z"/>
6
- <animateTransform
7
- attributeName="transform"
8
- attributeType="XML"
9
- type="rotate"
10
- from="360 66 25.1"
11
- to="0 66 25.1"
12
- dur="6s"
13
- repeatCount="indefinite"/>
14
- </g>
15
- <g>
16
- <path id="big" fill="#424242" d="m40.8 33.6c-0.4-0.2-0.7-0.3-1-0.3-1.2-0.3-2.4-0.5-3.6-0.7-1.1 2.7-2 5.3-2.9 7.9h-1.8c-1.2 0.1-2.3 0.2-3.4 0.4-0.9 0.1-1.8 0.4-2.7 0.7-1.6-2.3-3.3-4.6-4.9-6.8l-0.1-0.1c-0.6 0.2-1.2 0.4-1.7 0.7-1 0.4-1.9 0.9-2.8 1.5-1.4 0.7-2.7 1.6-3.9 2.7v0.1c1.2 2.5 2.3 5 3.5 7.5-0.7 0.7-1.3 1.3-1.9 2.1-0.8 0.8-1.5 1.8-2.1 2.8-0.3 0.4-0.5 0.8-0.7 1.3-2.8-0.5-5.6-1-8.4-1.4-0.5 1.2-1 2.4-1.4 3.7-0.4 2-0.8 3.9-1 5.8l7.8 3v1.4c0 1.1 0.1 2.3 0.4 3.5 0.1 1 0.4 2 0.7 3-2.3 1.6-4.5 3.2-6.8 4.9 1.2 3 2.9 5.8 4.9 8.4h0.1c2.5-1.2 5-2.3 7.6-3.5 0.6 0.6 1.2 1.1 1.8 1.7 0.9 0.8 2 1.5 3.2 2.2 0.3 0.2 0.7 0.4 1.1 0.7-0.5 2.7-0.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5 3.5 4 6.2 4.8 2.7 0.7 5.3 0.4 7.8-1 2.5-1.5 4-3.5 4.8-6.2v-0.1c0.7-2.7 0.3-5.3-1.1-7.7-1.4-2.5-3.5-4.1-6.2-4.8-2.7-0.8-5.4-0.4-7.8 1-2.5 1.4-4 3.5-4.7 6.3zm6-4c1.9-1.1 3.8-1.4 5.8-0.8 2 0.5 3.6 1.7 4.7 3.6 1.1 1.8 1.3 3.8 0.8 5.8-0.6 2-1.8 3.6-3.6 4.6v0.1c-1.9 1-3.8 1.3-5.8 0.7-2.1-0.5-3.6-1.7-4.7-3.6-1-1.8-1.3-3.7-0.8-5.8 0.6-2 1.8-3.5 3.6-4.6z" />
18
- <animateTransform
19
- attributeName="transform"
20
- attributeType="XML"
21
- type="rotate"
22
- from="0 32.5 65"
23
- to="360 32.5 65"
24
- dur="6s"
25
- repeatCount="indefinite"/>
26
- </g>
27
- </svg>