@bildvitta/quasar-ui-asteroid 3.11.0-beta.14 → 3.11.0-beta.15
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/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
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
4
|
<qas-btn v-if="!useTimeOnly" color="grey-9" :disable="$attrs.readonly" icon="sym_r_event" variant="tertiary">
|
|
5
|
-
<q-popup-proxy ref="dateProxy" transition-hide="scale" transition-show="scale">
|
|
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
10
|
<qas-btn v-if="!useDateOnly" class="q-ml-sm" color="grey-9" :disable="$attrs.readonly" icon="sym_r_access_time">
|
|
11
|
-
<q-popup-proxy ref="timeProxy" transition-hide="scale" transition-show="scale">
|
|
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>
|
|
14
14
|
</qas-btn>
|
|
@@ -36,6 +36,11 @@ export default {
|
|
|
36
36
|
type: Object
|
|
37
37
|
},
|
|
38
38
|
|
|
39
|
+
datePopupProxyProps: {
|
|
40
|
+
default: () => ({}),
|
|
41
|
+
type: Object
|
|
42
|
+
},
|
|
43
|
+
|
|
39
44
|
timeMask: {
|
|
40
45
|
default: 'HH:mm',
|
|
41
46
|
type: String
|
|
@@ -46,6 +51,11 @@ export default {
|
|
|
46
51
|
type: Object
|
|
47
52
|
},
|
|
48
53
|
|
|
54
|
+
timePopupProxyProps: {
|
|
55
|
+
default: () => ({}),
|
|
56
|
+
type: Object
|
|
57
|
+
},
|
|
58
|
+
|
|
49
59
|
useIso: {
|
|
50
60
|
type: Boolean
|
|
51
61
|
},
|
|
@@ -17,6 +17,11 @@ props:
|
|
|
17
17
|
default: {}
|
|
18
18
|
type: Object
|
|
19
19
|
|
|
20
|
+
date-popup-proxy-props:
|
|
21
|
+
desc: Propriedades do QPopupProxy para o popup do QDate (https://quasar.dev/vue-components/popup-proxy#qpopupproxy-api).
|
|
22
|
+
default: {}
|
|
23
|
+
type: Object
|
|
24
|
+
|
|
20
25
|
model-value:
|
|
21
26
|
desc: Model do componente, usado para v-model.
|
|
22
27
|
default: ''
|
|
@@ -33,6 +38,11 @@ props:
|
|
|
33
38
|
default: {}
|
|
34
39
|
type: Object
|
|
35
40
|
|
|
41
|
+
time-popup-proxy-props:
|
|
42
|
+
desc: Propriedades do QPopupProxy para o popup do QTime (https://quasar.dev/vue-components/popup-proxy#qpopupproxy-api).
|
|
43
|
+
default: {}
|
|
44
|
+
type: Object
|
|
45
|
+
|
|
36
46
|
use-time-only:
|
|
37
47
|
desc: Habilita o componente para usar somente hora.
|
|
38
48
|
type: Boolean
|
|
@@ -60,7 +60,8 @@ export default {
|
|
|
60
60
|
data () {
|
|
61
61
|
return {
|
|
62
62
|
errorData: false,
|
|
63
|
-
currentMask: ''
|
|
63
|
+
currentMask: '',
|
|
64
|
+
inputReference: null
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
67
|
|
|
@@ -69,10 +70,6 @@ export default {
|
|
|
69
70
|
return this.inputReference.hasError
|
|
70
71
|
},
|
|
71
72
|
|
|
72
|
-
inputReference () {
|
|
73
|
-
return this.$refs.input
|
|
74
|
-
},
|
|
75
|
-
|
|
76
73
|
masks () {
|
|
77
74
|
return {
|
|
78
75
|
[Masks.CompanyDocument]: () => '##.###.###/####-##',
|
|
@@ -114,7 +111,7 @@ export default {
|
|
|
114
111
|
},
|
|
115
112
|
|
|
116
113
|
watch: {
|
|
117
|
-
|
|
114
|
+
currentMask (value) {
|
|
118
115
|
if (!value) return
|
|
119
116
|
|
|
120
117
|
const input = this.getInput()
|
|
@@ -140,6 +137,10 @@ export default {
|
|
|
140
137
|
}
|
|
141
138
|
},
|
|
142
139
|
|
|
140
|
+
mounted () {
|
|
141
|
+
this.inputReference = this.$refs.input
|
|
142
|
+
},
|
|
143
|
+
|
|
143
144
|
methods: {
|
|
144
145
|
focus () {
|
|
145
146
|
return this.inputReference.focus()
|