2019-01-14 22:40:30 +01:00
|
|
|
<template>
|
2019-01-29 00:48:04 +01:00
|
|
|
<div :class="getClassRow()">
|
2019-01-30 02:01:04 +01:00
|
|
|
<q-context-menu ref="contextMenu">
|
|
|
|
|
<SubMenus :menuPopupTodo="menuPopupTodo" :itemtodo="itemtodo" @clickMenu="clickMenu" @setPriority="setPriority"></SubMenus>
|
2019-01-27 21:49:10 +01:00
|
|
|
</q-context-menu>
|
2019-01-29 23:13:28 +01:00
|
|
|
|
|
|
|
|
|
2019-01-28 03:13:04 +01:00
|
|
|
<div v-if="isTodo()" class="flex-item completed-item">
|
2019-01-27 21:49:10 +01:00
|
|
|
<q-btn push flat
|
2019-01-27 19:09:48 +01:00
|
|
|
:class="classCompleted"
|
2019-01-16 02:26:43 +01:00
|
|
|
:icon="iconCompleted"
|
|
|
|
|
@click.native="setCompleted">
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
2019-01-28 03:13:04 +01:00
|
|
|
|
2019-02-15 01:25:44 +01:00
|
|
|
<q-input hide-underline type="textarea" ref="inputdescr" v-model.trim="precDescr"
|
2019-01-28 13:31:41 +01:00
|
|
|
:class="classDescr" :max-height="50"
|
2019-01-28 20:39:40 +01:00
|
|
|
@keydown="keyDownArea" v-on:keydown.esc="exitEdit" @blur="exitEdit(true)" @click="editTodo()"/>
|
2019-01-28 03:13:04 +01:00
|
|
|
|
2019-01-28 20:39:40 +01:00
|
|
|
<!--:after="[{icon: 'arrow_forward', content: true, handler () {}}]"-->
|
2019-01-28 03:13:04 +01:00
|
|
|
|
2019-01-28 13:31:41 +01:00
|
|
|
<!--<div :class="classDescr" @mousedown.left="editTodo()">-->
|
2019-01-29 00:48:04 +01:00
|
|
|
<!--<q-field>{{ itemtodo.descr }}</q-field>-->
|
2019-01-28 13:31:41 +01:00
|
|
|
<!--</div>-->
|
2019-01-14 22:40:30 +01:00
|
|
|
|
2019-02-12 19:09:43 +01:00
|
|
|
<div v-if="isTodo() && (percentageProgress > 0) " class="flex-item progress-item">
|
2019-01-29 00:48:04 +01:00
|
|
|
<q-progress
|
2019-01-30 02:01:04 +01:00
|
|
|
:percentage="percentageProgress"
|
2019-01-29 00:48:04 +01:00
|
|
|
class="progress-item"
|
|
|
|
|
:color="colProgress"
|
|
|
|
|
>
|
|
|
|
|
</q-progress>
|
|
|
|
|
<div :class="percProgress">
|
2019-01-30 02:01:04 +01:00
|
|
|
{{percentageProgress}}%
|
2019-01-29 00:48:04 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-01-28 03:13:04 +01:00
|
|
|
|
|
|
|
|
<div v-if="itemtodo.enableExpiring">
|
|
|
|
|
<div :class="classExpiring">
|
|
|
|
|
<q-datetime
|
2019-02-11 02:58:53 +01:00
|
|
|
type="date"
|
2019-01-28 03:13:04 +01:00
|
|
|
:class="classExpiringEx"
|
|
|
|
|
v-model="itemtodo.expiring_at"
|
2019-02-11 02:58:53 +01:00
|
|
|
class="myexpired"
|
|
|
|
|
format="DD/MM/YY"
|
|
|
|
|
@change="val => { model = val }" >
|
|
|
|
|
|
2019-01-29 00:48:04 +01:00
|
|
|
</q-datetime>
|
2019-01-28 03:13:04 +01:00
|
|
|
</div>
|
2019-01-16 02:26:43 +01:00
|
|
|
</div>
|
2019-02-14 18:38:23 +01:00
|
|
|
<div v-if="isTodo()" class="flex-item pos-item" @mouseup.left="mouseUp" @mousedown="clickRiga">
|
2019-02-15 01:25:44 +01:00
|
|
|
<q-btn push
|
|
|
|
|
:class="clButtPopover"
|
2019-02-14 18:38:23 +01:00
|
|
|
icon="menu" >
|
|
|
|
|
<q-popover self="top right">
|
|
|
|
|
<SubMenus :menuPopupTodo="menuPopupTodo" :itemtodo="itemtodo" @clickMenu="clickMenu" @setPriority="setPriority"></SubMenus>
|
|
|
|
|
</q-popover>
|
|
|
|
|
|
|
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
2019-02-15 01:25:44 +01:00
|
|
|
<!--clButtPopover: {{ clButtPopover }}-->
|
|
|
|
|
<!--Sel: {{ sel }}-->
|
2019-01-27 21:49:10 +01:00
|
|
|
<!--<div class="flex-item btn-item">-->
|
2019-02-12 12:06:01 +01:00
|
|
|
<!--{{itemtodo.expiring_at}}-->
|
2019-01-27 21:49:10 +01:00
|
|
|
<!--</div>-->
|
2019-01-27 19:09:48 +01:00
|
|
|
<!--<div class="flex-item btn-item">-->
|
2019-02-01 04:10:31 +01:00
|
|
|
<!--<q-btn class="mybtn" round color="" icon="delete" @click.native="removeitem(itemtodo._id)"></q-btn>-->
|
2019-01-27 19:09:48 +01:00
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div class="flex-item">-->
|
|
|
|
|
<!--[{{ itemtodo.id_prev}} - {{ itemtodo.id_next}}]-->
|
|
|
|
|
<!--</div>-->
|
2019-01-14 22:40:30 +01:00
|
|
|
</div>
|
2019-01-16 02:26:43 +01:00
|
|
|
|
2019-01-14 22:40:30 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./SingleTodo.ts">
|
|
|
|
|
</script>
|
2019-01-16 02:26:43 +01:00
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './SingleTodo.scss';
|
|
|
|
|
</style>
|