@bildvitta/quasar-ui-asteroid 3.14.0-beta.0 → 3.14.0-beta.2

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 (51) hide show
  1. package/package.json +1 -1
  2. package/src/components/actions-menu/QasActionsMenu.vue +16 -14
  3. package/src/components/alert/QasAlert.vue +1 -1
  4. package/src/components/app-bar/QasAppBar.vue +5 -5
  5. package/src/components/app-menu/QasAppMenu.vue +8 -8
  6. package/src/components/app-menu/private/PvAppMenuDropdown.vue +1 -1
  7. package/src/components/app-user/QasAppUser.vue +10 -10
  8. package/src/components/avatar/QasAvatar.vue +2 -2
  9. package/src/components/breakline/QasBreakline.vue +5 -6
  10. package/src/components/btn-dropdown/QasBtnDropdown.vue +74 -95
  11. package/src/components/card/QasCard.vue +55 -73
  12. package/src/components/chart-view/QasChartView.vue +37 -9
  13. package/src/components/chart-view/QasChartView.yml +6 -0
  14. package/src/components/checkbox-group/QasCheckboxGroup.vue +81 -92
  15. package/src/components/copy/QasCopy.vue +20 -27
  16. package/src/components/date/QasDate.vue +316 -355
  17. package/src/components/date/QasDate.yml +0 -5
  18. package/src/components/date/enums/DateMaskOptions.js +6 -0
  19. package/src/components/date-time-input/QasDateTimeInput.vue +198 -209
  20. package/src/components/debugger/QasDebugger.vue +20 -12
  21. package/src/components/delete/QasDelete.vue +70 -80
  22. package/src/components/dialog/QasDialog.vue +7 -7
  23. package/src/components/dialog/composables/use-cancel.js +3 -3
  24. package/src/components/dialog/composables/use-dynamic-components.js +4 -4
  25. package/src/components/dialog/composables/use-ok.js +3 -3
  26. package/src/components/dialog-router/QasDialogRouter.vue +68 -67
  27. package/src/components/empty-result-text/QasEmptyResultText.vue +8 -10
  28. package/src/components/form-generator/QasFormGenerator.vue +2 -2
  29. package/src/components/gallery/QasGallery.vue +175 -196
  30. package/src/components/gallery/composables/use-delete.js +54 -0
  31. package/src/components/gallery/private/PvGalleryCarouselDialog.vue +48 -55
  32. package/src/components/gallery/private/PvGalleryDeleteDialog.vue +41 -50
  33. package/src/components/gallery-card/QasGalleryCard.vue +90 -103
  34. package/src/components/grid-generator/QasGridGenerator.vue +2 -2
  35. package/src/components/header-actions/QasHeaderActions.vue +35 -50
  36. package/src/components/header-actions/QasHeaderActions.yml +1 -1
  37. package/src/components/infinite-scroll/QasInfiniteScroll.vue +2 -2
  38. package/src/components/label/QasLabel.vue +42 -54
  39. package/src/components/list-items/QasListItems.vue +32 -41
  40. package/src/components/map/QasMap.vue +44 -46
  41. package/src/components/numeric-input/QasNumericInput.vue +2 -2
  42. package/src/components/page-header/QasPageHeader.vue +74 -87
  43. package/src/components/pagination/QasPagination.vue +21 -21
  44. package/src/components/select-list-dialog/QasSelectListDialog.vue +4 -2
  45. package/src/components/tabs-generator/QasTabsGenerator.vue +55 -63
  46. package/src/components/timeline/QasTimeline.vue +1 -1
  47. package/src/components/uploader/private/PvUploaderGalleryCard.vue +1 -1
  48. package/src/components/whatsapp-link/QasWhatsappLink.vue +34 -0
  49. package/src/components/whatsapp-link/QasWhatsappLink.yml +18 -0
  50. package/src/composables/private/use-generator.js +0 -8
  51. package/src/vue-plugin.js +7 -1
