@bildvitta/quasar-ui-asteroid 3.13.0-beta.15 → 3.13.0-beta.16

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 (49) hide show
  1. package/package.json +1 -1
  2. package/src/components/actions-menu/QasActionsMenu.vue +4 -4
  3. package/src/components/actions-menu/QasActionsMenu.yml +13 -0
  4. package/src/components/app-bar/QasAppBar.vue +2 -2
  5. package/src/components/app-menu/QasAppMenu.vue +6 -10
  6. package/src/components/app-user/QasAppUser.vue +4 -4
  7. package/src/components/badge/QasBadge.vue +1 -1
  8. package/src/components/badge/QasBadge.yml +1 -1
  9. package/src/components/btn/QasBtn.vue +1 -1
  10. package/src/components/btn/QasBtn.yml +3 -3
  11. package/src/components/btn-dropdown/QasBtnDropdown.vue +2 -2
  12. package/src/components/chart-view/QasChartView.vue +2 -2
  13. package/src/components/date/QasDate.vue +3 -3
  14. package/src/components/date-time-input/QasDateTimeInput.vue +2 -2
  15. package/src/components/delete/QasDelete.vue +1 -1
  16. package/src/components/dialog/QasDialog.vue +2 -2
  17. package/src/components/filters/QasFilters.vue +1 -1
  18. package/src/components/filters/private/PvFiltersButton.vue +2 -2
  19. package/src/components/gallery/QasGallery.vue +1 -1
  20. package/src/components/gallery/private/PvGalleryCarouselDialog.vue +2 -2
  21. package/src/components/gallery-card/QasGalleryCard.vue +2 -2
  22. package/src/components/label/QasLabel.vue +1 -1
  23. package/src/components/label/QasLabel.yml +1 -1
  24. package/src/components/nested-fields/QasNestedFields.vue +6 -6
  25. package/src/components/nested-fields/QasNestedFields.yml +13 -1
  26. package/src/components/page-header/QasPageHeader.vue +1 -1
  27. package/src/components/pagination/QasPagination.vue +1 -1
  28. package/src/components/search-input/QasSearchInput.vue +2 -2
  29. package/src/components/select-list-dialog/QasSelectListDialog.vue +3 -3
  30. package/src/components/table-generator/QasTableGenerator.vue +1 -1
  31. package/src/components/tabs-generator/QasTabsGenerator.vue +1 -1
  32. package/src/components/timeline/QasTimeline.vue +2 -2
  33. package/src/components/tree-generator/QasTreeGenerator.vue +1 -1
  34. package/src/components/uploader/QasUploader.vue +1 -1
  35. package/src/components/uploader/private/PvUploaderGalleryCard.vue +1 -1
  36. package/src/components/welcome/QasWelcome.vue +2 -2
  37. package/src/css/components/base.scss +1 -0
  38. package/src/css/components/button.scss +2 -2
  39. package/src/css/components/checkbox.scss +12 -0
  40. package/src/css/components/editor.scss +7 -0
  41. package/src/css/components/field.scss +23 -3
  42. package/src/css/components/index.scss +3 -0
  43. package/src/css/components/item.scss +1 -1
  44. package/src/css/components/radio.scss +15 -2
  45. package/src/css/components/toggle.scss +11 -0
  46. package/src/css/variables/typography.scss +11 -1
  47. package/src/index.scss +4 -4
  48. package/src/pages/ErrorComponent.vue +1 -1
  49. package/src/shared/notify-config.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.13.0-beta.15",
4
+ "version": "3.13.0-beta.16",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <div v-if="hasActions" class="qas-actions-menu">
2
+ <div v-if="hasActions" class="qas-actions-menu" data-cy="actions-menu">
3
3
  <component :is="component.is" v-bind="component.props" variant="tertiary" @click.stop.prevent>
4
- <q-list v-if="isBtnDropdown">
4
+ <q-list v-if="isBtnDropdown" data-cy="actions-menu-list">
5
5
  <slot v-for="(item, key) in actions" :item="item" :name="key">
6
- <q-item v-bind="item.props" :key="key" clickable @click="onClick(item)">
6
+ <q-item v-bind="item.props" :key="key" clickable data-cy="actions-menu-list-item" @click="onClick(item)">
7
7
  <q-item-section avatar>
8
8
  <q-icon :name="item.icon" />
9
9
  </q-item-section>
