@bildvitta/quasar-ui-asteroid 3.0.0-beta.9 → 3.0.0
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/QasAppBar.json +0 -4
- package/dist/api/QasBtn.json +2 -1
- package/dist/api/QasCard.json +13 -9
- package/dist/api/QasDateTimeInput.json +12 -12
- package/dist/api/QasDialog.json +6 -2
- package/dist/api/QasFilters.json +4 -4
- package/dist/api/QasFormGenerator.json +33 -2
- package/dist/api/QasFormView.json +26 -9
- package/dist/api/QasGridGenerator.json +5 -4
- package/dist/api/QasInput.json +1 -1
- package/dist/api/QasListItems.json +18 -17
- package/dist/api/QasListView.json +21 -7
- package/dist/api/QasNestedFields.json +13 -3
- package/dist/api/QasNumericInput.json +10 -10
- package/dist/api/QasPasswordInput.json +1 -1
- package/dist/api/QasSearchBox.json +80 -1
- package/dist/api/QasSelect.json +79 -6
- package/dist/api/QasSelectList.json +16 -14
- package/dist/api/QasSignaturePad.json +1 -1
- package/dist/api/QasSingleView.json +13 -4
- package/dist/api/QasTabsGenerator.json +5 -2
- package/dist/api/QasUploader.json +5 -0
- package/dist/asteroid.cjs.css +1 -1
- package/dist/asteroid.cjs.js +1463 -663
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +1466 -666
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +1466 -667
- package/dist/asteroid.umd.min.js +2 -2
- package/dist/vetur/asteroid-attributes.json +162 -94
- package/dist/vetur/asteroid-tags.json +54 -37
- package/package.json +1 -1
- package/src/components/actions-menu/QasActionsMenu.vue +2 -8
- package/src/components/app-bar/QasAppBar.vue +16 -12
- package/src/components/app-bar/QasAppBar.yml +0 -4
- package/src/components/avatar/QasAvatar.vue +0 -4
- package/src/components/btn/QasBtn.vue +5 -8
- package/src/components/btn/QasBtn.yml +2 -1
- package/src/components/card/QasCard.vue +18 -9
- package/src/components/card/QasCard.yml +13 -9
- package/src/components/date-time-input/QasDateTimeInput.vue +39 -41
- package/src/components/date-time-input/QasDateTimeInput.yml +11 -12
- package/src/components/delete/QasDelete.vue +15 -1
- package/src/components/dialog/QasDialog.vue +26 -3
- package/src/components/dialog/QasDialog.yml +6 -3
- package/src/components/dialog-router/QasDialogRouter.vue +1 -1
- package/src/components/field/QasField.vue +15 -14
- package/src/components/filters/QasFilters.vue +27 -10
- package/src/components/filters/QasFilters.yml +4 -4
- package/src/components/form-generator/QasFormGenerator.vue +87 -12
- package/src/components/form-generator/QasFormGenerator.yml +16 -2
- package/src/components/form-view/QasFormView.vue +99 -39
- package/src/components/form-view/QasFormView.yml +22 -9
- package/src/components/grid-generator/QasGridGenerator.vue +23 -7
- package/src/components/grid-generator/QasGridGenerator.yml +5 -4
- package/src/components/input/QasInput.vue +37 -21
- package/src/components/input/QasInput.yml +1 -1
- package/src/components/layout/QasLayout.vue +4 -0
- package/src/components/list-items/QasListItems.vue +15 -23
- package/src/components/list-items/QasListItems.yml +14 -15
- package/src/components/list-view/QasListView.vue +45 -24
- package/src/components/list-view/QasListView.yml +19 -7
- package/src/components/map/QasMap.vue +5 -5
- package/src/components/nested-fields/QasNestedFields.vue +29 -21
- package/src/components/nested-fields/QasNestedFields.yml +9 -3
- package/src/components/numeric-input/QasNumericInput.vue +14 -14
- package/src/components/numeric-input/QasNumericInput.yml +10 -10
- package/src/components/page-header/QasPageHeader.vue +14 -11
- package/src/components/password-input/QasPasswordInput.vue +17 -16
- package/src/components/password-input/QasPasswordInput.yml +1 -1
- package/src/components/profile/QasProfile.vue +1 -1
- package/src/components/search-box/QasSearchBox.vue +137 -36
- package/src/components/search-box/QasSearchBox.yml +66 -1
- package/src/components/select/QasSelect.vue +62 -46
- package/src/components/select/QasSelect.yml +63 -6
- package/src/components/select-list/QasSelectList.vue +11 -27
- package/src/components/select-list/QasSelectList.yml +13 -14
- package/src/components/signature-pad/QasSignaturePad.yml +1 -1
- package/src/components/signature-uploader/QasSignatureUploader.vue +7 -5
- package/src/components/single-view/QasSingleView.vue +22 -6
- package/src/components/single-view/QasSingleView.yml +11 -4
- package/src/components/table-generator/QasTableGenerator.vue +11 -1
- 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 +1 -1
- package/src/components/uploader/QasUploader.vue +62 -15
- package/src/components/uploader/QasUploader.yml +5 -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/mixins/generator.js +10 -2
- package/src/mixins/index.js +2 -0
- package/src/mixins/search-filter.js +227 -0
- package/src/mixins/view.js +32 -12
- 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/vue-plugin.js +6 -3
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
},
|
|
28
28
|
"qas-app-bar": {
|
|
29
29
|
"attributes": [
|
|
30
|
-
"is-auth",
|
|
31
30
|
"notifications",
|
|
32
31
|
"title",
|
|
33
32
|
"user"
|
|
@@ -72,17 +71,18 @@
|
|
|
72
71
|
},
|
|
73
72
|
"qas-btn": {
|
|
74
73
|
"attributes": [
|
|
75
|
-
"
|
|
74
|
+
"use-label-on-small-screen",
|
|
76
75
|
"label"
|
|
77
76
|
],
|
|
78
77
|
"description": "O mesmo botão do Quasar (QBtn), mas com o nosso estilo, tem acesso a todas propriedades do componente do quasar. Tem a função de criar gatilhos para ações. Eles podem ser utilizados isoladamente ou como parte de outros componentes de padrões maiores, como formulários, caixas de diálogo e feedbacks."
|
|
79
78
|
},
|
|
80
79
|
"qas-card": {
|
|
81
80
|
"attributes": [
|
|
82
|
-
"bg-image-position",
|
|
83
|
-
"form-mode",
|
|
84
81
|
"gutter",
|
|
85
82
|
"images",
|
|
83
|
+
"image-position",
|
|
84
|
+
"outlined",
|
|
85
|
+
"unelevated",
|
|
86
86
|
"use-header"
|
|
87
87
|
],
|
|
88
88
|
"description": "Componente de card."
|
|
@@ -106,13 +106,13 @@
|
|
|
106
106
|
"qas-date-time-input": {
|
|
107
107
|
"attributes": [
|
|
108
108
|
"date-mask",
|
|
109
|
-
"date-only",
|
|
110
109
|
"date-props",
|
|
111
|
-
"gmt",
|
|
112
110
|
"model-value",
|
|
113
111
|
"time-mask",
|
|
114
|
-
"time-
|
|
115
|
-
"time-
|
|
112
|
+
"time-props",
|
|
113
|
+
"use-time-only",
|
|
114
|
+
"use-date-only",
|
|
115
|
+
"use-iso"
|
|
116
116
|
],
|
|
117
117
|
"description": "Componente de input data e hora, implementa o \"QasInput\"."
|
|
118
118
|
},
|
|
@@ -149,8 +149,9 @@
|
|
|
149
149
|
"model-value",
|
|
150
150
|
"ok",
|
|
151
151
|
"persistent",
|
|
152
|
-
"use-close-
|
|
153
|
-
"use-form"
|
|
152
|
+
"use-close-button",
|
|
153
|
+
"use-form",
|
|
154
|
+
"use-validation-at-once"
|
|
154
155
|
],
|
|
155
156
|
"description": "Componente de dialog."
|
|
156
157
|
},
|
|
@@ -165,11 +166,11 @@
|
|
|
165
166
|
"qas-filters": {
|
|
166
167
|
"attributes": [
|
|
167
168
|
"entity",
|
|
168
|
-
"force-refetch",
|
|
169
169
|
"search-placeholder",
|
|
170
170
|
"url",
|
|
171
171
|
"use-badges",
|
|
172
172
|
"use-filter-button",
|
|
173
|
+
"use-force-refetch",
|
|
173
174
|
"use-search-on-type",
|
|
174
175
|
"use-search"
|
|
175
176
|
],
|
|
@@ -181,6 +182,8 @@
|
|
|
181
182
|
"error",
|
|
182
183
|
"fields-props",
|
|
183
184
|
"fields",
|
|
185
|
+
"fieldset",
|
|
186
|
+
"fieldset-gutter",
|
|
184
187
|
"gutter",
|
|
185
188
|
"model-value",
|
|
186
189
|
"order"
|
|
@@ -189,10 +192,11 @@
|
|
|
189
192
|
},
|
|
190
193
|
"qas-form-view": {
|
|
191
194
|
"attributes": [
|
|
195
|
+
"before-fetch",
|
|
196
|
+
"before-submit",
|
|
192
197
|
"cancel-button-label",
|
|
193
198
|
"cancel-route",
|
|
194
199
|
"custom-id",
|
|
195
|
-
"dialog",
|
|
196
200
|
"disable",
|
|
197
201
|
"entity",
|
|
198
202
|
"errors",
|
|
@@ -203,12 +207,13 @@
|
|
|
203
207
|
"mode",
|
|
204
208
|
"model-value",
|
|
205
209
|
"route",
|
|
206
|
-
"show-dialog-on-unsaved-changes",
|
|
207
210
|
"submit-button-label",
|
|
208
211
|
"submitting",
|
|
209
212
|
"url",
|
|
210
213
|
"use-actions",
|
|
214
|
+
"use-boundary",
|
|
211
215
|
"use-cancel-button",
|
|
216
|
+
"use-dialog-on-unsaved-changes",
|
|
212
217
|
"use-submit-button"
|
|
213
218
|
],
|
|
214
219
|
"description": "Componente para C.R.U.D. responsável pela pela criação (Create) e edição (Update)."
|
|
@@ -234,8 +239,8 @@
|
|
|
234
239
|
"fields",
|
|
235
240
|
"gutter",
|
|
236
241
|
"header-class",
|
|
237
|
-
"
|
|
238
|
-
"result"
|
|
242
|
+
"result",
|
|
243
|
+
"use-empty-result"
|
|
239
244
|
],
|
|
240
245
|
"description": "Componente para criação de textos dinâmicos."
|
|
241
246
|
},
|
|
@@ -245,7 +250,7 @@
|
|
|
245
250
|
"error",
|
|
246
251
|
"model-value",
|
|
247
252
|
"outlined",
|
|
248
|
-
"remove-error-on-type",
|
|
253
|
+
"use-remove-error-on-type",
|
|
249
254
|
"unmasked-value"
|
|
250
255
|
],
|
|
251
256
|
"description": "Componente para input que implementa o \"QInput\" repassando propriedades, slots e eventos."
|
|
@@ -270,17 +275,14 @@
|
|
|
270
275
|
"attributes": [
|
|
271
276
|
"icon-props",
|
|
272
277
|
"list",
|
|
273
|
-
"
|
|
274
|
-
"redirect-on-icon",
|
|
275
|
-
"to",
|
|
278
|
+
"use-clickable-item",
|
|
276
279
|
"use-section-actions"
|
|
277
280
|
],
|
|
278
281
|
"description": "Componente para listagem."
|
|
279
282
|
},
|
|
280
283
|
"qas-list-view": {
|
|
281
284
|
"attributes": [
|
|
282
|
-
"
|
|
283
|
-
"disable-refresh",
|
|
285
|
+
"before-fetch",
|
|
284
286
|
"entity",
|
|
285
287
|
"errors",
|
|
286
288
|
"fetching",
|
|
@@ -289,7 +291,10 @@
|
|
|
289
291
|
"metadata",
|
|
290
292
|
"results",
|
|
291
293
|
"url",
|
|
292
|
-
"use-
|
|
294
|
+
"use-boundary",
|
|
295
|
+
"use-filter",
|
|
296
|
+
"use-refresh",
|
|
297
|
+
"use-results-area-only"
|
|
293
298
|
],
|
|
294
299
|
"description": "Componente para C.R.U.D. responsável pela parte de listagem (Read)."
|
|
295
300
|
},
|
|
@@ -305,14 +310,15 @@
|
|
|
305
310
|
"qas-nested-fields": {
|
|
306
311
|
"attributes": [
|
|
307
312
|
"add-input-label",
|
|
308
|
-
"
|
|
309
|
-
"
|
|
313
|
+
"button-destroy-props",
|
|
314
|
+
"button-duplicate-props",
|
|
310
315
|
"destroy-key",
|
|
311
316
|
"errors",
|
|
312
317
|
"field",
|
|
313
318
|
"fields-props",
|
|
314
319
|
"form-columns",
|
|
315
320
|
"form-gutter",
|
|
321
|
+
"identifier-item-key",
|
|
316
322
|
"model-value",
|
|
317
323
|
"row-label",
|
|
318
324
|
"row-object",
|
|
@@ -328,13 +334,13 @@
|
|
|
328
334
|
},
|
|
329
335
|
"qas-numeric-input": {
|
|
330
336
|
"attributes": [
|
|
331
|
-
"allow-negative",
|
|
332
|
-
"allow-positive",
|
|
333
337
|
"autonumeric-props",
|
|
334
338
|
"decimal-places",
|
|
335
339
|
"mode",
|
|
336
340
|
"model-value",
|
|
337
|
-
"preset"
|
|
341
|
+
"preset",
|
|
342
|
+
"use-negative",
|
|
343
|
+
"use-positive"
|
|
338
344
|
],
|
|
339
345
|
"description": "Componente de input para decimal, inteiro, dinheiro e porcentagem."
|
|
340
346
|
},
|
|
@@ -401,13 +407,19 @@
|
|
|
401
407
|
"qas-search-box": {
|
|
402
408
|
"attributes": [
|
|
403
409
|
"empty-list-height",
|
|
410
|
+
"empty-result-text",
|
|
411
|
+
"entity",
|
|
412
|
+
"fetching",
|
|
404
413
|
"fuse-options",
|
|
405
414
|
"height",
|
|
415
|
+
"lazy-loading-props",
|
|
406
416
|
"list",
|
|
407
417
|
"model-value",
|
|
418
|
+
"name",
|
|
408
419
|
"placeholder",
|
|
409
420
|
"results",
|
|
410
|
-
"use-empty-slot"
|
|
421
|
+
"use-empty-slot",
|
|
422
|
+
"use-lazy-loading"
|
|
411
423
|
],
|
|
412
424
|
"description": "Componente para pesquisa utilizando Fuse.js."
|
|
413
425
|
},
|
|
@@ -417,21 +429,24 @@
|
|
|
417
429
|
"fuse-options",
|
|
418
430
|
"list",
|
|
419
431
|
"model-value",
|
|
420
|
-
"
|
|
421
|
-
"redirect-key",
|
|
422
|
-
"to"
|
|
432
|
+
"use-clickable-label"
|
|
423
433
|
],
|
|
424
434
|
"description": "Componente para selecionar dentro de uma lista com pesquisa utilizando o `QasSearchBox`."
|
|
425
435
|
},
|
|
426
436
|
"qas-select": {
|
|
427
437
|
"attributes": [
|
|
438
|
+
"entity",
|
|
439
|
+
"fetching",
|
|
428
440
|
"fuse-options",
|
|
429
441
|
"label-key",
|
|
442
|
+
"lazy-loading-props",
|
|
430
443
|
"model-value",
|
|
444
|
+
"name",
|
|
431
445
|
"no-option-label",
|
|
432
446
|
"options",
|
|
433
|
-
"
|
|
434
|
-
"
|
|
447
|
+
"value-key",
|
|
448
|
+
"use-search",
|
|
449
|
+
"use-lazy-loading"
|
|
435
450
|
],
|
|
436
451
|
"description": "Componente para select que implementa o \"QSelect\" repassando propriedades, slots e eventos."
|
|
437
452
|
},
|
|
@@ -439,7 +454,7 @@
|
|
|
439
454
|
"attributes": [
|
|
440
455
|
"empty",
|
|
441
456
|
"height",
|
|
442
|
-
"
|
|
457
|
+
"signature-options",
|
|
443
458
|
"type"
|
|
444
459
|
],
|
|
445
460
|
"description": "Componente para assinatura que gera uma imagem."
|
|
@@ -457,15 +472,16 @@
|
|
|
457
472
|
},
|
|
458
473
|
"qas-single-view": {
|
|
459
474
|
"attributes": [
|
|
475
|
+
"before-fetch",
|
|
460
476
|
"custom-id",
|
|
461
|
-
"dialog",
|
|
462
477
|
"entity",
|
|
463
478
|
"errors",
|
|
464
479
|
"fields",
|
|
465
480
|
"fetching",
|
|
466
481
|
"metadata",
|
|
467
482
|
"result",
|
|
468
|
-
"url"
|
|
483
|
+
"url",
|
|
484
|
+
"use-boundary"
|
|
469
485
|
],
|
|
470
486
|
"description": "Componente para C.R.U.D. responsável pela visualização (Read) ou conhecido também como \"show\"."
|
|
471
487
|
},
|
|
@@ -538,7 +554,8 @@
|
|
|
538
554
|
"readonly",
|
|
539
555
|
"size-limit",
|
|
540
556
|
"use-resize",
|
|
541
|
-
"uploading"
|
|
557
|
+
"uploading",
|
|
558
|
+
"useObjectModel"
|
|
542
559
|
],
|
|
543
560
|
"description": "Componente para upload com auto redimensionamento que implementa o \"QField\" e \"QUploader\"."
|
|
544
561
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<qas-btn class="qas-actions-menu" color="primary"
|
|
2
|
+
<qas-btn class="qas-actions-menu" color="primary" :icon="icon" :label="label" outline padding="md" use-label-on-small-screen>
|
|
3
3
|
<q-menu class="qas-actions-menu__menu">
|
|
4
4
|
<q-list class="qas-actions-menu__list" separator>
|
|
5
5
|
<slot v-for="(item, key) in list" :item="item" :name="key">
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</q-item>
|
|
14
14
|
</slot>
|
|
15
15
|
|
|
16
|
-
<qas-delete v-if="hasDelete" v-bind="deleteProps" class="text-negative" clickable tag="q-item"
|
|
16
|
+
<qas-delete v-if="hasDelete" v-bind="deleteProps" class="text-negative" clickable tag="q-item">
|
|
17
17
|
<q-item-section>
|
|
18
18
|
<div class="flex items-center justify-center q-gutter-x-sm">
|
|
19
19
|
<q-icon :name="deleteIcon" size="sm" />
|
|
@@ -68,8 +68,6 @@ export default {
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
|
|
71
|
-
emits: ['delete-success'],
|
|
72
|
-
|
|
73
71
|
computed: {
|
|
74
72
|
hasDelete () {
|
|
75
73
|
return !!Object.keys(this.deleteProps).length
|
|
@@ -82,10 +80,6 @@ export default {
|
|
|
82
80
|
const { handler, ...filtered } = item
|
|
83
81
|
item.handler(filtered)
|
|
84
82
|
}
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
onDeleteSuccess () {
|
|
88
|
-
this.$emit('delete-success')
|
|
89
83
|
}
|
|
90
84
|
}
|
|
91
85
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<q-toolbar class="qas-app-bar__toolbar" color="bg-white">
|
|
4
4
|
<q-ajax-bar color="white" position="top" size="2px" />
|
|
5
5
|
|
|
6
|
-
<
|
|
6
|
+
<qas-btn color="grey-7" dense flat icon="o_menu" round @click="toggleMenuDrawer" />
|
|
7
7
|
|
|
8
8
|
<q-toolbar-title class="flex">
|
|
9
9
|
<div class="cursor-pointer" @click="goToRoot">
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
</q-toolbar-title>
|
|
15
15
|
|
|
16
16
|
<div v-if="hasNotifications" class="q-mr-md">
|
|
17
|
-
<
|
|
17
|
+
<qas-btn class="q-mr-md" dense icon="o_notifications" round unelevated>
|
|
18
18
|
<q-badge v-if="notifications" color="red" floating>{{ notifications.count }}</q-badge>
|
|
19
|
-
</
|
|
19
|
+
</qas-btn>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
22
|
<div class="items-center no-wrap q-gutter-md row">
|
|
23
23
|
<slot name="tools" />
|
|
24
24
|
|
|
25
|
-
<div v-if="
|
|
26
|
-
<qas-avatar class="rounded-borders-left" color="white" dark :image="user.photo" rounded size="42px" text-color="primary" :title="
|
|
25
|
+
<div v-if="hasUser" class="cursor-pointer items-center q-mr-sm qas-app-bar__user rounded-borders row text-grey-9" :title="userName">
|
|
26
|
+
<qas-avatar class="rounded-borders-left" color="white" dark :image="user.photo" rounded size="42px" text-color="primary" :title="userName" />
|
|
27
27
|
|
|
28
28
|
<div class="q-px-sm qas-app-bar__user-data qs-lh-lg text-caption">
|
|
29
|
-
<div class="ellipsis">{{
|
|
29
|
+
<div class="ellipsis">{{ userName }}</div>
|
|
30
30
|
<div class="ellipsis text-bold">{{ user.email }}</div>
|
|
31
31
|
</div>
|
|
32
32
|
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
<div class="qas-app-bar__user-menu">
|
|
35
35
|
<div class="q-pa-lg text-center">
|
|
36
36
|
<button class="unset" @click="goToProfile">
|
|
37
|
-
<qas-avatar :image="user.photo" size="145px" :title="
|
|
37
|
+
<qas-avatar :image="user.photo" size="145px" :title="userName" />
|
|
38
38
|
</button>
|
|
39
39
|
|
|
40
|
-
<div class="ellipsis q-mt-lg qs-lh-sm text-bold text-subtitle1">{{
|
|
40
|
+
<div class="ellipsis q-mt-lg qs-lh-sm text-bold text-subtitle1">{{ userName }}</div>
|
|
41
41
|
<div class="ellipsis q-mt-xs text-caption">{{ user.email }}</div>
|
|
42
42
|
|
|
43
43
|
<div class="q-mt-sm">
|
|
@@ -76,10 +76,6 @@ export default {
|
|
|
76
76
|
type: String
|
|
77
77
|
},
|
|
78
78
|
|
|
79
|
-
isAuth: {
|
|
80
|
-
type: Boolean
|
|
81
|
-
},
|
|
82
|
-
|
|
83
79
|
title: {
|
|
84
80
|
type: String,
|
|
85
81
|
default: ''
|
|
@@ -134,6 +130,14 @@ export default {
|
|
|
134
130
|
|
|
135
131
|
showTitle () {
|
|
136
132
|
return this.title && !this.brand
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
hasUser () {
|
|
136
|
+
return !!Object.keys(this.user).length
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
userName () {
|
|
140
|
+
return this.user.name || this.user.givenName
|
|
137
141
|
}
|
|
138
142
|
},
|
|
139
143
|
|
|
@@ -54,20 +54,16 @@ export default {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
const contrastColor = this.color ? this.color : this.contrastColor
|
|
57
|
-
// const contrastColor = this.textColor ? this.textColor : this.contrastColor
|
|
58
57
|
|
|
59
58
|
return [
|
|
60
59
|
this.dark
|
|
61
60
|
? `bg-${this.textColor} text-${contrastColor}`
|
|
62
61
|
: `bg-${contrastColor} text-${this.textColor}`
|
|
63
|
-
// ? `bg-${this.color} text-${contrastColor}`
|
|
64
|
-
// : `bg-${contrastColor} text-${this.color}`
|
|
65
62
|
]
|
|
66
63
|
},
|
|
67
64
|
|
|
68
65
|
contrastColor () {
|
|
69
66
|
return `${this.textColor}-contrast`
|
|
70
|
-
// return `${this.color}-contrast`
|
|
71
67
|
},
|
|
72
68
|
|
|
73
69
|
firstLetter () {
|
|
@@ -13,13 +13,14 @@ export default {
|
|
|
13
13
|
name: 'QasBtn',
|
|
14
14
|
|
|
15
15
|
props: {
|
|
16
|
-
|
|
16
|
+
useLabelOnSmallScreen: {
|
|
17
|
+
default: true,
|
|
17
18
|
type: Boolean
|
|
18
19
|
},
|
|
19
20
|
|
|
20
21
|
label: {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
default: '',
|
|
23
|
+
type: String
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
|
|
@@ -31,12 +32,8 @@ export default {
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
|
|
34
|
-
hasLabel () {
|
|
35
|
-
return !!this.label
|
|
36
|
-
},
|
|
37
|
-
|
|
38
35
|
showLabel () {
|
|
39
|
-
return this.
|
|
36
|
+
return this.useLabelOnSmallScreen || !this.$qas.screen.isSmall
|
|
40
37
|
},
|
|
41
38
|
|
|
42
39
|
slots () {
|
|
@@ -7,8 +7,9 @@ meta:
|
|
|
7
7
|
desc: O mesmo botão do Quasar (QBtn), mas com o nosso estilo, tem acesso a todas propriedades do componente do quasar. Tem a função de criar gatilhos para ações. Eles podem ser utilizados isoladamente ou como parte de outros componentes de padrões maiores, como formulários, caixas de diálogo e feedbacks.
|
|
8
8
|
|
|
9
9
|
props:
|
|
10
|
-
|
|
10
|
+
use-label-on-small-screen:
|
|
11
11
|
desc: Esconde o rótulo (label) do botão quando o tamanho da tela for pequeno (esta propriedade só funciona se o "rotulo") for passado via propriedade "label".
|
|
12
|
+
default: true
|
|
12
13
|
type: Boolean
|
|
13
14
|
|
|
14
15
|
label:
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<qas-btn color="white" dense flat :icon="getNavigationIcon(active, btnProps)" round size="sm" @click="onClick" />
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
|
-
<q-carousel-slide v-for="(item, index) in imagesList" :key="index" class="bg-no-repeat" :class="
|
|
11
|
+
<q-carousel-slide v-for="(item, index) in imagesList" :key="index" class="bg-no-repeat" :class="imagePositionClass" :img-src="item" :name="index" />
|
|
12
12
|
</q-carousel>
|
|
13
13
|
|
|
14
14
|
<div class="absolute-top flex items-center q-pa-md">
|
|
@@ -35,15 +35,11 @@ export default {
|
|
|
35
35
|
name: 'QasCard',
|
|
36
36
|
|
|
37
37
|
props: {
|
|
38
|
-
|
|
38
|
+
imagePosition: {
|
|
39
39
|
type: String,
|
|
40
40
|
default: 'center'
|
|
41
41
|
},
|
|
42
42
|
|
|
43
|
-
formMode: {
|
|
44
|
-
type: Boolean
|
|
45
|
-
},
|
|
46
|
-
|
|
47
43
|
gutter: {
|
|
48
44
|
type: String,
|
|
49
45
|
default: 'sm'
|
|
@@ -54,6 +50,14 @@ export default {
|
|
|
54
50
|
type: Array
|
|
55
51
|
},
|
|
56
52
|
|
|
53
|
+
outlined: {
|
|
54
|
+
type: Boolean
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
unelevated: {
|
|
58
|
+
type: Boolean
|
|
59
|
+
},
|
|
60
|
+
|
|
57
61
|
useHeader: {
|
|
58
62
|
type: Boolean
|
|
59
63
|
}
|
|
@@ -66,12 +70,17 @@ export default {
|
|
|
66
70
|
},
|
|
67
71
|
|
|
68
72
|
computed: {
|
|
69
|
-
|
|
70
|
-
return `bg-position-${this.
|
|
73
|
+
imagePositionClass () {
|
|
74
|
+
return `bg-position-${this.imagePosition}`
|
|
71
75
|
},
|
|
72
76
|
|
|
73
77
|
cardClasses () {
|
|
74
|
-
return
|
|
78
|
+
return {
|
|
79
|
+
'shadow-14': !this.unelevated,
|
|
80
|
+
'border-primary': this.outlined,
|
|
81
|
+
'no-shadow': this.outlined,
|
|
82
|
+
'bg-white': this.outlined
|
|
83
|
+
}
|
|
75
84
|
},
|
|
76
85
|
|
|
77
86
|
gutterClass () {
|
|
@@ -4,15 +4,6 @@ meta:
|
|
|
4
4
|
desc: Componente de card.
|
|
5
5
|
|
|
6
6
|
props:
|
|
7
|
-
bg-image-position:
|
|
8
|
-
desc: Posição da imagem "background-position".
|
|
9
|
-
default: center
|
|
10
|
-
type: String
|
|
11
|
-
|
|
12
|
-
form-mode:
|
|
13
|
-
desc: Modo de formulário, altera o estilo quando está em uma pagina de formulário.
|
|
14
|
-
type: Boolean
|
|
15
|
-
|
|
16
7
|
gutter:
|
|
17
8
|
desc: Espaçamento dentro <q-card-section /> onde fica o slot "default".
|
|
18
9
|
default: sm
|
|
@@ -24,6 +15,19 @@ props:
|
|
|
24
15
|
default: []
|
|
25
16
|
type: Array
|
|
26
17
|
|
|
18
|
+
image-position:
|
|
19
|
+
desc: Posição da imagem "background-position".
|
|
20
|
+
default: center
|
|
21
|
+
type: String
|
|
22
|
+
|
|
23
|
+
outlined:
|
|
24
|
+
desc: Insere uma borda sólida em volta do componente.
|
|
25
|
+
type: Boolean
|
|
26
|
+
|
|
27
|
+
unelevated:
|
|
28
|
+
desc: Remove a sombra do componente.
|
|
29
|
+
type: Boolean
|
|
30
|
+
|
|
27
31
|
use-header:
|
|
28
32
|
desc: Controla se vai ter ou não o header com carousel.
|
|
29
33
|
type: Boolean
|