@@ -0,0 +1,34 @@
1
+ <template>
2
+ <qas-btn :href="whatsappLink" :icon="fabWhatsapp" target="_blank" />
3
+ </template>
4
+
5
+ <script setup>
6
+ import { computed } from 'vue'
7
+ import { fabWhatsapp } from '@quasar/extras/fontawesome-v5'
8
+
9
+ defineOptions({ name: 'QasWhatsappLink' })
10
+
11
+ const props = defineProps({
12
+ callingCode: {
13
+ type: String,
14
+ default: '55'
15
+ },
16
+
17
+ phone: {
18
+ type: String,
19
+ default: ''
20
+ },
21
+
22
+ text: {
23
+ type: String,
24
+ default: ''
25
+ }
26
+ })
27
+
28
+ const whatsappLink = computed(() => {
29
+ const formattedPhone = props.phone.replace(/[^a-zA-Z0-9]/g, '')
30
+ const formattedText = props.text ? props.text.replace(/\n/g, '%0a') : ''
31
+
32
+ return `https://wa.me/${props.callingCode}${formattedPhone}?text=${formattedText}`
33
+ })
34
+ </script>
@@ -0,0 +1,18 @@
1
+ type: component
2
+
3
+ meta:
4
+ desc: Componente de link para o Whatsapp.
5
+
6
+ props:
7
+ calling-code:
8
+ desc: Propriedade para passar o DDI.
9
+ default: 55
10
+ type: String
11
+
12
+ phone:
13
+ desc: Propriedade para passar o telefone.
14
+ type: String
15
+
16
+ text:
17
+ desc: Propriedade para passar o texto que será enviado na mensagem do Whatsapp.
18
+ type: String
@@ -3,14 +3,6 @@ import { Spacing } from '../../enums/Spacing'
3
3
 
4
4
  const IRREGULAR_CLASSES = ['col', 'col-auto', 'fit']
5
5
 
6
- /**
7
- * @constant
8
- * @type {{
9
- * columns: (string|Object|Array.<Object>),
10
- * fields: Object,
11
- * gutter: (string|Boolean)
12
- * }}
13
- */
14
6
  export const baseProps = {
15
7
  columns: {
16
8
  default: () => [],
package/src/vue-plugin.js CHANGED
@@ -61,9 +61,12 @@ import QasTransfer from './components/transfer/QasTransfer.vue'
61
61
  import QasTreeGenerator from './components/tree-generator/QasTreeGenerator.vue'
62
62
  import QasUploader from './components/uploader/QasUploader.vue'
63
63
  import QasWelcome from './components/welcome/QasWelcome.vue'
64
+ import QasWhatsappLink from './components/whatsapp-link/QasWhatsappLink.vue'
64
65
 
65
66
  import { Notify, Loading, Quasar, Dialog as QuasarDialog } from 'quasar'
66
67
 
68
+ import { getAction } from '@bildvitta/store-adapter'
69
+
67
70
  // Plugins
68
71
  import {
69
72
  Delete,
@@ -144,6 +147,7 @@ async function install (app) {
144
147
  app.component('QasTreeGenerator', QasTreeGenerator)
145
148
  app.component('QasUploader', QasUploader)
146
149
  app.component('QasWelcome', QasWelcome)
150
+ app.component('QasWhatsappLink', QasWhatsappLink)
147
151
 
148
152
  app.use(Quasar, { plugins: { Notify, Loading, QuasarDialog, Dialog } })
149
153
 
@@ -156,7 +160,9 @@ async function install (app) {
156
160
  }
157
161
 
158
162
  app.provide('qas', {
159
- delete: params => Delete.call(app.config.globalProperties, params)
163
+ delete: params => Delete.call(app.config.globalProperties, params),
164
+
165
+ getAction: params => getAction.call(app.config.globalProperties, params)
160
166
  })
161
167
 
162
168
  app.directive(Test.name, Test)