This commit is contained in:
@@ -15,14 +15,12 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
readonly
|
readonly
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
:data-cy="'dtfpick:' + testId"
|
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-date-picker
|
<v-date-picker
|
||||||
:value="dateValue"
|
:value="dateValue"
|
||||||
@input="updateDateValue"
|
@input="updateDateValue"
|
||||||
:locale="languageName"
|
:locale="languageName"
|
||||||
:data-cy="'dpick:' + testId"
|
|
||||||
>
|
>
|
||||||
<v-btn text color="primary" @click="$emit('input', null)">{{
|
<v-btn text color="primary" @click="$emit('input', null)">{{
|
||||||
$ay.t("Delete")
|
$ay.t("Delete")
|
||||||
@@ -52,7 +50,7 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
type="date"
|
type="date"
|
||||||
:error-messages="errorMessages"
|
:error-messages="errorMessages"
|
||||||
:data-cy="'dpick:' + testId"
|
:data-cy="`${dataCy}:time`"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
</template>
|
</template>
|
||||||
@@ -90,7 +88,7 @@ export default {
|
|||||||
value: { type: String, default: null },
|
value: { type: String, default: null },
|
||||||
readonly: { type: Boolean, default: false },
|
readonly: { type: Boolean, default: false },
|
||||||
disabled: { type: Boolean, default: false },
|
disabled: { type: Boolean, default: false },
|
||||||
testId: { type: String, default: null }
|
dataCy: { type: String, default: null }
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
hasErrors() {
|
hasErrors() {
|
||||||
|
|||||||
@@ -16,38 +16,24 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
readonly
|
readonly
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
:data-cy="'dtfpick:' + testId"
|
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-date-picker
|
<v-date-picker
|
||||||
:value="dateValue"
|
:value="dateValue"
|
||||||
@input="updateDateValue"
|
@input="updateDateValue"
|
||||||
:locale="languageName"
|
:locale="languageName"
|
||||||
:data-cy="'dpick:' + testId"
|
|
||||||
>
|
>
|
||||||
<v-btn
|
<v-btn text color="primary" @click="$emit('input', null)">{{
|
||||||
text
|
$ay.t("Delete")
|
||||||
color="primary"
|
}}</v-btn>
|
||||||
@click="$emit('input', null)"
|
|
||||||
:data-cy="'dpickdelete:' + testId"
|
|
||||||
>{{ $ay.t("Delete") }}</v-btn
|
|
||||||
>
|
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn
|
<v-btn text color="primary" @click="setToday()">{{
|
||||||
text
|
$ay.t("DateRangeToday")
|
||||||
color="primary"
|
}}</v-btn>
|
||||||
@click="setToday()"
|
|
||||||
:data-cy="'dpicktoday:' + testId"
|
|
||||||
>{{ $ay.t("DateRangeToday") }}</v-btn
|
|
||||||
>
|
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn
|
<v-btn text color="primary" @click="dlgdate = false">{{
|
||||||
text
|
$ay.t("OK")
|
||||||
color="primary"
|
}}</v-btn>
|
||||||
@click="dlgdate = false"
|
|
||||||
:data-cy="'dpickok:' + testId"
|
|
||||||
>{{ $ay.t("OK") }}</v-btn
|
|
||||||
>
|
|
||||||
</v-date-picker>
|
</v-date-picker>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -62,7 +48,6 @@
|
|||||||
@click:prepend="dlgtime = true"
|
@click:prepend="dlgtime = true"
|
||||||
readonly
|
readonly
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
:data-cy="'ttfpick:' + testId"
|
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-time-picker
|
<v-time-picker
|
||||||
@@ -71,31 +56,18 @@
|
|||||||
:format="hour12 ? 'ampm' : '24hr'"
|
:format="hour12 ? 'ampm' : '24hr'"
|
||||||
:value="timeValue"
|
:value="timeValue"
|
||||||
@input="updateTimeValue"
|
@input="updateTimeValue"
|
||||||
:data-cy="'tpick:' + testId"
|
|
||||||
>
|
>
|
||||||
<v-btn
|
<v-btn text color="primary" @click="$emit('input', null)">{{
|
||||||
text
|
$ay.t("Delete")
|
||||||
color="primary"
|
}}</v-btn>
|
||||||
@click="$emit('input', null)"
|
|
||||||
:data-cy="'ttfpickdelete:' + testId"
|
|
||||||
>{{ $ay.t("Delete") }}</v-btn
|
|
||||||
>
|
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn
|
<v-btn text color="primary" @click="setNow()">{{
|
||||||
text
|
$ay.t("Now")
|
||||||
color="primary"
|
}}</v-btn>
|
||||||
@click="setNow()"
|
|
||||||
:data-cy="'ttfpicknow:' + testId"
|
|
||||||
>{{ $ay.t("Now") }}</v-btn
|
|
||||||
>
|
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn
|
<v-btn text color="primary" @click="dlgtime = false">{{
|
||||||
text
|
$ay.t("OK")
|
||||||
color="primary"
|
}}</v-btn>
|
||||||
@click="dlgtime = false"
|
|
||||||
:data-cy="'ttfpickok:' + testId"
|
|
||||||
>{{ $ay.t("OK") }}</v-btn
|
|
||||||
>
|
|
||||||
</v-time-picker>
|
</v-time-picker>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -112,7 +84,7 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
type="date"
|
type="date"
|
||||||
:error-messages="errorMessages"
|
:error-messages="errorMessages"
|
||||||
:data-cy="'dpick:' + testId"
|
:data-cy="`${dataCy}:date`"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="6">
|
<v-col cols="6">
|
||||||
@@ -123,7 +95,7 @@
|
|||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
type="time"
|
type="time"
|
||||||
:data-cy="'tpick:' + testId"
|
:data-cy="`${dataCy}:time`"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
</template>
|
</template>
|
||||||
@@ -164,7 +136,7 @@ export default {
|
|||||||
value: { type: String, default: null },
|
value: { type: String, default: null },
|
||||||
readonly: { type: Boolean, default: false },
|
readonly: { type: Boolean, default: false },
|
||||||
disabled: { type: Boolean, default: false },
|
disabled: { type: Boolean, default: false },
|
||||||
testId: { type: String, default: null }
|
dataCy: { type: String, default: null }
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
hasErrors() {
|
hasErrors() {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:label="$ay.t('TimeSpanDays')"
|
:label="$ay.t('TimeSpanDays')"
|
||||||
type="number"
|
type="number"
|
||||||
:data-cy="'durationdays:' + testId"
|
:data-cy="`${dataCy}:days`"
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:label="$ay.t('TimeSpanHours')"
|
:label="$ay.t('TimeSpanHours')"
|
||||||
type="number"
|
type="number"
|
||||||
:data-cy="'durationhours:' + testId"
|
:data-cy="`${dataCy}:hours`"
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:label="$ay.t('TimeSpanMinutes')"
|
:label="$ay.t('TimeSpanMinutes')"
|
||||||
type="number"
|
type="number"
|
||||||
:data-cy="'durationminutes:' + testId"
|
:data-cy="`${dataCy}:minutes`"
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:label="$ay.t('TimeSpanSeconds')"
|
:label="$ay.t('TimeSpanSeconds')"
|
||||||
type="number"
|
type="number"
|
||||||
:data-cy="'durationseconds:' + testId"
|
:data-cy="`${dataCy}:seconds`"
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -79,7 +79,7 @@ export default {
|
|||||||
disabled: { type: Boolean, default: false },
|
disabled: { type: Boolean, default: false },
|
||||||
showSeconds: { type: Boolean, default: true },
|
showSeconds: { type: Boolean, default: true },
|
||||||
showDays: { type: Boolean, default: true },
|
showDays: { type: Boolean, default: true },
|
||||||
testId: { type: String, default: null }
|
dataCy: { type: String, default: null }
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
hasErrors() {
|
hasErrors() {
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
@click:prepend="dlgtime = true"
|
@click:prepend="dlgtime = true"
|
||||||
readonly
|
readonly
|
||||||
:error="!!hasErrors"
|
:error="!!hasErrors"
|
||||||
:data-cy="'ttfpick:' + testId"
|
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-time-picker
|
<v-time-picker
|
||||||
@@ -23,7 +22,6 @@
|
|||||||
:format="hour12 ? 'ampm' : '24hr'"
|
:format="hour12 ? 'ampm' : '24hr'"
|
||||||
:value="timeValue"
|
:value="timeValue"
|
||||||
@input="updateTimeValue"
|
@input="updateTimeValue"
|
||||||
:data-cy="'tpick:' + testId"
|
|
||||||
><v-btn text color="primary" @click="$emit('input', null)">{{
|
><v-btn text color="primary" @click="$emit('input', null)">{{
|
||||||
$ay.t("Delete")
|
$ay.t("Delete")
|
||||||
}}</v-btn>
|
}}</v-btn>
|
||||||
@@ -48,7 +46,7 @@
|
|||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
type="time"
|
type="time"
|
||||||
:data-cy="'tpick:' + testId"
|
:data-cy="`${dataCy}:time`"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
</template>
|
</template>
|
||||||
@@ -88,7 +86,7 @@ export default {
|
|||||||
value: { type: String, default: null },
|
value: { type: String, default: null },
|
||||||
readonly: { type: Boolean, default: false },
|
readonly: { type: Boolean, default: false },
|
||||||
disabled: { type: Boolean, default: false },
|
disabled: { type: Boolean, default: false },
|
||||||
testId: { type: String, default: null }
|
dataCy: { type: String, default: null }
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
hasErrors() {
|
hasErrors() {
|
||||||
|
|||||||
Reference in New Issue
Block a user