@bildvitta/quasar-ui-asteroid 3.0.0-beta.7 → 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 +43 -15
- 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 +85 -3
- package/dist/api/QasSelect.json +81 -14
- 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 +1522 -706
- package/dist/asteroid.cjs.min.js +2 -2
- package/dist/asteroid.esm.css +1 -1
- package/dist/asteroid.esm.js +1525 -709
- package/dist/asteroid.esm.min.js +2 -2
- package/dist/asteroid.umd.css +1 -1
- package/dist/asteroid.umd.js +1525 -710
- package/dist/asteroid.umd.min.js +2 -2
- package/dist/vetur/asteroid-attributes.json +176 -100
- package/dist/vetur/asteroid-tags.json +60 -41
- 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 +138 -56
- package/src/components/form-view/QasFormView.yml +39 -15
- 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 +138 -42
- package/src/components/search-box/QasSearchBox.yml +69 -2
- package/src/components/select/QasSelect.vue +63 -53
- package/src/components/select/QasSelect.yml +64 -13
- 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 +13 -2
- 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 +35 -13
- package/src/pages/Forbidden.vue +3 -1
- package/src/pages/NotFound.vue +3 -1
- package/src/pages/ServerError.vue +3 -1
- 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/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": [
|
|
192
|
-
"
|
|
195
|
+
"before-fetch",
|
|
196
|
+
"before-submit",
|
|
197
|
+
"cancel-button-label",
|
|
193
198
|
"cancel-route",
|
|
194
199
|
"custom-id",
|
|
195
|
-
"dialog",
|
|
196
200
|
"disable",
|
|
197
201
|
"entity",
|
|
198
202
|
"errors",
|
|
@@ -202,12 +206,15 @@
|
|
|
202
206
|
"metadata",
|
|
203
207
|
"mode",
|
|
204
208
|
"model-value",
|
|
205
|
-
"read-only",
|
|
206
209
|
"route",
|
|
207
|
-
"
|
|
208
|
-
"submit-button",
|
|
210
|
+
"submit-button-label",
|
|
209
211
|
"submitting",
|
|
210
|
-
"url"
|
|
212
|
+
"url",
|
|
213
|
+
"use-actions",
|
|
214
|
+
"use-boundary",
|
|
215
|
+
"use-cancel-button",
|
|
216
|
+
"use-dialog-on-unsaved-changes",
|
|
217
|
+
"use-submit-button"
|
|
211
218
|
],
|
|
212
219
|
"description": "Componente para C.R.U.D. responsável pela pela criação (Create) e edição (Update)."
|
|
213
220
|
},
|
|
@@ -232,8 +239,8 @@
|
|
|
232
239
|
"fields",
|
|
233
240
|
"gutter",
|
|
234
241
|
"header-class",
|
|
235
|
-
"
|
|
236
|
-
"result"
|
|
242
|
+
"result",
|
|
243
|
+
"use-empty-result"
|
|
237
244
|
],
|
|
238
245
|
"description": "Componente para criação de textos dinâmicos."
|
|
239
246
|
},
|
|
@@ -243,7 +250,7 @@
|
|
|
243
250
|
"error",
|
|
244
251
|
"model-value",
|
|
245
252
|
"outlined",
|
|
246
|
-
"remove-error-on-type",
|
|
253
|
+
"use-remove-error-on-type",
|
|
247
254
|
"unmasked-value"
|
|
248
255
|
],
|
|
249
256
|
"description": "Componente para input que implementa o \"QInput\" repassando propriedades, slots e eventos."
|
|
@@ -268,17 +275,14 @@
|
|
|
268
275
|
"attributes": [
|
|
269
276
|
"icon-props",
|
|
270
277
|
"list",
|
|
271
|
-
"
|
|
272
|
-
"redirect-on-icon",
|
|
273
|
-
"to",
|
|
278
|
+
"use-clickable-item",
|
|
274
279
|
"use-section-actions"
|
|
275
280
|
],
|
|
276
281
|
"description": "Componente para listagem."
|
|
277
282
|
},
|
|
278
283
|
"qas-list-view": {
|
|
279
284
|
"attributes": [
|
|
280
|
-
"
|
|
281
|
-
"disable-refresh",
|
|
285
|
+
"before-fetch",
|
|
282
286
|
"entity",
|
|
283
287
|
"errors",
|
|
284
288
|
"fetching",
|
|
@@ -287,7 +291,10 @@
|
|
|
287
291
|
"metadata",
|
|
288
292
|
"results",
|
|
289
293
|
"url",
|
|
290
|
-
"use-
|
|
294
|
+
"use-boundary",
|
|
295
|
+
"use-filter",
|
|
296
|
+
"use-refresh",
|
|
297
|
+
"use-results-area-only"
|
|
291
298
|
],
|
|
292
299
|
"description": "Componente para C.R.U.D. responsável pela parte de listagem (Read)."
|
|
293
300
|
},
|
|
@@ -303,14 +310,15 @@
|
|
|
303
310
|
"qas-nested-fields": {
|
|
304
311
|
"attributes": [
|
|
305
312
|
"add-input-label",
|
|
306
|
-
"
|
|
307
|
-
"
|
|
313
|
+
"button-destroy-props",
|
|
314
|
+
"button-duplicate-props",
|
|
308
315
|
"destroy-key",
|
|
309
316
|
"errors",
|
|
310
317
|
"field",
|
|
311
318
|
"fields-props",
|
|
312
319
|
"form-columns",
|
|
313
320
|
"form-gutter",
|
|
321
|
+
"identifier-item-key",
|
|
314
322
|
"model-value",
|
|
315
323
|
"row-label",
|
|
316
324
|
"row-object",
|
|
@@ -326,13 +334,13 @@
|
|
|
326
334
|
},
|
|
327
335
|
"qas-numeric-input": {
|
|
328
336
|
"attributes": [
|
|
329
|
-
"allow-negative",
|
|
330
|
-
"allow-positive",
|
|
331
337
|
"autonumeric-props",
|
|
332
338
|
"decimal-places",
|
|
333
339
|
"mode",
|
|
334
340
|
"model-value",
|
|
335
|
-
"preset"
|
|
341
|
+
"preset",
|
|
342
|
+
"use-negative",
|
|
343
|
+
"use-positive"
|
|
336
344
|
],
|
|
337
345
|
"description": "Componente de input para decimal, inteiro, dinheiro e porcentagem."
|
|
338
346
|
},
|
|
@@ -399,13 +407,19 @@
|
|
|
399
407
|
"qas-search-box": {
|
|
400
408
|
"attributes": [
|
|
401
409
|
"empty-list-height",
|
|
410
|
+
"empty-result-text",
|
|
411
|
+
"entity",
|
|
412
|
+
"fetching",
|
|
402
413
|
"fuse-options",
|
|
403
414
|
"height",
|
|
415
|
+
"lazy-loading-props",
|
|
404
416
|
"list",
|
|
405
417
|
"model-value",
|
|
418
|
+
"name",
|
|
406
419
|
"placeholder",
|
|
407
420
|
"results",
|
|
408
|
-
"use-empty-slot"
|
|
421
|
+
"use-empty-slot",
|
|
422
|
+
"use-lazy-loading"
|
|
409
423
|
],
|
|
410
424
|
"description": "Componente para pesquisa utilizando Fuse.js."
|
|
411
425
|
},
|
|
@@ -415,21 +429,24 @@
|
|
|
415
429
|
"fuse-options",
|
|
416
430
|
"list",
|
|
417
431
|
"model-value",
|
|
418
|
-
"
|
|
419
|
-
"redirect-key",
|
|
420
|
-
"to"
|
|
432
|
+
"use-clickable-label"
|
|
421
433
|
],
|
|
422
434
|
"description": "Componente para selecionar dentro de uma lista com pesquisa utilizando o `QasSearchBox`."
|
|
423
435
|
},
|
|
424
436
|
"qas-select": {
|
|
425
437
|
"attributes": [
|
|
438
|
+
"entity",
|
|
439
|
+
"fetching",
|
|
426
440
|
"fuse-options",
|
|
427
441
|
"label-key",
|
|
442
|
+
"lazy-loading-props",
|
|
428
443
|
"model-value",
|
|
444
|
+
"name",
|
|
429
445
|
"no-option-label",
|
|
430
446
|
"options",
|
|
431
|
-
"
|
|
432
|
-
"
|
|
447
|
+
"value-key",
|
|
448
|
+
"use-search",
|
|
449
|
+
"use-lazy-loading"
|
|
433
450
|
],
|
|
434
451
|
"description": "Componente para select que implementa o \"QSelect\" repassando propriedades, slots e eventos."
|
|
435
452
|
},
|
|
@@ -437,7 +454,7 @@
|
|
|
437
454
|
"attributes": [
|
|
438
455
|
"empty",
|
|
439
456
|
"height",
|
|
440
|
-
"
|
|
457
|
+
"signature-options",
|
|
441
458
|
"type"
|
|
442
459
|
],
|
|
443
460
|
"description": "Componente para assinatura que gera uma imagem."
|
|
@@ -455,15 +472,16 @@
|
|
|
455
472
|
},
|
|
456
473
|
"qas-single-view": {
|
|
457
474
|
"attributes": [
|
|
475
|
+
"before-fetch",
|
|
458
476
|
"custom-id",
|
|
459
|
-
"dialog",
|
|
460
477
|
"entity",
|
|
461
478
|
"errors",
|
|
462
479
|
"fields",
|
|
463
480
|
"fetching",
|
|
464
481
|
"metadata",
|
|
465
482
|
"result",
|
|
466
|
-
"url"
|
|
483
|
+
"url",
|
|
484
|
+
"use-boundary"
|
|
467
485
|
],
|
|
468
486
|
"description": "Componente para C.R.U.D. responsável pela visualização (Read) ou conhecido também como \"show\"."
|
|
469
487
|
},
|
|
@@ -536,7 +554,8 @@
|
|
|
536
554
|
"readonly",
|
|
537
555
|
"size-limit",
|
|
538
556
|
"use-resize",
|
|
539
|
-
"uploading"
|
|
557
|
+
"uploading",
|
|
558
|
+
"useObjectModel"
|
|
540
559
|
],
|
|
541
560
|
"description": "Componente para upload com auto redimensionamento que implementa o \"QField\" e \"QUploader\"."
|
|
542
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
|