@@ -196,7 +196,7 @@ function useDelete () {
196
196
  if (hasDelete.value) {
197
197
  Object.assign(deleteBtnProps, {
198
198
  delete: {
199
- color: 'grey-9',
199
+ color: 'grey-10',
200
200
  icon: props.deleteIcon,
201
201
  label: props.deleteLabel,
202
202
  handler: () => qas.delete(props.deleteProps)
@@ -70,3 +70,16 @@ slots:
70
70
  }
71
71
  "
72
72
  ]
73
+
74
+ selectors:
75
+ 'actions-menu':
76
+ desc: Seletor do componente.
77
+ examples: ['data-cy="actions-menu"']
78
+
79
+ 'actions-menu-list':
80
+ desc: Seletor da lista de ações.
81
+ examples: ['data-cy="actions-menu-list"']
82
+
83
+ 'actions-menu-list-item':
84
+ desc: Seletor para cada item da lista de ações.
85
+ examples: ['data-cy="actions-menu-list-item"']
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <q-header class="qas-app-bar shadow-2" height-hint="56">
3
- <q-toolbar class="bg-white qas-app-bar__toolbar text-grey-9">
4
- <qas-btn color="grey-9" icon="sym_r_menu" variant="tertiary" @click="toggleMenuDrawer" />
3
+ <q-toolbar class="bg-white qas-app-bar__toolbar text-grey-10">
4
+ <qas-btn color="grey-10" icon="sym_r_menu" variant="tertiary" @click="toggleMenuDrawer" />
5
5
 
6
6
  <q-toolbar-title>
7
7
  <router-link class="flex items-center no-wrap text-no-decoration" :class="routerLinkClass" :to="rootRoute">
@@ -5,12 +5,12 @@
5
5
  <div class="full-width">
6
6
  <!-- Brand -->
7
7
  <div v-if="!screen.untilLarge" class="q-mb-xl q-pt-xl qas-app-menu__label" :class="classes.spacedItem">
8
- <router-link class="flex relative-position text-no-decoration" :class="classes.brandPosition" :to="rootRoute">
9
- <q-img v-if="normalizedBrand" :alt="title" class="qas-app-menu__brand qas-app-menu__label" :class="classes.brand" height="40px" no-spinner :src="normalizedBrand" />
8
+ <router-link class="flex justify-center relative-position text-no-decoration" :to="rootRoute">
9
+ <q-img v-if="normalizedBrand" :alt="title" class="qas-app-menu__brand qas-app-menu__label" :class="classes.brand" fit="contain" height="27px" no-spinner :src="normalizedBrand" />
10
10
 
11
11
  <span v-else-if="!isMiniMode" class="ellipsis text-bold text-primary text-subtitle2">{{ title }}</span>
12
12
 
13
- <q-badge v-if="hasDevelopmentBadge" color="red" floating :label="developmentBadgeLabel" />
13
+ <q-badge v-if="hasDevelopmentBadge" class="q-mt-sm" color="red" :label="developmentBadgeLabel" />
14
14
  </router-link>
15
15
  </div>
16
16
 
@@ -19,7 +19,7 @@
19
19
  </div>
20
20
 
21
21
  <div v-if="screen.untilLarge" class="q-pr-xl q-pt-md text-right">
22
- <qas-btn color="grey-9" icon="sym_r_close" variant="tertiary" @click="closeDrawer" />
22
+ <qas-btn color="grey-10" icon="sym_r_close" variant="tertiary" @click="closeDrawer" />
23
23
  </div>
24
24
 
25
25
  <!-- Module -->
@@ -30,11 +30,11 @@
30
30
  </div>
31
31
 
32
32
  <!-- List -->
33
- <q-list v-if="items.length" class="q-mt-xl qas-app-menu__menu text-grey-9">
33
+ <q-list v-if="items.length" class="q-mt-xl qas-app-menu__menu text-grey-10">
34
34
  <template v-for="(menuItem, index) in items">
35
35
  <div v-if="hasChildren(menuItem)" :key="`children-${index}`" class="qas-app-menu__content" :class="classes.content">
36
36
  <q-item class="ellipsis items-center q-py-none qas-app-menu__item qas-app-menu__item--label-mini text-weight-bold">
37
- <div class="ellipsis qas-app-menu__label text-grey-9 text-subtitle2" :class="classes.spacedItem">
37
+ <div class="ellipsis qas-app-menu__label text-grey-10 text-subtitle2" :class="classes.spacedItem">
38
38
  {{ menuItem.label }}
39
39
  </div>
40
40
  </q-item>
@@ -193,10 +193,6 @@ const classes = computed(() => {
193
193
 
194
194
  spacedItem: {
195
195
  'qas-app-menu__label--spaced': !isMiniMode.value
196
- },
197
-
198
- brandPosition: {
199
- 'justify-center': isMiniMode.value
200
196
  }
201
197
  }
202
198
  })
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
 
11
11
  <div class="ellipsis qas-app-user__data">
12
- <div class="ellipsis qas-app-user__name text-grey-9">
12
+ <div class="ellipsis qas-app-user__name text-grey-10">
13
13
  {{ userName }}
14
14
  </div>
15
15
 
@@ -18,9 +18,9 @@
18
18
  </div>
19
19
  </div>
20
20
 
21
- <q-menu class="shadow-2 text-grey-9" max-height="400px" v-bind="menuProps">
21
+ <q-menu class="shadow-2 text-grey-10" max-height="400px" v-bind="menuProps">
22
22
  <div class="q-pb-sm q-pt-md q-px-md qas-app-user__menu">
23
- <qas-avatar class="q-mb-md" :image="user.photo" size="96px" :title="userName" />
23
+ <qas-avatar class="q-mb-md" :image="user.photo" size="64px" :title="userName" />
24
24
 
25
25
  <div class="ellipsis qas-app-user__menu-name">
26
26
  {{ userName }}
@@ -85,7 +85,7 @@ defineOptions({ name: 'QasAppUser' })
85
85
 
86
86
  const props = defineProps({
87
87
  avatarSize: {
88
- default: '36px',
88
+ default: '40px',
89
89
  type: String
90
90
  },
91
91
 
@@ -27,7 +27,7 @@ const props = defineProps({
27
27
 
28
28
  textColor: {
29
29
  type: String,
30
- default: 'grey-9'
30
+ default: 'black'
31
31
  }
32
32
  })
33
33
  </script>
@@ -20,7 +20,7 @@ props:
20
20
 
21
21
  text-color:
22
22
  desc: Cor do texto.
23
- default: grey-9
23
+ default: black
24
24
  type: String
25
25
 
26
26
  slots:
@@ -22,7 +22,7 @@ const props = defineProps({
22
22
  color: {
23
23
  default: 'primary',
24
24
  type: String,
25
- validator: value => ['grey-9', 'primary', 'white'].includes(value)
25
+ validator: value => ['grey-10', 'primary', 'white'].includes(value)
26
26
  },
27
27
 
28
28
  icon: {
@@ -8,10 +8,10 @@ meta:
8
8
 
9
9
  props:
10
10
  color:
11
- desc: Cor do botão, sendo possível alterar somente quando a variante for "tertiary", podendo ser "primary", "grey-9" ou "white".
11
+ desc: Cor do botão, sendo possível alterar somente quando a variante for "tertiary", podendo ser "primary", "grey-10" ou "white".
12
12
  default: primary
13
13
  type: String
14
- examples: ['grey-9', 'primary', 'white']
14
+ examples: ['grey-10', 'primary', 'white']
15
15
 
16
16
  icon:
17
17
  desc: Ícone a esquerda.
@@ -45,4 +45,4 @@ props:
45
45
  desc: Variantes do botão, que define para qual comportamento o botão será usado, podendo ser "primary", "secondary" ou "tertiary".
46
46
  default: tertiary
47
47
  type: String
48
- examples: ['primary', 'secondary', 'tertiary']
48
+ examples: ['primary', 'secondary', 'tertiary']
@@ -15,7 +15,7 @@
15
15
  <q-separator v-if="hasSeparator" class="q-mr-sm qas-btn-dropdown__separator self-center" dark vertical />
16
16
 
17
17
  <div v-if="useSplit">
18
- <qas-btn color="grey-9" :icon="dropdownIcon" variant="tertiary">
18
+ <qas-btn color="grey-10" :icon="dropdownIcon" variant="tertiary">
19
19
  <q-menu v-if="hasDefaultSlot" anchor="bottom right" auto-close self="top right">
20
20
  <div :class="menuContentClasses">
21
21
  <slot />
@@ -106,7 +106,7 @@ export default {
106
106
 
107
107
  ...defaultProps,
108
108
 
109
- color: color || (!this.useSplit ? 'grey-9' : 'primary'),
109
+ color: color || (!this.useSplit ? 'grey-10' : 'primary'),
110
110
  ...(!this.useSplit && { iconRight: defaultIconRight }),
111
111
  ...(this.useSplit && { icon })
112
112
  }
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <qas-header-actions v-if="hasHeaderActions" align-columns="end">
3
3
  <template #left>
4
- <div v-if="title" class="text-grey-9 text-h3">
4
+ <h3 v-if="title" class="text-h3">
5
5
  {{ title }}
6
- </div>
6
+ </h3>
7
7
 
8
8
  <div v-if="subtitle" class="text-body1 text-grey-8">
9
9
  {{ subtitle }}
@@ -559,7 +559,7 @@ export default {
559
559
  justify-content: space-between;
560
560
 
561
561
  .q-btn {
562
- @include set-button(tertiary, false, false, grey-9);
562
+ @include set-button(tertiary, false, false, grey-10);
563
563
  @include set-typography($subtitle2);
564
564
 
565
565
  .q-icon {
@@ -592,7 +592,7 @@ export default {
592
592
  color: $primary !important;
593
593
  }
594
594
 
595
- @include set-button(tertiary, false, false, grey-9);
595
+ @include set-button(tertiary, false, false, grey-10);
596
596
  }
597
597
  }
598
598
 
@@ -601,7 +601,7 @@ export default {
601
601
  }
602
602
 
603
603
  &__calendar-days-container {
604
- color: $grey-9;
604
+ color: $grey-10;
605
605
  min-height: auto;
606
606
 
607
607
  .q-btn {
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <qas-input ref="input" v-bind="attributes" v-model="currentValue" inputmode="numeric" :unmasked-value="false" @blur="validateDateTimeOnBlur" @focus="resetError" @update:model-value="updateModelValue">
3
3
  <template #append>
4
- <qas-btn v-if="!useTimeOnly" color="grey-9" :disable="$attrs.readonly" icon="sym_r_event" variant="tertiary">
4
+ <qas-btn v-if="!useTimeOnly" color="grey-10" :disable="$attrs.readonly" icon="sym_r_event" variant="tertiary">
5
5
  <q-popup-proxy ref="dateProxy" transition-hide="scale" transition-show="scale" v-bind="datePopupProxyProps">
6
6
  <qas-date v-model="currentValue" v-bind="defaultDateProps" :mask="maskDate" width="290px" @update:model-value="updateModelValue" />
7
7
  </q-popup-proxy>
8
8
  </qas-btn>
9
9
 
10
- <qas-btn v-if="!useDateOnly" class="q-ml-sm" color="grey-9" :disable="$attrs.readonly" icon="sym_r_access_time">
10
+ <qas-btn v-if="!useDateOnly" class="q-ml-sm" color="grey-10" :disable="$attrs.readonly" icon="sym_r_access_time">
11
11
  <q-popup-proxy ref="timeProxy" transition-hide="scale" transition-show="scale" v-bind="timePopupProxyProps">
12
12
  <q-time v-model="currentValue" v-bind="defaultTimeProps" format24h :mask="maskDate" @update:model-value="updateModelValue" />
13
13
  </q-popup-proxy>
@@ -69,7 +69,7 @@ export default {
69
69
  attributes () {
70
70
  return {
71
71
  ...this.$attrs,
72
- color: this.isButton ? 'grey-9' : this.$attrs.color
72
+ color: this.isButton ? 'grey-10' : this.$attrs.color
73
73
  }
74
74
  },
75
75
 
@@ -4,9 +4,9 @@
4
4
  <header v-if="hasHeader" class="q-mb-lg">
5
5
  <slot name="header">
6
6
  <div class="items-center justify-between row">
7
- <h5 class="text-grey-9 text-h5" data-cy="dialog-title">{{ card.title }}</h5>
7
+ <h5 class="text-h5" data-cy="dialog-title">{{ card.title }}</h5>
8
8
 
9
- <qas-btn v-if="isInfoDialog" v-close-popup color="grey-9" data-cy="dialog-close-btn" icon="sym_r_close" variant="tertiary" />
9
+ <qas-btn v-if="isInfoDialog" v-close-popup color="grey-10" data-cy="dialog-close-btn" icon="sym_r_close" variant="tertiary" />
10
10
  </div>
11
11
  </slot>
12
12
  </header>
@@ -177,7 +177,7 @@ export default {
177
177
  },
178
178
 
179
179
  filterButtonColor () {
180
- return this.hasActiveFilters ? 'primary' : 'grey-9'
180
+ return this.hasActiveFilters ? 'primary' : 'grey-10'
181
181
  },
182
182
 
183
183
  filterButtonProps () {
@@ -44,8 +44,8 @@ export default {
44
44
  props: {
45
45
  color: {
46
46
  type: String,
47
- default: 'grey-9',
48
- validator: value => ['grey-9', 'primary', 'white'].includes(value)
47
+ default: 'grey-10',
48
+ validator: value => ['grey-10', 'primary', 'white'].includes(value)
49
49
  },
50
50
 
51
51
  error: {
@@ -198,7 +198,7 @@ export default {
198
198
  list: {
199
199
  destroy: {
200
200
  label: 'Excluir',
201
- color: 'grey-9',
201
+ color: 'grey-10',
202
202
  icon: 'sym_r_delete',
203
203
 
204
204
  handler: () => this.onDestroy(image, index)
@@ -3,7 +3,7 @@
3
3
  <qas-dialog v-model="model" :cancel="false" class="q-pa-xl" max-width="1100px" :ok="false" :persistent="false" use-full-max-width>
4
4
  <template #header>
5
5
  <div class="text-right">
6
- <qas-btn v-close-popup color="grey-9" icon="sym_r_close" variant="tertiary" @click="close" />
6
+ <qas-btn v-close-popup color="grey-10" icon="sym_r_close" variant="tertiary" @click="close" />
7
7
  </div>
8
8
  </template>
9
9
 
@@ -11,7 +11,7 @@
11
11
  <q-carousel v-model="imageIndexModel" animated :arrows="!$qas.screen.isSmall" class="pv-gallery-carousel-dialog__carousel" control-text-color="primary" data-cy="gallery-carousel" :fullscreen="$qas.screen.isSmall" :height="carouselImageHeight" next-icon="sym_r_chevron_right" prev-icon="sym_r_chevron_left" swipeable :thumbnails="!isSingleImage">
12
12
  <q-carousel-slide v-for="(image, index) in images" :key="index" class="bg-no-repeat bg-size-contain" :data-cy="`gallery-carousel-slide-${index}`" :img-src="image.url" :name="index">
13
13
  <div v-if="$qas.screen.isSmall" class="full-width justify-end row">
14
- <qas-btn color="grey-9" icon="sym_r_close" variant="tertiary" @click="close" />
14
+ <qas-btn color="grey-10" icon="sym_r_close" variant="tertiary" @click="close" />
15
15
  </div>
16
16
  </q-carousel-slide>
17
17
  </q-carousel>
@@ -129,7 +129,7 @@ export default {
129
129
  return {
130
130
  'justify-between': this.card.name,
131
131
  'justify-right': !this.card.name,
132
- 'text-grey-9': !this.disable,
132
+ 'text-grey-10': !this.disable,
133
133
  'q-mb-md': this.hasActions || this.card.name
134
134
  }
135
135
  },
@@ -142,7 +142,7 @@ export default {
142
142
  'full-width',
143
143
  'items-center',
144
144
  'justify-center',
145
- 'text-grey-9',
145
+ 'text-grey-10',
146
146
  'text-subtitle2'
147
147
  ]
148
148
  }
@@ -14,7 +14,7 @@ export default {
14
14
  props: {
15
15
  color: {
16
16
  type: String,
17
- default: 'grey-9'
17
+ default: 'grey-10'
18
18
  },
19
19
 
20
20
  count: {
@@ -6,7 +6,7 @@ meta:
6
6
  props:
7
7
  color:
8
8
  desc: Cor do texto.
9
- default: grey-9
9
+ default: grey-10
10
10
  type: String
11
11
 
12
12
  count:
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :id="fieldName" class="qas-nested-fields">
2
+ <div :id="fieldName" class="qas-nested-fields" :data-cy="`nested-fields-${fieldName}`">
3
3
  <div v-if="useSingleLabel" class="text-left">
4
4
  <qas-label :label="fieldLabel" typography="h5" />
5
5
  </div>
@@ -7,7 +7,7 @@
7
7
  <div ref="inputContent">
8
8
  <component :is="componentTag" v-bind="componentProps">
9
9
  <template v-for="(row, index) in nested" :key="`row-${index}`">
10
- <div v-if="!row[destroyKey]" :id="`row-${index}`" class="full-width qas-nested-fields__field-item">
10
+ <div v-if="!row[destroyKey]" :id="`row-${index}`" class="full-width qas-nested-fields__field-item" data-cy="nested-fields-item">
11
11
  <header v-if="hasHeader" class="flex items-center q-pb-md" :class="headerClasses">
12
12
  <qas-label v-if="!useSingleLabel" :label="getRowLabel(index)" margin="none" typography="h5" />
13
13
  <qas-actions-menu v-if="hasBlockActions(row)" v-bind="getActionsMenuProps(index, row)" />
@@ -37,10 +37,10 @@
37
37
  <div v-if="useAdd">
38
38
  <slot :add="add" name="add-input">
39
39
  <div v-if="showAddFirstInputButton" class="text-left">
40
- <qas-btn class="q-px-sm" color="primary" variant="tertiary" @click="add()">{{ addFirstInputLabel }}</qas-btn>
40
+ <qas-btn class="q-px-sm" color="primary" data-cy="nested-fields-add-btn" :label="addFirstInputLabel" variant="tertiary" @click="add()" />
41
41
  </div>
42
42
 
43
- <div v-else-if="useInlineActions" class="cursor-pointer items-center q-col-gutter-x-md q-mt-md row" @click="add()">
43
+ <div v-else-if="useInlineActions" class="cursor-pointer items-center q-col-gutter-x-md q-mt-md row" data-cy="nested-fields-add-btn" @click="add()">
44
44
  <div class="col">
45
45
  <qas-input class="disabled no-pointer-events" hide-bottom-space :label="addInputLabel" outlined @focus="add()" />
46
46
  </div>
@@ -51,7 +51,7 @@
51
51
  </div>
52
52
 
53
53
  <div v-else class="text-left">
54
- <qas-btn class="q-px-sm" color="primary" icon="sym_r_add" :label="addInputLabel" variant="tertiary" @click="add()" />
54
+ <qas-btn class="q-px-sm" color="primary" data-cy="nested-fields-add-btn" icon="sym_r_add" :label="addInputLabel" variant="tertiary" @click="add()" />
55
55
  </div>
56
56
  </slot>
57
57
  </div>
@@ -108,7 +108,7 @@ export default {
108
108
  type: Object,
109
109
  default: () => {
110
110
  return {
111
- color: 'grey-9',
111
+ color: 'grey-10',
112
112
  icon: 'sym_r_delete',
113
113
  label: 'Excluir',
114
114
  variant: 'tertiary'
@@ -246,7 +246,6 @@ slots:
246
246
  type: Function
247
247
  examples: ["updateValue({ name: 'novo valor' }, 2)"]
248
248
 
249
-
250
249
  events:
251
250
  '@update:model-value -> function (value)':
252
251
  desc: Dispara toda vez que o model é atualizado, também utilizado para v-model.
@@ -254,3 +253,16 @@ events:
254
253
  value:
255
254
  desc: Novo valor do v-model
256
255
  type: String
256
+
257
+ selectors:
258
+ 'nested-fields-[fieldName]':
259
+ desc: Seletor criado a partir da propriedade "name" do campo.
260
+ examples: ['data-cy="nested-fields-companies"']
261
+
262
+ 'nested-fields-item':
263
+ desc: Seletor para cada item do nested.
264
+ examples: ['data-cy="nested-fields-item"']
265
+
266
+ 'nested-fields-add-btn':
267
+ desc: Seletor para os botões de adicionar itens ao nested.
268
+ examples: ['data-cy="nested-fields-add-btn"']
@@ -2,7 +2,7 @@
2
2
  <div>
3
3
  <q-toolbar class="justify-between q-mb-lg q-px-none qas-page-header">
4
4
  <div class="ellipsis">
5
- <q-toolbar-title v-if="title" class="text-grey-9 text-h3">
5
+ <q-toolbar-title v-if="title" class="text-h3">
6
6
  {{ title }}
7
7
  </q-toolbar-title>
8
8
 
@@ -38,7 +38,7 @@ export default {
38
38
  tertiary,
39
39
  false,
40
40
  false,
41
- grey-9
41
+ grey-10
42
42
  );
43
43
 
44
44
  min-width: 24px !important;
@@ -3,11 +3,11 @@
3
3
  <qas-input ref="input" v-model="model" v-bind="$attrs" class="bg-white rounded-borders-sm" data-cy="search-input" :debounce="debounce" dense hide-bottom-space input-class="ellipsis text-grey-8" inputmode="search" type="search">
4
4
  <template #prepend>
5
5
  <q-icon v-if="useSearchOnType" color="grey-8" name="sym_r_search" />
6
- <qas-btn v-else color="grey-9" icon="sym_r_search" variant="tertiary" @click="$emit('filter')" />
6
+ <qas-btn v-else color="grey-10" icon="sym_r_search" variant="tertiary" @click="$emit('filter')" />
7
7
  </template>
8
8
 
9
9
  <template #append>
10
- <qas-btn v-if="hasSearch" color="grey-9" icon="sym_r_clear" variant="tertiary" @click="clear" />
10
+ <qas-btn v-if="hasSearch" color="grey-10" icon="sym_r_clear" variant="tertiary" @click="clear" />
11
11
 
12
12
  <slot name="after-clear" />
13
13
  </template>
@@ -20,7 +20,7 @@
20
20
  v-if="hasBox"
21
21
  class="q-mt-md relative-position"
22
22
  >
23
- <span class="text-grey-9 text-subtitle1">
23
+ <span class="text-grey-10 text-subtitle1">
24
24
  {{ props.listLabel }}
25
25
  </span>
26
26
 
@@ -184,7 +184,7 @@ const labelProps = computed(() => {
184
184
  return {
185
185
  label: props.label,
186
186
  margin: 'none',
187
- color: hasError.value ? 'negative' : 'grey-9'
187
+ color: hasError.value ? 'negative' : 'grey-10'
188
188
  }
189
189
  })
190
190
 
@@ -268,7 +268,7 @@ function useList () {
268
268
 
269
269
  function getRemoveButtonProps ({ option }) {
270
270
  return {
271
- color: 'grey-9',
271
+ color: 'grey-10',
272
272
  icon: 'sym_r_delete',
273
273
  variant: 'tertiary',
274
274
  disable: props.disable || !!option.disable,
@@ -149,7 +149,7 @@ export default {
149
149
  field: name,
150
150
  label,
151
151
  name,
152
- headerClasses: 'text-grey-9'
152
+ headerClasses: 'text-grey-10'
153
153
  })
154
154
  }
155
155
 
@@ -186,7 +186,7 @@ export default {
186
186
  }
187
187
 
188
188
  &__arrow:not(&--faded) {
189
- color: $grey-9;
189
+ color: $grey-10;
190
190
  transition: color var(--qas-generic-transition);
191
191
 
192
192
  &:hover {
@@ -21,7 +21,7 @@
21
21
  </slot>
22
22
 
23
23
  <slot :item="item" name="description">
24
- <div class="text-body1 text-grey-9">
24
+ <div class="text-body1 text-grey-10">
25
25
  {{ item[descriptionKey] }}
26
26
  </div>
27
27
  </slot>
@@ -89,7 +89,7 @@ function getFormattedValue (item, mask) {
89
89
  }
90
90
 
91
91
  .q-timeline__subtitle {
92
- color: $dark;
92
+ color: $grey-10;
93
93
  opacity: initial;
94
94
  padding-right: 0;
95
95
  position: relative;
@@ -9,7 +9,7 @@
9
9
 
10
10
  <span v-if="hasMenuButton(node)" class="q-ml-sm">
11
11
  <!-- TODO: rever para o uso QasActionsMenu -->
12
- <qas-btn color="grey-9" icon="sym_r_more_vert" variant="tertiary" @click.stop.prevent>
12
+ <qas-btn color="grey-10" icon="sym_r_more_vert" variant="tertiary" @click.stop.prevent>
13
13
  <q-menu auto-close>
14
14
  <q-list separator>
15
15
  <q-item v-if="useAddButton" v-ripple class="qas-tree-generator__item" clickable @click="handleTreeFormDialog(node, true, tree)">
@@ -621,7 +621,7 @@ export default {
621
621
 
622
622
  &__header {
623
623
  background-color: transparent;
624
- color: $grey-9;
624
+ color: $grey-10;
625
625
  }
626
626
 
627
627
  &__list {
@@ -208,7 +208,7 @@ export default {
208
208
 
209
209
  destroy: {
210
210
  label: 'Excluir',
211
- color: 'grey-9',
211
+ color: 'grey-10',
212
212
  icon: 'sym_r_delete',
213
213
 
214
214
  // callback
@@ -2,11 +2,11 @@
2
2
  <div class="q-mb-xl qas-welcome text-left">
3
3
  <div class="items-center justify-between row">
4
4
  <div>
5
- <h3 class="text-grey-9 text-h3">
5
+ <h3 class="text-h3">
6
6
  {{ welcomeMessage }}<span v-if="firstName">, {{ firstName }}</span>
7
7
  </h3>
8
8
 
9
- <div class="text-caption text-grey-8">{{ currentDay }}</div>
9
+ <div class="text-caption">{{ currentDay }}</div>
10
10
  </div>
11
11
 
12
12
  <slot name="actions">
@@ -1,5 +1,6 @@
1
1
  body {
2
2
  background-color: $background-color;
3
+ color: $grey-8;
3
4
  }
4
5
 
5
6
  .material-symbols-rounded {
@@ -61,8 +61,8 @@
61
61
  color: $grey-6 !important;
62
62
  }
63
63
 
64
- &-grey-9 {
65
- color: $grey-9 !important;
64
+ &-grey-10 {
65
+ color: $grey-10 !important;
66
66
  }
67
67
 
68
68
  &-primary {
@@ -0,0 +1,12 @@
1
+ .q-checkbox {
2
+ &__label {
3
+ @include set-typography($body1);
4
+ }
5
+
6
+ &.disabled {
7
+ .q-checkbox__label,
8
+ .q-checkbox__inner {
9
+ color: $grey-6;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ .q-editor {
2
+ &__content {
3
+ @include set-typography($body1);
4
+
5
+ color: $grey-10;
6
+ }
7
+ }
@@ -1,4 +1,24 @@
1
- .q-field--outlined .q-field__control {
2
- background-color: white;
3
- border-radius: $generic-border-radius;
1
+ .q-field {
2
+ &__label,
3
+ &--dense &__label {
4
+ @include set-typography($body1);
5
+ }
6
+
7
+ &__native,
8
+ &__input,
9
+ &--dense &__native,
10
+ &--dense &__input {
11
+ @include set-typography($body1);
12
+
13
+ color: $grey-10;
14
+
15
+ &::placeholder {
16
+ color: $grey-6;
17
+ }
18
+ }
19
+
20
+ &--outlined .q-field__control {
21
+ background-color: white;
22
+ border-radius: $generic-border-radius;
23
+ }
4
24
  }
@@ -1,7 +1,10 @@
1
1
  @import './base';
2
2
  @import './button';
3
+ @import './checkbox';
4
+ @import './editor';
3
5
  @import './field';
4
6
  @import './item';
5
7
  @import './radio';
6
8
  @import './scrollbar';
7
9
  @import './tabs';
10
+ @import './toggle';
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  &--clickable:not(&--active) {
29
- color: $grey-9;
29
+ color: $grey-10;
30
30
  transition: color 300ms;
31
31
 
32
32
  &:not(&.q-router-link--active):hover {
@@ -1,3 +1,16 @@
1
- .q-radio__inner::before {
2
- color: $primary;
1
+ .q-radio {
2
+ &__label {
3
+ @include set-typography($body1);
4
+ }
5
+
6
+ &__inner::before {
7
+ color: $primary;
8
+ }
9
+
10
+ &.disabled {
11
+ .q-radio__label,
12
+ .q-radio__inner {
13
+ color: $grey-6;
14
+ }
15
+ }
3
16
  }
@@ -0,0 +1,11 @@
1
+ .q-toggle {
2
+ &__label {
3
+ @include set-typography($body1);
4
+ }
5
+
6
+ &.disabled {
7
+ .q-toggle__label {
8
+ color: $grey-6;
9
+ }
10
+ }
11
+ }
@@ -33,7 +33,7 @@ $h3: (
33
33
  );
34
34
 
35
35
  $h4: (
36
- size: 1.125rem,
36
+ size: 1.25rem,
37
37
  line-height: 140%,
38
38
  letter-spacing: 0,
39
39
  weight: 600,
@@ -137,3 +137,13 @@ $h-tags: (
137
137
  margin: map.get($value, 'margin');
138
138
  }
139
139
  }
140
+
141
+ // Defini as cores para os headings
142
+ h1, .text-h1,
143
+ h2, .text-h2,
144
+ h3, .text-h3,
145
+ h4, .text-h4,
146
+ h5, .text-h5,
147
+ h6, .text-h6 {
148
+ color: $grey-10;
149
+ }
package/src/index.scss CHANGED
@@ -9,7 +9,7 @@ $accent: var(--q-accent);
9
9
 
10
10
  // Asteroid variables
11
11
  :root {
12
- --qas-background-color: #fbfbfb;
12
+ --qas-background-color: rgba(15, 83, 175, 0.03);
13
13
  --qas-border-grey: #{$grey-4};
14
14
  --qas-generic-border-radius: 4px;
15
15
  --qas-generic-transition: 300ms;
@@ -25,6 +25,9 @@ $border-grey: var(--qas-border-grey);
25
25
  // variables
26
26
  @import './css/variables/index';
27
27
 
28
+ // mixins
29
+ @import './css/mixins/index';
30
+
28
31
  // components
29
32
  @import './css/components/index';
30
33
 
@@ -33,6 +36,3 @@ $border-grey: var(--qas-border-grey);
33
36
 
34
37
  // utils
35
38
  @import './css/utils/index';
36
-
37
- // mixins
38
- @import './css/mixins/index';
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="container error-component flex">
3
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">
4
+ <h2 :aria-label="ariaLabelCode" class="q-mb-sm text-h2" role="heading">
5
5
  {{ code }}
6
6
  </h2>
7
7
 
@@ -1,5 +1,5 @@
1
1
  export default {
2
- color: 'grey-9',
2
+ color: 'grey-10',
3
3
  progress: true,
4
4
  closeBtn: 'x',
5
5
  position: 'top',